-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.json
49 lines (49 loc) · 1.7 KB
/
.eslintrc.json
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
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true
},
"babelOptions": {
"configFile": "./babel.config.common.cjs"
}
},
"extends": ["airbnb", "plugin:flowtype/recommended", "plugin:storybook/recommended"],
"plugins": ["flowtype", "jest"],
"rules": {
"import/no-extraneous-dependencies": 0,
"import/no-webpack-loader-syntax": 0,
"import/extensions": ["error", "ignorePackages"],
"import/no-duplicates": ["error", {"considerQueryString": true}],
"no-confusing-arrow": ["error", {"allowParens": true}],
"arrow-parens": ["error", "as-needed"],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": 0,
"react/prefer-exact-props": 0,
"react/static-property-placement": ["warn", "static public field"],
"react/no-multi-comp": 0,
"react/function-component-definition": 0,
"no-restricted-exports": 0,
"import/prefer-default-export": 0,
"object-curly-newline": ["error", { "consistent": true }],
"no-bitwise": ["error", { "int32Hint": true }],
"no-mixed-operators": 0
},
"env": {
"jest/globals": true,
"browser": true
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["./"]
},
"webpack": {
"config": "./.storybook/webpack.config.cjs"
},
"alias": [
["react-pie-menu", "./src/index.js"]
]
}
}
}