-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
37 lines (37 loc) · 921 Bytes
/
.eslintrc.json
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
{
"env": {
"commonjs": true,
"es6": true,
"node": true,
"mocha": true,
"browser": true
},
"plugins": ["react", "@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:react/jsx-runtime"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"spread": true,
"restParams": true
}
},
"rules": {
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"no-var": "error",
"no-console": "off",
"func-call-spacing": ["error", "never"],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"space-infix-ops": "error",
"eqeqeq": "error",
"func-style": "off",
"brace-style": "error",
"func-names": ["error", "never"],
"react/prop-types": 0,
"no-undef": "off",
"no-unused-vars": "off"
}
}