generated from aragon/gov-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
25 lines (25 loc) · 898 Bytes
/
.eslintrc.cjs
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
/* eslint-env node */
module.exports = {
extends: ["next/core-web-vitals", "eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
ecmaFeatures: {
jsx: true,
},
},
plugins: ["@typescript-eslint"],
rules: {
"react/jsx-boolean-value": ["warn", "always"],
"no-console": "warn",
"prefer-template": "warn",
"@typescript-eslint/consistent-type-imports": ["warn", { fixStyle: "inline-type-imports" }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["warn", { ignoreRestSiblings: true }],
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/no-duplicate-enum-values": "off",
"@typescript-eslint/no-require-imports": "warn",
},
root: true,
};