-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.cjs
33 lines (33 loc) · 1.13 KB
/
.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
26
27
28
29
30
31
32
33
/** @type {import('eslint').Linter.Config} */
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
parserOptions: { project: true },
root: true,
extends: [
"@remix-run/eslint-config",
"@remix-run/eslint-config/node",
"prettier",
"plugin:tailwindcss/recommended",
],
rules: {
"import/consistent-type-specifier-style": ["warn", "prefer-inline"],
"import/no-duplicates": ["warn", { "prefer-inline": true }],
"require-await": ["warn"],
"no-empty-pattern": "off",
"node/no-process-env": "warn",
"react/self-closing-comp": ["warn", { component: true, html: true }],
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-misused-promises": [2, { checksVoidReturn: { attributes: false } }],
"@typescript-eslint/consistent-type-imports": [
"warn",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
disallowTypeAnnotations: true,
},
],
},
}