-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc
43 lines (43 loc) · 1.45 KB
/
.eslintrc
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
{
extends: ["airbnb", "prettier"],
plugins: ["react", "import", "prettier"],
parser: "babel-eslint",
env: {
"browser": true,
"node": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src", "stories"]
}
}
},
"rules": {
"arrow-parens": [2, "always"],
"arrow-body-style": 0,
"comma-dangle": [2, "always-multiline"],
"class-methods-use-this": 0,
"func-names": 0,
"import/no-extraneous-dependencies": [2, { devDependencies: true }],
"jsx-a11y/click-events-have-key-events": 0,
"no-console": [1, { allow: ["warn", "error", "info"] }],
"object-shorthand": [2, "never"],
"object-curly-newline": [2, { consistent: true }],
"prefer-destructuring": [2, { object: false, array: false }],
"prettier/prettier": "error",
"no-tabs": 0,
"operator-linebreak": 0,
"react/destructuring-assignment": 0,
"react/jsx-boolean-value": 0,
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": [2, { extensions: [".js"] }],
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"react/jsx-one-expression-per-line": 0,
"react/jsx-wrap-multilines": 0,
"space-before-function-paren": 0,
"import/prefer-default-export": 0,
"no-unused-vars": ["error", { "varsIgnorePattern": "^_+$" }]
},
}