forked from heyxyz/hey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
42 lines (42 loc) · 1.48 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"parser": "@typescript-eslint/parser",
"env": {
"es2022": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "unused-imports", "simple-import-sort", "prettier", "unicorn"],
"extends": ["next", "next/core-web-vitals"],
"rules": {
"curly": "error",
"no-unused-vars": "off",
"prettier/prettier": "error",
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"react/no-unknown-property": "off",
"react/jsx-no-useless-fragment": "error",
"unused-imports/no-unused-imports": "error",
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/ban-ts-comment": "off", // turn warn
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@next/next/no-img-element": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"jsx-a11y/role-supports-aria-props": "off",
"no-use-before-define": "error",
"no-unexpected-multiline": "error",
"react/self-closing-comp": "error",
"unicorn/better-regex": "error",
"unicorn/catch-error-name": "error",
"unicorn/no-array-for-each": "error",
"unicorn/no-for-loop": "error",
"unicorn/no-lonely-if": "error",
"unicorn/no-useless-undefined": "error",
"unicorn/prefer-array-find": "error"
},
"ignorePatterns": ["/src/generated/types.ts"]
}