-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
47 lines (47 loc) · 1.4 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
ignorePatterns: [".eslintrc.cjs", "*.config.js", "*.config.cjs", "*.js"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked", "plugin:tailwindcss/recommended", "prettier"],
overrides: [
{
env: { node: true },
files: [".eslintrc.{js,cjs}"],
parserOptions: { sourceType: "script" },
},
{
files: ["*.ts", "*.js"],
parser: "@typescript-eslint/parser",
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
jsx: true,
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint", "tailwindcss"],
rules: {
indent: "off",
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "never"],
"sort-imports": ["error", { allowSeparatedGroups: true }],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "off",
},
}