@eslinted/defaults 12.9.0 → 12.10.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/dist/ignores/global.js +0 -2
- package/dist/ignores/global.js.map +1 -1
- package/dist/index.d.ts +60 -512
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +60 -325
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.d.ts +2 -7
- package/dist/rules/scopes/css/enable.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.js +3 -19
- package/dist/rules/scopes/css/enable.js.map +1 -1
- package/dist/rules/scopes/css/index.d.ts +2 -7
- package/dist/rules/scopes/css/index.d.ts.map +1 -1
- package/dist/rules/scopes/enable.d.ts +35 -184
- package/dist/rules/scopes/enable.d.ts.map +1 -1
- package/dist/rules/scopes/enable.js +68 -326
- package/dist/rules/scopes/enable.js.map +1 -1
- package/dist/rules/scopes/enable.style.d.ts +18 -116
- package/dist/rules/scopes/enable.style.d.ts.map +1 -1
- package/dist/rules/scopes/enable.style.js +31 -204
- package/dist/rules/scopes/enable.style.js.map +1 -1
- package/dist/rules/scopes/html/index.d.ts +5 -18
- package/dist/rules/scopes/html/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.d.ts +5 -18
- package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.js +7 -63
- package/dist/rules/scopes/html/plugin/index.js.map +1 -1
- package/dist/rules/scopes/index.d.ts +53 -300
- package/dist/rules/scopes/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable.js +2 -7
- package/dist/rules/scopes/json/enable.js.map +1 -1
- package/dist/rules/scopes/json/plugin/extension.js +7 -12
- package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/json/plugin/index.js +2 -9
- package/dist/rules/scopes/json/plugin/index.js.map +1 -1
- package/dist/rules/scopes/jsonc/plugin/index.js +1 -2
- package/dist/rules/scopes/jsonc/plugin/index.js.map +1 -1
- package/dist/rules/scopes/jsoncc/plugin/index.js +1 -2
- package/dist/rules/scopes/jsoncc/plugin/index.js.map +1 -1
- package/dist/rules/scopes/mocha/chai/expect.js +1 -5
- package/dist/rules/scopes/mocha/chai/expect.js.map +1 -1
- package/dist/rules/scopes/mocha/chai/index.js +1 -2
- package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
- package/dist/rules/scopes/mocha/disable.js +2 -3
- package/dist/rules/scopes/mocha/disable.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +2 -13
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/disable.js +6 -9
- package/dist/rules/scopes/svelte/disable.js.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +14 -37
- package/dist/rules/scopes/svelte/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/extension/disable.js +2 -3
- package/dist/rules/scopes/svelte/extension/disable.js.map +1 -1
- package/dist/rules/scopes/svelte/extension/index.js +2 -3
- package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
- package/dist/rules/scopes/ts/disable.js +4 -5
- package/dist/rules/scopes/ts/disable.js.map +1 -1
- package/dist/rules/scopes/ts/enable.d.ts +3 -3
- package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
- package/dist/rules/scopes/ts/enable.js +11 -37
- package/dist/rules/scopes/ts/enable.js.map +1 -1
- package/dist/rules/scopes/ts/extension/disable.js +1 -18
- package/dist/rules/scopes/ts/extension/disable.js.map +1 -1
- package/dist/rules/scopes/ts/extension/index.js +1 -22
- package/dist/rules/scopes/ts/extension/index.js.map +1 -1
- package/dist/rules/scopes/yml/plugin/extension.js +8 -9
- package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/yml/plugin/index.js +9 -28
- package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
- package/dist/settings/registry/manifests/css.js +1 -3
- package/dist/settings/registry/manifests/css.js.map +1 -1
- package/dist/settings/registry/manifests/html.js +1 -2
- package/dist/settings/registry/manifests/html.js.map +1 -1
- package/dist/settings/registry/manifests/js.js +2 -6
- package/dist/settings/registry/manifests/js.js.map +1 -1
- package/dist/settings/registry/manifests/json.js +2 -2
- package/dist/settings/registry/manifests/json.js.map +1 -1
- package/dist/settings/registry/manifests/jsonc.js +2 -6
- package/dist/settings/registry/manifests/jsonc.js.map +1 -1
- package/dist/settings/registry/manifests/jsoncc.js +2 -6
- package/dist/settings/registry/manifests/jsoncc.js.map +1 -1
- package/dist/settings/registry/manifests/mocha.js +2 -6
- package/dist/settings/registry/manifests/mocha.js.map +1 -1
- package/dist/settings/registry/manifests/ts.js +7 -20
- package/dist/settings/registry/manifests/ts.js.map +1 -1
- package/dist/settings/registry/manifests/yml.js +1 -4
- package/dist/settings/registry/manifests/yml.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/scopes/css/enable.ts +2 -13
- package/src/rules/scopes/enable.style.ts +51 -177
- package/src/rules/scopes/enable.ts +141 -316
- package/src/rules/scopes/html/plugin/index.ts +18 -40
- package/tsconfig.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/mocha.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,eAAe,EAAE
|
|
1
|
+
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/mocha.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,eAAe,EAAE,EAEhB;IACD,aAAa,EAAE,EAEd;CACF,CAAC"}
|
|
@@ -3,28 +3,15 @@ export const ts = {
|
|
|
3
3
|
parser: "ts",
|
|
4
4
|
},
|
|
5
5
|
parserOptions: {
|
|
6
|
-
// DOC: https://typescript-eslint.io/packages/parser/#configuration
|
|
7
|
-
// INFO: `parserOptions.projectService` is the modern replacement for the deprecated `parserOptions.project`:
|
|
8
|
-
// - https://typescript-eslint.io/blog/project-service/
|
|
9
|
-
// - https://typescript-eslint.io/getting-started/typed-linting/
|
|
10
|
-
// - https://typescript-eslint.io/troubleshooting/typed-linting/
|
|
11
|
-
// disallowAutomaticSingleRunInference: false /* @default: false */,
|
|
12
|
-
// cacheLifetime: { glob: 30 } /* { glob: "Infinity" (never) | number | @default: 30 seconds } */,
|
|
13
6
|
ecmaFeatures: {
|
|
14
|
-
|
|
15
|
-
globalReturn: true /* @default: false */,
|
|
7
|
+
globalReturn: true,
|
|
16
8
|
},
|
|
17
|
-
ecmaVersion: 2023
|
|
18
|
-
emitDecoratorMetadata: false
|
|
19
|
-
experimentalDecorators: false
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// jsxFragmentName: null /* string | @default: null | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
24
|
-
// jsxPragma: "React" /* null | string (e.g. "preact") | @default: "React" | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
25
|
-
// lib: ["es2018"] /* string[] | @default: ["es2018"] | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
26
|
-
projectService: true /* ProjectServiceOptions (DOC: https://typescript-eslint.io/packages/parser/#projectserviceoptions) | true | @default: false */,
|
|
27
|
-
warnOnUnsupportedTypeScriptVersion: false /* preference due to nuisance | @default: true */,
|
|
9
|
+
ecmaVersion: 2023,
|
|
10
|
+
emitDecoratorMetadata: false,
|
|
11
|
+
experimentalDecorators: false,
|
|
12
|
+
isolatedDeclarations: false,
|
|
13
|
+
projectService: true,
|
|
14
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
|
28
15
|
},
|
|
29
16
|
};
|
|
30
17
|
//# sourceMappingURL=ts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/ts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;KACtB;IACD,aAAa,EAAE;
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/ts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;KACtB;IACD,aAAa,EAAE;QASb,YAAY,EAAE;YAEZ,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EAAE,IAAI;QACjB,qBAAqB,EAAE,KAAK;QAC5B,sBAAsB,EAAE,KAAK;QAE7B,oBAAoB,EAAE,KAAK;QAK3B,cAAc,EAAE,IAAI;QACpB,kCAAkC,EAAE,KAAK;KAC1C;CACF,CAAC"}
|
|
@@ -2,9 +2,6 @@ export const yml = {
|
|
|
2
2
|
languageOptions: {
|
|
3
3
|
parser: "yml",
|
|
4
4
|
},
|
|
5
|
-
parserOptions: {
|
|
6
|
-
// DOC: https://github.com/ota-meshi/yaml-eslint-parser?tab=readme-ov-file#advanced-configuration
|
|
7
|
-
// defaultYAMLVersion: "1.2" /* "1.1" | @default: "1.2" | DOC: https://github.com/ota-meshi/yaml-eslint-parser?tab=readme-ov-file#parseroptionsdefaultyamlversion */,
|
|
8
|
-
},
|
|
5
|
+
parserOptions: {},
|
|
9
6
|
};
|
|
10
7
|
//# sourceMappingURL=yml.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/yml.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,eAAe,EAAE;QACf,MAAM,EAAE,KAAc;KACvB;IACD,aAAa,EAAE
|
|
1
|
+
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/yml.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,eAAe,EAAE;QACf,MAAM,EAAE,KAAc;KACvB;IACD,aAAa,EAAE,EAGd;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "12.
|
|
6
|
+
"version": "12.10.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"private": false,
|
|
9
9
|
"engineStrict": true,
|
|
@@ -15,13 +15,7 @@ export const CssEnable = {
|
|
|
15
15
|
"css/no-invalid-at-rules": ON,
|
|
16
16
|
"css/no-invalid-named-grid-areas": ON,
|
|
17
17
|
// "css/no-invalid-properties": OFF /* BUG: disabled with PREJUDICE (see commit: https://github.com/jimmy-zhening-luo/linted-defaults/commit/702e6632328813e84df92cade730469661ee85db) */,
|
|
18
|
-
"css/prefer-logical-properties":
|
|
19
|
-
ON,
|
|
20
|
-
{
|
|
21
|
-
allowProperties: [],
|
|
22
|
-
allowUnits: [],
|
|
23
|
-
},
|
|
24
|
-
],
|
|
18
|
+
"css/prefer-logical-properties": ON,
|
|
25
19
|
"css/relative-font-units": [
|
|
26
20
|
ON,
|
|
27
21
|
{
|
|
@@ -31,12 +25,7 @@ export const CssEnable = {
|
|
|
31
25
|
],
|
|
32
26
|
},
|
|
33
27
|
],
|
|
34
|
-
"css/use-baseline":
|
|
35
|
-
ON,
|
|
36
|
-
{
|
|
37
|
-
available: "widely" /* 2023 | number (year) | `newly` | @default `widely` */,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
28
|
+
"css/use-baseline": ON,
|
|
40
29
|
// "css/use-layers": OFF, /* not recommended by docs: https://github.com/eslint/css?tab=readme-ov-file#rules; also BUG: ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */
|
|
41
30
|
} as const,
|
|
42
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
WARN,
|
|
5
5
|
ON,
|
|
6
6
|
all,
|
|
@@ -9,13 +9,11 @@ import {
|
|
|
9
9
|
as_needed,
|
|
10
10
|
before,
|
|
11
11
|
below,
|
|
12
|
-
beside,
|
|
13
12
|
consistent,
|
|
14
13
|
double,
|
|
15
14
|
inside,
|
|
16
15
|
last,
|
|
17
16
|
never,
|
|
18
|
-
strict,
|
|
19
17
|
wildcard,
|
|
20
18
|
} from "../_strings";
|
|
21
19
|
|
|
@@ -23,164 +21,58 @@ export const EnableStyle = {
|
|
|
23
21
|
id: ID.Enable.Style,
|
|
24
22
|
rules: {
|
|
25
23
|
// DOC: https://eslint.style/rules
|
|
26
|
-
"@stylistic/array-bracket-newline":
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
multiline: true,
|
|
30
|
-
minItems: null,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
"@stylistic/array-bracket-spacing": [
|
|
34
|
-
ON,
|
|
35
|
-
never,
|
|
36
|
-
{
|
|
37
|
-
singleValue: false,
|
|
38
|
-
objectsInArrays: false,
|
|
39
|
-
arraysInArrays: false,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
24
|
+
"@stylistic/array-bracket-newline": ON,
|
|
25
|
+
"@stylistic/array-bracket-spacing": ON,
|
|
42
26
|
"@stylistic/array-element-newline": [
|
|
43
27
|
ON,
|
|
44
28
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
ArrayPattern: {
|
|
51
|
-
consistent: true,
|
|
52
|
-
multiline: true,
|
|
53
|
-
minItems: 3,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
29
|
+
consistent: true,
|
|
30
|
+
multiline: true,
|
|
31
|
+
minItems: 3,
|
|
32
|
+
} /* never | consistent | @default always | { ... } */,
|
|
56
33
|
],
|
|
57
34
|
"@stylistic/arrow-parens": [
|
|
58
35
|
ON,
|
|
59
|
-
as_needed
|
|
60
|
-
{
|
|
61
|
-
requireForBlockBody: false,
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
"@stylistic/arrow-spacing": [
|
|
65
|
-
ON,
|
|
66
|
-
{
|
|
67
|
-
before: true,
|
|
68
|
-
after: true,
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
"@stylistic/block-spacing": [
|
|
72
|
-
ON,
|
|
73
|
-
always,
|
|
36
|
+
as_needed /* as-needed | @default always */,
|
|
74
37
|
],
|
|
38
|
+
"@stylistic/arrow-spacing": ON,
|
|
39
|
+
"@stylistic/block-spacing": ON,
|
|
75
40
|
"@stylistic/brace-style": [
|
|
76
41
|
ON,
|
|
77
|
-
"stroustrup"
|
|
42
|
+
"stroustrup" /* stroustrup | allman | @default 1tbs */,
|
|
78
43
|
{
|
|
79
|
-
allowSingleLine: true
|
|
44
|
+
allowSingleLine: true /* @default false */,
|
|
80
45
|
},
|
|
81
46
|
],
|
|
82
47
|
"@stylistic/comma-dangle": [
|
|
83
48
|
ON,
|
|
84
49
|
always_multiline,
|
|
85
50
|
],
|
|
86
|
-
"@stylistic/comma-spacing":
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
after: true,
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
"@stylistic/comma-style": [
|
|
94
|
-
ON,
|
|
95
|
-
last,
|
|
96
|
-
{
|
|
97
|
-
exceptions: {
|
|
98
|
-
ArrayExpression: false /* ignores comma style in array literals */,
|
|
99
|
-
ArrayPattern: false /* ignores comma style in array patterns of destructuring */,
|
|
100
|
-
ArrowFunctionExpression: false /* ignores comma style in the parameters of arrow function expressions */,
|
|
101
|
-
CallExpression: false /* ignores comma style in the arguments of function calls */,
|
|
102
|
-
FunctionDeclaration: false /* ignores comma style in the parameters of function declarations */,
|
|
103
|
-
FunctionExpression: false /* ignores comma style in the parameters of function expressions */,
|
|
104
|
-
ImportDeclaration: false /* ignores comma style in the specifiers / import attributes of import declarations */,
|
|
105
|
-
ObjectExpression: false /* ignores comma style in object literals */,
|
|
106
|
-
ObjectPattern: false /* ignores comma style in object patterns of destructuring */,
|
|
107
|
-
VariableDeclaration: false /* ignores comma style in variable declarations */,
|
|
108
|
-
NewExpression: false /* ignores comma style in the parameters of constructor expressions */,
|
|
109
|
-
ExportAllDeclaration: false /* ignores comma style in the import attributes of export all declarations */,
|
|
110
|
-
ExportNamedDeclaration: false /* ignores comma style in the specifiers / import attributes of export named declarations */,
|
|
111
|
-
ImportExpression: false /* ignores comma style in the arguments of import expressions */,
|
|
112
|
-
SequenceExpression: false /* ignores comma style in sequence expressions */,
|
|
113
|
-
ClassDeclaration: false /* ignores comma style in the TypeScript implements of class declarations */,
|
|
114
|
-
ClassExpression: false /* ignores comma style in the TypeScript implements of class declarations */,
|
|
115
|
-
TSDeclareFunction: false /* ignores comma style in the parameters of TypeScript declare functions */,
|
|
116
|
-
TSFunctionType: false /* ignores comma style in the parameters of TypeScript function types */,
|
|
117
|
-
TSConstructorType: false /* ignores comma style in the parameters of TypeScript constructor types */,
|
|
118
|
-
TSEmptyBodyFunctionExpression: false /* ignores comma style in the parameters of TypeScript empty body function expressions */,
|
|
119
|
-
TSMethodSignature: false /* ignores comma style in the parameters of TypeScript method signatures */,
|
|
120
|
-
TSCallSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript call signature declarations */,
|
|
121
|
-
TSConstructSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript construct signature declarations */,
|
|
122
|
-
TSEnumBody: false /* ignores comma style in the members of TypeScript enums */,
|
|
123
|
-
TSTypeLiteral: false /* ignores comma style in the members of TypeScript type literals */,
|
|
124
|
-
TSInterfaceBody: false /* ignores comma style in the members of TypeScript interfaces */,
|
|
125
|
-
TSIndexSignature: false /* ignores comma style in the key parameters of TypeScript index signatures */,
|
|
126
|
-
TSInterfaceDeclaration: false /* ignores comma style in the extend classes of TypeScript interfaces */,
|
|
127
|
-
TSTupleType: false /* ignores comma style in the elements of TypeScript tuple types */,
|
|
128
|
-
TSTypeParameterDeclaration: false /* ignores comma style in the type parameters of TypeScript type parameter declarations */,
|
|
129
|
-
TSTypeParameterInstantiation: false /* ignores comma style in the type arguments of TypeScript type parameter instantiations */,
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
"@stylistic/computed-property-spacing": [
|
|
134
|
-
ON,
|
|
135
|
-
never,
|
|
136
|
-
{
|
|
137
|
-
enforceForClassMembers: true,
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
"@stylistic/curly-newline": [
|
|
141
|
-
ON,
|
|
142
|
-
{
|
|
143
|
-
// multiline: false,
|
|
144
|
-
// minElements: 2 /* when consistent:true, this errors if there are linebreaks with elements < minElements */,
|
|
145
|
-
consistent: true /* @default */,
|
|
146
|
-
},
|
|
147
|
-
],
|
|
51
|
+
"@stylistic/comma-spacing": ON,
|
|
52
|
+
"@stylistic/comma-style": ON,
|
|
53
|
+
"@stylistic/computed-property-spacing": ON,
|
|
54
|
+
"@stylistic/curly-newline": ON,
|
|
148
55
|
"@stylistic/dot-location": [
|
|
149
56
|
ON,
|
|
150
|
-
"property"
|
|
151
|
-
],
|
|
152
|
-
"@stylistic/eol-last": [
|
|
153
|
-
ON,
|
|
154
|
-
always,
|
|
57
|
+
"property" /* property | @default object */,
|
|
155
58
|
],
|
|
59
|
+
"@stylistic/eol-last": ON,
|
|
156
60
|
"@stylistic/function-call-argument-newline": [
|
|
157
61
|
ON,
|
|
158
|
-
consistent
|
|
159
|
-
],
|
|
160
|
-
"@stylistic/function-call-spacing": [
|
|
161
|
-
ON,
|
|
162
|
-
never,
|
|
62
|
+
consistent /* consistent | never | @default always */,
|
|
163
63
|
],
|
|
64
|
+
"@stylistic/function-call-spacing": ON,
|
|
164
65
|
"@stylistic/function-paren-newline": [
|
|
165
66
|
ON,
|
|
166
67
|
"multiline-arguments",
|
|
167
68
|
] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
168
|
-
"@stylistic/generator-star-spacing":
|
|
169
|
-
|
|
170
|
-
{
|
|
171
|
-
before: true,
|
|
172
|
-
after: false,
|
|
173
|
-
},
|
|
174
|
-
],
|
|
175
|
-
"@stylistic/implicit-arrow-linebreak": [
|
|
176
|
-
ON,
|
|
177
|
-
beside,
|
|
178
|
-
],
|
|
69
|
+
"@stylistic/generator-star-spacing": ON,
|
|
70
|
+
"@stylistic/implicit-arrow-linebreak": ON,
|
|
179
71
|
"@stylistic/indent": [
|
|
180
72
|
ON,
|
|
181
|
-
2
|
|
73
|
+
2 /* tab | number | @default 4 */,
|
|
182
74
|
{
|
|
183
|
-
ignoredNodes: [],
|
|
75
|
+
// ignoredNodes: [],
|
|
184
76
|
SwitchCase: 1,
|
|
185
77
|
VariableDeclarator: {
|
|
186
78
|
"var": 0,
|
|
@@ -188,54 +80,39 @@ export const EnableStyle = {
|
|
|
188
80
|
"const": 0,
|
|
189
81
|
},
|
|
190
82
|
outerIIFEBody: 0,
|
|
191
|
-
MemberExpression: 1,
|
|
192
|
-
FunctionDeclaration: {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
FunctionExpression: {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
StaticBlock: {
|
|
203
|
-
|
|
204
|
-
},
|
|
205
|
-
CallExpression: {
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
ArrayExpression: 1,
|
|
209
|
-
ObjectExpression: 1,
|
|
210
|
-
ImportDeclaration: 1,
|
|
211
|
-
flatTernaryExpressions: false,
|
|
83
|
+
// MemberExpression: 1,
|
|
84
|
+
// FunctionDeclaration: {
|
|
85
|
+
// parameters: 1,
|
|
86
|
+
// body: 1,
|
|
87
|
+
// returnType: 1,
|
|
88
|
+
// },
|
|
89
|
+
// FunctionExpression: {
|
|
90
|
+
// parameters: 1,
|
|
91
|
+
// body: 1,
|
|
92
|
+
// returnType: 1,
|
|
93
|
+
// },
|
|
94
|
+
// StaticBlock: {
|
|
95
|
+
// body: 1,
|
|
96
|
+
// },
|
|
97
|
+
// CallExpression: {
|
|
98
|
+
// arguments: 1,
|
|
99
|
+
// },
|
|
100
|
+
// ArrayExpression: 1,
|
|
101
|
+
// ObjectExpression: 1,
|
|
102
|
+
// ImportDeclaration: 1,
|
|
103
|
+
// flatTernaryExpressions: false,
|
|
212
104
|
offsetTernaryExpressions: true,
|
|
213
|
-
offsetTernaryExpressionsOffsetCallExpressions: true,
|
|
214
|
-
ignoreComments: false,
|
|
215
|
-
tabLength: 2 /* @default
|
|
105
|
+
// offsetTernaryExpressionsOffsetCallExpressions: true,
|
|
106
|
+
// ignoreComments: false,
|
|
107
|
+
tabLength: 2 /* @default 4 */,
|
|
216
108
|
},
|
|
217
109
|
],
|
|
218
110
|
"@stylistic/indent-binary-ops": [
|
|
219
111
|
ON,
|
|
220
112
|
2,
|
|
221
113
|
],
|
|
222
|
-
"@stylistic/key-spacing":
|
|
223
|
-
|
|
224
|
-
{
|
|
225
|
-
beforeColon: false,
|
|
226
|
-
afterColon: true,
|
|
227
|
-
mode: strict,
|
|
228
|
-
ignoredNodes: [],
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
"@stylistic/keyword-spacing": [
|
|
232
|
-
ON,
|
|
233
|
-
{
|
|
234
|
-
before: true,
|
|
235
|
-
after: true,
|
|
236
|
-
overrides: {},
|
|
237
|
-
},
|
|
238
|
-
],
|
|
114
|
+
"@stylistic/key-spacing": ON,
|
|
115
|
+
"@stylistic/keyword-spacing": ON,
|
|
239
116
|
// "@stylistic/line-comment-position": OFF,
|
|
240
117
|
// "@stylistic/lines-around-comment": OFF,
|
|
241
118
|
"@stylistic/lines-between-class-members": [
|
|
@@ -302,10 +179,7 @@ export const EnableStyle = {
|
|
|
302
179
|
ON,
|
|
303
180
|
always_multiline,
|
|
304
181
|
],
|
|
305
|
-
"@stylistic/new-parens":
|
|
306
|
-
OFF,
|
|
307
|
-
never,
|
|
308
|
-
],
|
|
182
|
+
// "@stylistic/new-parens": OFF,
|
|
309
183
|
"@stylistic/newline-per-chained-call": [
|
|
310
184
|
ON,
|
|
311
185
|
{
|