forked from masqomar21/BrainWave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
45 lines (45 loc) · 1.6 KB
/
Copy path.eslintrc.json
File metadata and controls
45 lines (45 loc) · 1.6 KB
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
{
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:react/jsx-runtime", "airbnb"],
"plugins": ["react", "react-native", "react-hooks", "jsx-a11y"],
"rules": {
// "max-len" : ["error", { "code": 120 } ],
"no-duplicate-imports": "error",
// "import/order": "error",
// "import/no-unresolved": ["error", {"commonjs": true, "caseSensitive": true}],
// "import/no-namespace": "error",
// "import/no-relative-parent-imports": "error",
"react/style-prop-object": "off",
"import/no-extraneous-dependencies" : "off",
"no-use-before-define" : "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"linebreak-style": "off",
"semi": ["error", "never"],
"react/prop-types": "off",
"comma-dangle": ["error", "never"],
"padded-blocks": "off",
"arrow-body-style": "off",
"react-hooks/exhaustive-deps": "warn",
"react-native/no-unused-styles": "warn",
"react-native/split-platform-components": 2,
"react/jsx-indent" : ["error",4],
"react/no-array-index-key" : "off",
"react/jsx-indent-props" : ["error", 4],
"react/jsx-fragments": "error",
"indent": "error",
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"no-undef": "off",
"func-names" : "off",
"no-unused-expressions" : "off"
},
"settings": {
// "import/resolver":"my-awesome-npm-module",
"react": {
"version": "detect"
}
}
}