-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.46 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
{
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:tailwindcss/recommended",
"plugin:jsx-a11y/recommended",
"next",
"next/core-web-vitals",
"prettier"
],
"plugins": ["simple-import-sort", "unused-imports", "@tanstack/query"],
"rules": {
"no-restricted-imports": [
"error",
{
"name": "@radix-ui/react-dialog",
"message": "Please avoid using the @radix-ui/react-dialog package and use our built in Dialog component directly"
},
{
"name": "@radix-ui/react-tabs",
"message": "Please avoid using the @radix-ui/react-tabs package and use our built in Tabs component directly"
},
{
"name": "@unleash/nextjs",
"message": "Please use our feature flag utilities in @app/utils/flags.utils.ts."
},
{
"name": "@testing-library/react",
"message": "Please import @testing-library/react modules from @/config/test-utils."
}
],
"import/no-anonymous-default-export": "off",
"import/no-named-as-default": "off",
"id-length": [2, { "exceptions": ["i", "j", "_", "e", "z", "t"], "properties": "never" }],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"unused-imports/no-unused-imports": "error",
"react/display-name": "off",
"tailwindcss/no-custom-classname": [
1,
{
"whitelist": ["govuk\\-.*", "ukhsa\\-.*"]
}
]
}
}