-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.yml
37 lines (37 loc) · 865 Bytes
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# yaml-language-server: $schema=https://json.schemastore.org/eslintrc.json
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:react/recommended'
- 'plugin:prettier/recommended'
env:
browser: true
es2021: true
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
- 'prettier'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
sourceType: module
project: "./tsconfig.json"
ignorePatterns:
- 'dist'
rules:
no-unused-vars: off
'@typescript-eslint/no-unused-vars': error
no-var: error
prefer-template: error
semi: error
quotes: ['error', 'single']
jsx-quotes: ['error', 'prefer-single']
prettier/prettier:
- error
- singleQuotes: true
jsxSingleQuote: true
printWidth: 120
tabWidth: 4
trailingComma: all
parser: typescript