forked from automerge/automerge-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
56 lines (55 loc) · 1.32 KB
/
.eslintrc.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const OFF = 0
const WARN = 1
const ERROR = 2
const NEVER = "never"
const ALWAYS = "always"
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
ignorePatterns: [
"**/*.d.ts",
"**/*.config.ts",
"**/fuzz.ts",
"examples/**/*",
"**/test/*",
"**/dist/*",
"**/node_modules/*",
".eslintrc.cjs",
"packages/create-vite-app/**/*",
],
overrides: [
{
env: { node: true },
files: [".eslintrc.{js,cjs}"],
parserOptions: { sourceType: "script" },
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./packages/*/tsconfig.json"],
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
semi: [ERROR, NEVER],
"import/extensions": OFF,
"lines-between-class-members": OFF,
"@typescript-eslint/no-floating-promises": ERROR,
"@typescript-eslint/no-empty-function": OFF,
"no-param-reassign": OFF,
"no-use-before-define": OFF,
"@typescript-eslint/no-non-null-assertion": OFF,
"@typescript-eslint/no-explicit-any": OFF,
"@typescript-eslint/no-unused-vars": [ERROR, { varsIgnorePattern: "^_" }],
},
root: true,
}