-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.js
33 lines (32 loc) · 941 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
import eslint from "@eslint/js";
import avi12 from "eslint-config-avi12";
import globals from "globals";
import tsEslint from "typescript-eslint";
export default [
eslint.configs.recommended,
...tsEslint.configs.recommended,
...avi12,
{
files: ["**/*.ts"],
languageOptions: {
parser: tsEslint.parser,
globals: {
...globals.node
}
}
},
{
ignores: ["dist-esm/**/*", "node_modules"],
rules: {
"prefer-const": "warn",
quotes: ["warn", "double", { allowTemplateLiterals: true }],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/ban-types": "off",
"import/extensions": ["warn", "ignorePackages", { js: "always" }],
"object-property-newline": "off"
}
}
];