forked from S-ResearchStack/web-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
53 lines (53 loc) · 1.4 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
50
51
52
53
{
"env": {
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "react-hooks", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"airbnb-typescript",
"prettier",
"plugin:storybook/recommended",
"plugin:jest/recommended"
],
"rules": {
"no-console": "off",
"no-restricted-syntax": [
"warn",
{
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(warn|error|info|trace)$/]",
"message": "Unexpected property on console object was called"
}
],
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function"
}
],
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
"no-param-reassign": ["error", { "props": false }],
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-unused-expressions": "off",
"jest/no-mocks-import": "off",
"jest/no-conditional-expect": "off",
"no-continue": "off"
},
"overrides": [
{
"files": ["**/*.stories.tsx", "src/modules/store/storybook.tsx"],
"rules": {
"import/no-extraneous-dependencies": "off",
"react/prop-types": "off"
}
}
]
}