-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (45 loc) · 1.09 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
ecmaVersion: "latest",
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: { version: "detect" },
"import/ignore": ["node_modules/react-native/index\\.js$"],
},
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"prettier",
],
plugins: ["prettier", "react"],
rules: {
"max-len": [
"error",
{
code: 80,
ignoreUrls: true,
ignoreStrings: true,
ignoreComments: true,
ignoreTrailingComments: true,
ignoreTemplateLiterals: true,
},
],
"no-undef": ["off"],
"react/prop-types": "off",
"no-unused-vars": ["warn"],
"react/react-in-jsx-scope": "off",
"linebreak-style": ["error", "unix"],
"object-property-newline": ["error"],
"object-curly-spacing": ["error", "always"],
"react/jsx-max-props-per-line": ["error", { maximum: 3 }],
},
}