-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
23 lines (23 loc) · 1.02 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
{
"root": true,
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": ["next", "plugin:@typescript-eslint/recommended", "prettier", "prettier/prettier"],
"rules": {
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-indexed-object-style": [
"error",
"index-signature" // Prevent ambiguity with Records & Tuples
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-module-boundary-types": "off", // Reduce bloat
"@typescript-eslint/method-signature-style": "error", // Force type safety
"@typescript-eslint/no-invalid-void-type": "error", // Force type safety
"prefer-exponentiation-operator": "error", // Auto-fix for an inherited rule
"react/react-in-jsx-scope": "off", // React is always in scope with Next
"react/require-default-props": "off", // React `defaultProps` are deprecated
"react/no-unescaped-entities": "off",
"@typescript-eslint/ban-ts-comment": "off" // Enable ts-ignore and co.
}
}