@wondermarin/eslint-config 1.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -12
- package/dist/main.d.ts +36 -0
- package/dist/main.js +1583 -0
- package/package.json +54 -21
- package/configs/base.json +0 -343
- package/configs/react.json +0 -118
- package/configs/typescript.json +0 -141
package/configs/typescript.json
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"parser": "@typescript-eslint/parser",
|
|
3
|
-
"parserOptions": {
|
|
4
|
-
"project": ["./tsconfig.json"]
|
|
5
|
-
},
|
|
6
|
-
"plugins": [
|
|
7
|
-
"@typescript-eslint"
|
|
8
|
-
],
|
|
9
|
-
"rules": {
|
|
10
|
-
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
11
|
-
"@typescript-eslint/array-type": ["error", { "default": "array", "readonly": "array" }],
|
|
12
|
-
"@typescript-eslint/await-thenable": "error",
|
|
13
|
-
"@typescript-eslint/ban-ts-comment": "error",
|
|
14
|
-
"@typescript-eslint/ban-tslint-comment": "error",
|
|
15
|
-
"@typescript-eslint/ban-types": "error",
|
|
16
|
-
"@typescript-eslint/class-literal-property-style": "error",
|
|
17
|
-
"@typescript-eslint/consistent-generic-constructors": "error",
|
|
18
|
-
"@typescript-eslint/consistent-indexed-object-style": "error",
|
|
19
|
-
"@typescript-eslint/consistent-type-assertions": "off",
|
|
20
|
-
"@typescript-eslint/consistent-type-definitions": "error",
|
|
21
|
-
"@typescript-eslint/consistent-type-exports": "off",
|
|
22
|
-
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports", "fixStyle": "inline-type-imports" }],
|
|
23
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
24
|
-
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
25
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
26
|
-
"@typescript-eslint/member-delimiter-style": "off",
|
|
27
|
-
"@typescript-eslint/member-ordering": "off",
|
|
28
|
-
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
29
|
-
"@typescript-eslint/naming-convention": [
|
|
30
|
-
"error",
|
|
31
|
-
{ "selector": "interface", "format": ["StrictPascalCase"], "leadingUnderscore": "forbid", "trailingUnderscore": "forbid", "prefix": ["I"] },
|
|
32
|
-
{ "selector": "typeAlias", "format": ["StrictPascalCase"], "leadingUnderscore": "forbid", "trailingUnderscore": "forbid", "prefix": ["T"] },
|
|
33
|
-
{ "selector": "enum", "format": ["StrictPascalCase"], "leadingUnderscore": "forbid", "trailingUnderscore": "forbid", "prefix": ["E"] }
|
|
34
|
-
],
|
|
35
|
-
"@typescript-eslint/no-base-to-string": "error",
|
|
36
|
-
"@typescript-eslint/no-confusing-non-null-assertion": "error",
|
|
37
|
-
"@typescript-eslint/no-confusing-void-expression": ["error", { "ignoreArrowShorthand": true }],
|
|
38
|
-
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
39
|
-
"@typescript-eslint/no-dynamic-delete": "off",
|
|
40
|
-
"@typescript-eslint/no-empty-interface": "error",
|
|
41
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
42
|
-
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
43
|
-
"@typescript-eslint/no-extraneous-class": "off",
|
|
44
|
-
"@typescript-eslint/no-floating-promises": "off",
|
|
45
|
-
"@typescript-eslint/no-for-in-array": "error",
|
|
46
|
-
"@typescript-eslint/no-inferrable-types": "error",
|
|
47
|
-
"@typescript-eslint/no-invalid-void-type": "error",
|
|
48
|
-
"@typescript-eslint/no-meaningless-void-operator": "error",
|
|
49
|
-
"@typescript-eslint/no-misused-new": "error",
|
|
50
|
-
"@typescript-eslint/no-misused-promises": "off",
|
|
51
|
-
"@typescript-eslint/no-namespace": "error",
|
|
52
|
-
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
|
|
53
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
54
|
-
"@typescript-eslint/no-non-null-assertion": "error",
|
|
55
|
-
"@typescript-eslint/no-redundant-type-constituents": "error",
|
|
56
|
-
"@typescript-eslint/no-require-imports": "error",
|
|
57
|
-
"@typescript-eslint/no-this-alias": "error",
|
|
58
|
-
"@typescript-eslint/no-type-alias": "off",
|
|
59
|
-
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
60
|
-
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
61
|
-
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
|
62
|
-
"@typescript-eslint/no-unnecessary-type-arguments": "error",
|
|
63
|
-
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
64
|
-
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
65
|
-
"@typescript-eslint/no-unsafe-argument": "off",
|
|
66
|
-
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
67
|
-
"@typescript-eslint/no-unsafe-call": "off",
|
|
68
|
-
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
69
|
-
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
70
|
-
"@typescript-eslint/no-unsafe-return": "off",
|
|
71
|
-
"@typescript-eslint/no-useless-empty-export": "error",
|
|
72
|
-
"@typescript-eslint/no-var-requires": "error",
|
|
73
|
-
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
74
|
-
"@typescript-eslint/parameter-properties": "off",
|
|
75
|
-
"@typescript-eslint/prefer-as-const": "error",
|
|
76
|
-
"@typescript-eslint/prefer-enum-initializers": "error",
|
|
77
|
-
"@typescript-eslint/prefer-for-of": "off",
|
|
78
|
-
"@typescript-eslint/prefer-function-type": "error",
|
|
79
|
-
"@typescript-eslint/prefer-includes": "error",
|
|
80
|
-
"@typescript-eslint/prefer-literal-enum-member": ["error", { "allowBitwiseExpressions": true }],
|
|
81
|
-
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
82
|
-
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
|
83
|
-
"@typescript-eslint/prefer-optional-chain": "error",
|
|
84
|
-
"@typescript-eslint/prefer-readonly": "off",
|
|
85
|
-
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
86
|
-
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
87
|
-
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
88
|
-
"@typescript-eslint/prefer-return-this-type": "error",
|
|
89
|
-
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
|
90
|
-
"@typescript-eslint/prefer-ts-expect-error": "error",
|
|
91
|
-
"@typescript-eslint/promise-function-async": "error",
|
|
92
|
-
"@typescript-eslint/require-array-sort-compare": "off",
|
|
93
|
-
"@typescript-eslint/restrict-plus-operands": "error",
|
|
94
|
-
"@typescript-eslint/restrict-template-expressions": "off",
|
|
95
|
-
"@typescript-eslint/sort-type-constituents": "off",
|
|
96
|
-
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
97
|
-
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
98
|
-
"@typescript-eslint/triple-slash-reference": "error",
|
|
99
|
-
"@typescript-eslint/typedef": "off",
|
|
100
|
-
"@typescript-eslint/unbound-method": "off",
|
|
101
|
-
"@typescript-eslint/unified-signatures": "error",
|
|
102
|
-
"@typescript-eslint/default-param-last": "error",
|
|
103
|
-
"@typescript-eslint/dot-notation": "error",
|
|
104
|
-
"@typescript-eslint/init-declarations": "off",
|
|
105
|
-
"@typescript-eslint/no-array-constructor": "error",
|
|
106
|
-
"@typescript-eslint/no-dupe-class-members": "error",
|
|
107
|
-
"@typescript-eslint/no-empty-function": "error",
|
|
108
|
-
"@typescript-eslint/no-extra-semi": "off",
|
|
109
|
-
"@typescript-eslint/no-implied-eval": "error",
|
|
110
|
-
"@typescript-eslint/no-invalid-this": "error",
|
|
111
|
-
"@typescript-eslint/no-loop-func": "error",
|
|
112
|
-
"@typescript-eslint/no-loss-of-precision": "error",
|
|
113
|
-
"@typescript-eslint/no-magic-numbers": "off",
|
|
114
|
-
"@typescript-eslint/no-redeclare": "error",
|
|
115
|
-
"@typescript-eslint/no-restricted-imports": "off",
|
|
116
|
-
"@typescript-eslint/no-shadow": "off",
|
|
117
|
-
"@typescript-eslint/no-throw-literal": "off",
|
|
118
|
-
"@typescript-eslint/no-unused-expressions": "error",
|
|
119
|
-
"@typescript-eslint/no-unused-vars": "error",
|
|
120
|
-
"@typescript-eslint/no-use-before-define": "error",
|
|
121
|
-
"@typescript-eslint/no-useless-constructor": "error",
|
|
122
|
-
"@typescript-eslint/require-await": "off",
|
|
123
|
-
"@typescript-eslint/return-await": "error",
|
|
124
|
-
"@typescript-eslint/brace-style": "off",
|
|
125
|
-
"@typescript-eslint/comma-dangle": "off",
|
|
126
|
-
"@typescript-eslint/comma-spacing": "off",
|
|
127
|
-
"@typescript-eslint/func-call-spacing": "off",
|
|
128
|
-
"@typescript-eslint/indent": "off",
|
|
129
|
-
"@typescript-eslint/keyword-spacing": "off",
|
|
130
|
-
"@typescript-eslint/lines-between-class-members": "off",
|
|
131
|
-
"@typescript-eslint/no-extra-parens": "off",
|
|
132
|
-
"@typescript-eslint/object-curly-spacing": "off",
|
|
133
|
-
"@typescript-eslint/padding-line-between-statements": "off",
|
|
134
|
-
"@typescript-eslint/quotes": "off",
|
|
135
|
-
"@typescript-eslint/semi": "off",
|
|
136
|
-
"@typescript-eslint/space-before-blocks": "off",
|
|
137
|
-
"@typescript-eslint/space-before-function-paren": "off",
|
|
138
|
-
"@typescript-eslint/space-infix-ops": "off",
|
|
139
|
-
"@typescript-eslint/type-annotation-spacing": "off"
|
|
140
|
-
}
|
|
141
|
-
}
|