forked from wordware-ai/twitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.19 KB
/
.eslintrc.js
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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import"],
extends: ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
rules: {
"import/no-unused-modules": "error", // Enable this rule to catch unused modules
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
// '@typescript-eslint/explicit-module-boundary-types': 'error',
// '@typescript-eslint/no-misused-promises': 'error',
// '@typescript-eslint/await-thenable': 'error',
// 'import/no-relative-parent-imports': ['error', { ignore: ['^@/'] }],
// 'import/no-relative-imports': 'error',
// 'import/no-unresolved': 'error',
// 'import/namespace': 'off',
// 'import/default': 'off',
"@next/next/no-img-element": "off",
},
settings: {
"import/resolver": {
alias: {
map: [["@", "./src/"]], // Map @ to the base directory
extensions: [".ts", ".tsx", ".js", ".jsx", ".json"],
},
typescript: {
project: "./tsconfig.json",
},
},
"import/internal-regex": "^@/",
},
};