forked from gsoft-inc/ov-igloo-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
79 lines (79 loc) · 2.04 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:@workleap/react-library",
"plugin:storybook/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "react-hooks"],
"rules": {
"@typescript-eslint/no-implicit-any-catch": "off",
"no-param-reassign": ["error", { "props": false }],
"no-use-before-define": "off",
"no-shadow": "off",
"max-len": ["warn", { "code": 110 }],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{ "allowExpressions": true }
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false
}
}
],
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }],
"react/prop-types": "off",
"react/button-has-type": "off",
"react/jsx-props-no-spreading": "off",
"import/extensions": ["error", "never", { "json": "always" }],
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/require-default-props": 0,
"react/function-component-definition": "off",
"react/jsx-no-useless-fragment": "off",
"react/no-unstable-nested-components": "off",
"jsx-a11y/click-events-have-key-events": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/internal-regex": ["^@igloo-ui/"],
"import/resolver": {
"typescript": {
"project": "packages/*/tsconfig.json"
}
}
},
"ignorePatterns": [
"dist",
"node_modules",
"examples",
"scripts",
"**/*.d.ts",
"**/*.test.tsx",
"**/*.stories.tsx",
"*.css",
"*.svg",
"bootstrap",
"website"
]
}