forked from luyu0279/BrainyAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.cjs
32 lines (31 loc) · 1.1 KB
/
eslint.config.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
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');
module.exports = tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
parserOptions: {
project: "./tsconfig.json",
// projectFolderIgnoreList: ['**/node_modules', '**/build', "**/.plasmo", "**/resources/js", "tailwind.config.js", "scripts"],
ecmaFeatures: {
jsx: true
}
},
},
rules: {
"indent" : [1, 4],
"no-else-return" : 1,
"semi" : [1, "always"],
"space-unary-ops" : 2,
"no-console" : 2,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/ban-ts-ignore": "off"
},
},
...tseslint.configs.stylistic,
{
ignores: ["eslint.config.cjs", "tailwind.config.js", "build", ".plasmo", "resources/", ".prettierrc.mjs", "postcss.config.js"]
}
);