-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
33 lines (32 loc) · 953 Bytes
/
eslint.config.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
const globals = require("globals");
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const prettierRecommended = require("eslint-plugin-prettier/recommended");
const depend = require("eslint-plugin-depend");
return [
{
languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
...globals.jest,
...globals.node,
},
},
},
depend.configs["flat/recommended"],
eslint.configs.recommended,
...tseslint.configs.recommended,
prettierRecommended,
{
rules: {
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off",
"barrel-files/avoid-barrel-files": "error",
"barrel-files/avoid-importing-barrel-files": "error",
"barrel-files/avoid-namespace-import": "error",
"barrel-files/avoid-re-export-all": "error",
},
},
];