-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
54 lines (54 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
54
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"sonarjs",
"unicorn",
"security",
"no-unsanitized",
"import",
"unused-imports",
"simple-import-sort",
"deprecation",
"react-perf",
"react-refresh",
"jsx-a11y",
"prettier",
"jest",
"jest-dom",
"jest-formatting",
"testing-library"
],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:sonarjs/recommended-legacy",
"plugin:unicorn/recommended",
"plugin:security/recommended-legacy",
"plugin:no-unsanitized/DOM",
"plugin:import/recommended",
"plugin:deprecation/recommended",
"plugin:react-perf/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:storybook/recommended",
"plugin:jest/recommended",
"plugin:jest-dom/recommended",
"plugin:jest-formatting/recommended",
"plugin:testing-library/react"
],
"rules": {
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"react-refresh/only-export-components": "warn"
}
}