-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
42 lines (42 loc) · 1.15 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
/** @type {import('eslint').Linter.Config} */
module.exports = {
overrides: [
{
files: "**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
plugins: ["@typescript-eslint", "prettier"],
rules: {
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/consistent-type-imports": "warn",
},
},
{
files: [
".eslintrc.cjs",
"postcss.config.js",
"tailwind.config.js",
"commitlint.config.js",
"rollup.config.{js,mjs}",
],
env: {
node: true,
},
},
{
files: "**/*.{html}",
extends: ["eslint:recommended", "plugin:prettier/recommended"],
plugins: ["prettier"],
},
],
ignorePatterns: ["dist", "next-env.d.ts"],
root: true,
};