-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1.19 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
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
// 'plugin:jest/recommended',
'prettier',
'plugin:prettier/recommended',
],
env: {
browser: true,
// jest: true,
es6: true
},
plugins: ['react', /*'jest',*/ '@typescript-eslint', 'prettier'],
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports,
project: './tsconfig.json',
},
rules: {
"react/jsx-no-bind": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"@typescript-eslint/no-explicit-any": "off",
"prettier/prettier": [
"error",
{
trailingComma: "es5",
semi: false,
singleQuote: false,
printWidth: 120,
endOfLine: "auto"
}
]
}
};