-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.23 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
module.exports = {
env: {
es6: true,
browser: true,
node: true,
},
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaVersion: 9,
ecmaFeatures: {
jsx: true,
modules: true,
experimentalObjectRestSpread: true,
},
},
extends: "airbnb",
ignorePatterns: [
"/config/",
"node_modules/"
],
rules: {
"indent": ["error", 2], // A custom style-related rule for example
"comma-dangle": [1, "always-multiline"],
"react/jsx-filename-extension": "off",
"react/require-default": "off",
"react/forbid-prop-types": "off",
"object-curly-newline": "off",
"react/jsx-boolean-value": "off",
"react/state-in-constructor": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/button-has-type": "off",
"react/sort-comp": "off",
"max-len": ["error", { "code":120 }],
"no-restricted-globals": "off",
"import/prefer-default-export": "off",
"new-cap": "off",
"no-plusplus": "off",
"no-use-before-define": "off",
"no-unused-vars": [
"error",
{
varsIgnorePattern: "React"
}
],
"no-param-reassign": "warn"
}
}