forked from laem/transparencemedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
35 lines (34 loc) · 962 Bytes
/
.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
{
// Parser to make ESLint able to parse TS files.
"parser": "@typescript-eslint/parser",
// Bunch of rules.
"plugins": ["@typescript-eslint", "jest", "jsx-a11y", "testing-library", "jest-dom"],
// Rules to be used.
"extends": [
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"plugin:testing-library/react",
// Helper for testing-library.
"plugin:jest-dom/recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended",
// Need to be last or almost.
"next/core-web-vitals",
// Priority on prettier to be last and potentially override other rules.
"plugin:prettier/recommended"
],
// Customize rules.
"rules": {
"prettier/prettier": [
"error",
{
"trailingComma": "all",
"semi": false,
"printWidth": 120
}
],
"jsx-a11y/anchor-is-valid": "off",
"no-console": "warn",
"@typescript-eslint/ban-ts-comment": "warn"
}
}