forked from mysticatea/regexpp
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
79 lines (76 loc) · 2.74 KB
/
.eslintrc.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"use strict"
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: "plugin:@eslint-community/mysticatea/es2018",
parserOptions: {
project: "./tsconfig.eslint.json",
},
settings: {
node: {
tryExtensions: [
".js",
".json",
".mjs",
".node",
".ts",
".tsx",
".vue",
],
},
},
rules: {
// TSC does this
"no-redeclare": "off",
// https://github.com/typescript-eslint/typescript-eslint/issues/743
"@eslint-community/mysticatea/ts/unbound-method": "off",
// Temporary disabled rule: Making a type stricter requires a breaking change of the types.
"@eslint-community/mysticatea/ts/prefer-readonly-parameter-types":
"off",
// Should be fixed by `@eslint-community/eslint-plugin-mysticatea`
"no-duplicate-imports": "off",
"@eslint-community/mysticatea/ts/no-duplicate-imports": [
"error",
{ includeExports: true },
],
},
overrides: [
{
files: "./scripts/clone-without-circular.ts",
// Temporarily disable these rules until we fix the `any` usage
rules: {
"@eslint-community/mysticatea/eslint-comments/no-use": "off",
"@eslint-community/mysticatea/ts/no-unsafe-argument": "off",
"@eslint-community/mysticatea/ts/no-unsafe-assignment": "off",
"@eslint-community/mysticatea/ts/no-unsafe-member-access":
"off",
"@eslint-community/mysticatea/ts/no-unsafe-return": "off",
},
},
{
files: ["./scripts/extract-test262.ts"],
// Disables rules that cannot resolve reports due to missing library type definitions.
rules: {
"@eslint-community/mysticatea/ts/ban-ts-comment": "off",
"@eslint-community/mysticatea/ts/no-unsafe-assignment": "off",
"@eslint-community/mysticatea/ts/no-unsafe-call": "off",
"@eslint-community/mysticatea/ts/naming-convention": "off",
"@eslint-community/mysticatea/ts/no-require-imports": "off",
"@eslint-community/mysticatea/ts/no-var-requires": "off",
},
},
{
files: "./src/unicode/ids.ts",
rules: {
curly: "off",
"no-misleading-character-class": "off",
},
},
{
files: "./src/unicode/property-data.ts",
rules: {
"@eslint-community/mysticatea/ts/camelcase": "off",
},
},
],
}