-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.js
45 lines (44 loc) · 1.08 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
const eslint = require("@eslint/js");
const typescriptEslint = require("typescript-eslint");
const eslintConfigPrettier = require("eslint-config-prettier");
const globals = require("globals");
module.exports = typescriptEslint.config(
eslint.configs.recommended,
...typescriptEslint.configs.recommended,
eslintConfigPrettier,
{
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
jest: "readonly",
},
parser: typescriptEslint.parser,
parserOptions: {
project: ["./tsconfig.json", "./tsconfig.test.json"],
tsconfigRootDir: __dirname,
},
},
rules: {
"sort-imports": ["error", { ignoreCase: true }],
quotes: ["error", "double", { avoidEscape: true }],
},
},
{
ignores: [
".github",
".vscode",
"coverage",
"docs",
"examples",
"node_modules",
"lib",
"test/wpt",
"test/wpt-jsdom",
"eslint.config.js",
"jest.config.js",
"tsup.config.ts",
],
}
);