-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (36 loc) · 1002 Bytes
/
.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
module.exports = {
env: {
es6: true,
node: true
},
extends: ["airbnb", "prettier"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
fetch: false
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["react"],
parser: "babel-eslint",
rules: {
"linebreak-style": ["error", "windows"],
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"no-use-before-define": ["error", { variables: false }],
"react/destructuring-assignment": 0,
"react/prop-types": 0,
"global-require": 0,
"no-plusplus": [2, { allowForLoopAfterthoughts: true }],
"no-console": process.env.NODE_ENV === "production" ? 2 : 0,
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
"no-underscore-dangle": ["error", { allow: ["_id"] }],
"class-methods-use-this": 0,
"react/jsx-props-no-spreading": 0
// 'react/no-string-refs': 0
}
};