-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
28 lines (28 loc) · 919 Bytes
/
Copy path.eslintrc.json
File metadata and controls
28 lines (28 loc) · 919 Bytes
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
{
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"plugins": ["n", "check-file"],
"rules": {
"n/no-process-env": ["error"],
"prefer-arrow-callback": "error",
"prefer-template": "error",
"semi": "error",
"quotes": ["error", "double"],
"check-file/filename-naming-convention": [
"error",
{
"**/*.{ts,tsx}": "KEBAB_CASE"
},
{
// ignore the middle extensions of the filename to support filename like bable.config.js or smoke.spec.ts
"ignoreMiddleExtensions": true
}
],
"check-file/folder-naming-convention": [
"error",
{
// all folders within src (except __tests__)should be named in kebab-case
"src/**": "NEXT_JS_APP_ROUTER_CASE"
}
]
}
}