forked from SpareBank1/designsystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
29 lines (29 loc) · 821 Bytes
/
.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
{
"extends": ["./linting/eslint-config-ffe/index.js", "plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-duplicate-imports": 0, // Skru av denne fordi den krasjer med import/no-duplicates
"import/no-duplicates": 2,
"no-use-before-define": 0,
"@typescript-eslint/no-use-before-define": [2]
},
"overrides": [
{
"files": ["**/*.spec.js", "**/*.spec.tsx", "**/*.spec.ts"],
"env": {
"jest": true
},
"globals": {
"shallow": "readonly",
"mount": "readonly",
"render": "readonly"
}
}
]
}