-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc-x.yml
62 lines (62 loc) · 1.37 KB
/
.eslintrc-x.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
env:
browser: true
es6: true
jest: true
jest/globals: true
node: true
extends:
- plugin:prettier/recommended
- prettier/react
globals:
Atomics: readonly
SharedArrayBuffer: readonly
expect: true
it: true
describe: true
jest: true
settings:
import/parsers:
'@typescript-eslint/parser': ['.ts', '.tsx']
import/resolver:
typescript:
alwaysTryTypes: 1
parser: '@typescript-eslint/parser'
parserOptions:
project: './tsconfig.json'
plugins:
- react
- jest
- '@typescript-eslint'
- import
- prettier
rules:
strict: 0
no-unused-vars:
- error
- varsIgnorePattern: 'React'
import/no-extraneous-dependencies: 0
import/prefer-default-export: 0
import/no-default-export: error
import/no-unresolved:
- error
- ignore:
- "\\.svg$"
jsx-a11y/anchor-is-valid: 0
jsx-a11y/media-has-caption: 0
react/jsx-filename-extension:
[1, { 'extensions': ['.js', '.jsx', '.ts', '.tsx', '.svg'] }]
react/jsx-props-no-spreading: 0
react/jsx-uses-react: 2
react/jsx-uses-vars: 2
react/prefer-stateless-function: 0
react/react-in-jsx-scope: 2
'@typescript-eslint/comma-dangle': 0
'@typescript-eslint/indent': 0
'@typescript-eslint/no-unused-vars':
- error
- varsIgnorePattern: 'React'
prettier/prettier: 'error'
overrides:
- 'files': ['./pages/**/*', './pages/*']
'rules':
'import/no-default-export': 0