-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
39 lines (38 loc) · 1.15 KB
/
eslint.config.mjs
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
import ts from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import prettier from "eslint-plugin-prettier";
import prettierConfig from "eslint-config-prettier";
export default [
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: tsParser,
parserOptions: {
project: "./tsconfig.json",
sourceType: "module"
},
ecmaVersion: "latest",
sourceType: "module",
globals: {
window: "readonly",
document: "readonly",
console: "readonly",
process: "readonly",
chrome: "readonly",
}
},
plugins: {
"@typescript-eslint": ts,
prettier
},
rules: {
...ts.configs.recommended.rules,
"quotes": ["error", "single"],
"semi": ["error", "always"],
"@typescript-eslint/no-unused-vars": "off",
"prettier/prettier": "error",
"@typescript-eslint/no-explicit-any": "off"
}
},
prettierConfig
];