-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
59 lines (59 loc) · 1.6 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
env: {
browser: true,
es2022: true,
node: true,
},
settings: {
"import/resolver": {
webpack: {
config: "./build/webpack.base.js",
},
},
react: {
pragma: "React",
version: "detect",
},
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
// 'project': './tsconfig.json',
},
extends: [
"airbnb", // https://www.npmjs.com/package/eslint-config-airbnb#eslint-configairbnbhooks
"airbnb/hooks", // https://www.npmjs.com/package/eslint-config-airbnb#eslint-configairbnbhooks
"plugin:react/recommended", // https://github.com/yannickcr/eslint-plugin-react#recommended
"plugin:@typescript-eslint/recommended", // https://www.npmjs.com/package/@typescript-eslint/eslint-plugin#usage
"plugin:prettier/recommended", // https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
],
rules: {
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"react/jsx-filename-extension": [
1,
{ extensions: [".js", ".jsx", ".ts", ".tsx"] },
],
"max-classes-per-file": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"react/jsx-props-no-spreading": 0,
"no-useless-escape": 0,
"import/prefer-default-export": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-curly-newline": 0,
"react/jsx-wrap-multilines": 0,
},
};