-
Notifications
You must be signed in to change notification settings - Fork 211
/
.eslintrc.js
60 lines (60 loc) · 1.34 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'standard-with-typescript',
'plugin:react/recommended',
'prettier'
],
overrides: [
{
env: {
node: true
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script'
}
}
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
exclude: ['**/*.eslintrc.js']
},
settings: {
'import/resolver': {
alias: {
map: [
['@', './src'],
['@ui', './src/components/ui'],
['@components', './src/components'],
['@lib', './src/lib']
],
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json']
}
},
react: {
version: 'detect'
}
},
plugins: ['react'],
rules: {
'comma-dangle': 0,
'react/jsx-one-expression-per-line': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'object-curly-newline': 0,
'react/jsx-pascal-case': 0,
'react/jsx-filename-extension': 0,
'react/react-in-jsx-scope': 0,
'react/jsx-uses-react': 0,
'@typescript-eslint/indent': 0,
'@typescript-eslint/strict-boolean-expressions': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/space-before-function-paren': 0
}
}