@eslinted/defaults 20.4.0-rc.2 → 20.4.0-rc.3
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/index.d.ts +2 -2
- package/dist/rules/global.d.ts +1 -1
- package/dist/rules/global.d.ts.map +1 -1
- package/dist/rules/global.js +45 -47
- package/dist/rules/global.js.map +1 -1
- package/dist/rules/index.d.ts +2 -2
- package/dist/rules/js.d.ts +1 -1
- package/dist/rules/json/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/rules/global.ts +46 -48
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ declare const _default: {
|
|
|
68
68
|
}
|
|
69
69
|
];
|
|
70
70
|
};
|
|
71
|
-
}
|
|
71
|
+
} | {
|
|
72
72
|
rules: {
|
|
73
73
|
readonly "array-callback-return": readonly [
|
|
74
74
|
import("./rules/state.js").State.ON,
|
|
@@ -1042,7 +1042,7 @@ declare const _default: {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
];
|
|
1044
1044
|
};
|
|
1045
|
-
}
|
|
1045
|
+
} | {
|
|
1046
1046
|
rules: {
|
|
1047
1047
|
readonly "json/no-unsafe-values": import("./rules/state.js").State.ON;
|
|
1048
1048
|
readonly "json/no-unnormalized-keys": import("./rules/state.js").State.ON;
|
package/dist/rules/global.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,wBAsDE"}
|
package/dist/rules/global.js
CHANGED
|
@@ -1,58 +1,56 @@
|
|
|
1
|
-
export default
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
maxItems: 1,
|
|
16
|
-
},
|
|
1
|
+
export default {
|
|
2
|
+
rules: {
|
|
3
|
+
"stylistic/eol-last": 1,
|
|
4
|
+
"stylistic/linebreak-style": 1,
|
|
5
|
+
"stylistic/exp-list-style": [
|
|
6
|
+
1,
|
|
7
|
+
{
|
|
8
|
+
singleLine: {
|
|
9
|
+
maxItems: 2,
|
|
10
|
+
},
|
|
11
|
+
overrides: {
|
|
12
|
+
ExportNamedDeclaration: {
|
|
13
|
+
singleLine: {
|
|
14
|
+
maxItems: 1,
|
|
17
15
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
},
|
|
17
|
+
TSInterfaceBody: {
|
|
18
|
+
singleLine: {
|
|
19
|
+
maxItems: 0,
|
|
20
|
+
spacing: "never",
|
|
23
21
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
},
|
|
23
|
+
TSEnumBody: {
|
|
24
|
+
singleLine: {
|
|
25
|
+
maxItems: 0,
|
|
26
|
+
spacing: "never",
|
|
29
27
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
},
|
|
29
|
+
TSTupleType: {
|
|
30
|
+
singleLine: {
|
|
31
|
+
maxItems: 3,
|
|
34
32
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
},
|
|
34
|
+
TSTypeParameterDeclaration: {
|
|
35
|
+
singleLine: {
|
|
36
|
+
maxItems: 1,
|
|
39
37
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
},
|
|
39
|
+
JSONArrayExpression: {
|
|
40
|
+
singleLine: {
|
|
41
|
+
maxItems: 0,
|
|
42
|
+
spacing: "never",
|
|
45
43
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
},
|
|
45
|
+
JSONObjectExpression: {
|
|
46
|
+
singleLine: {
|
|
47
|
+
maxItems: 0,
|
|
48
|
+
spacing: "never",
|
|
51
49
|
},
|
|
52
50
|
},
|
|
53
51
|
},
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
},
|
|
53
|
+
],
|
|
56
54
|
},
|
|
57
|
-
|
|
55
|
+
};
|
|
58
56
|
//# sourceMappingURL=global.js.map
|
package/dist/rules/global.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb
|
|
1
|
+
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb,KAAK,EAAE;QACL,oBAAoB,GAAY;QAChC,2BAA2B,GAAY;QACvC,0BAA0B,EAAE;;YAE1B;gBACE,UAAU,EAAE;oBACV,QAAQ,EAAE,CAAC;iBACZ;gBACD,SAAS,EAAE;oBACT,sBAAsB,EAAE;wBACtB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,eAAe,EAAE;wBACf,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,UAAU,EAAE;wBACV,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,WAAW,EAAE;wBACX,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,0BAA0B,EAAE;wBAC1B,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,mBAAmB,EAAE;wBACnB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,oBAAoB,EAAE;wBACpB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;iBACF;aACF;SACF;KACO;CACX,CAAC"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ declare const _default: {
|
|
|
53
53
|
}
|
|
54
54
|
];
|
|
55
55
|
};
|
|
56
|
-
}
|
|
56
|
+
} | {
|
|
57
57
|
rules: {
|
|
58
58
|
readonly "array-callback-return": readonly [
|
|
59
59
|
import("./state.js").State.ON,
|
|
@@ -1027,7 +1027,7 @@ declare const _default: {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
];
|
|
1029
1029
|
};
|
|
1030
|
-
}
|
|
1030
|
+
} | {
|
|
1031
1031
|
rules: {
|
|
1032
1032
|
readonly "json/no-unsafe-values": import("./state.js").State.ON;
|
|
1033
1033
|
readonly "json/no-unnormalized-keys": import("./state.js").State.ON;
|
package/dist/rules/js.d.ts
CHANGED
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": "20.4.0-rc.
|
|
6
|
+
"version": "20.4.0-rc.3",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/src/rules/global.ts
CHANGED
|
@@ -1,59 +1,57 @@
|
|
|
1
1
|
import { State } from "./state";
|
|
2
2
|
|
|
3
|
-
export default
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
maxItems: 1,
|
|
18
|
-
},
|
|
3
|
+
export default {
|
|
4
|
+
rules: {
|
|
5
|
+
"stylistic/eol-last": State.WARN,
|
|
6
|
+
"stylistic/linebreak-style": State.WARN,
|
|
7
|
+
"stylistic/exp-list-style": [
|
|
8
|
+
State.WARN,
|
|
9
|
+
{
|
|
10
|
+
singleLine: {
|
|
11
|
+
maxItems: 2,
|
|
12
|
+
},
|
|
13
|
+
overrides: {
|
|
14
|
+
ExportNamedDeclaration: {
|
|
15
|
+
singleLine: {
|
|
16
|
+
maxItems: 1,
|
|
19
17
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
},
|
|
19
|
+
TSInterfaceBody: {
|
|
20
|
+
singleLine: {
|
|
21
|
+
maxItems: 0,
|
|
22
|
+
spacing: "never",
|
|
25
23
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
},
|
|
25
|
+
TSEnumBody: {
|
|
26
|
+
singleLine: {
|
|
27
|
+
maxItems: 0,
|
|
28
|
+
spacing: "never",
|
|
31
29
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
},
|
|
31
|
+
TSTupleType: {
|
|
32
|
+
singleLine: {
|
|
33
|
+
maxItems: 3,
|
|
36
34
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
},
|
|
36
|
+
TSTypeParameterDeclaration: {
|
|
37
|
+
singleLine: {
|
|
38
|
+
maxItems: 1,
|
|
41
39
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
},
|
|
41
|
+
JSONArrayExpression: {
|
|
42
|
+
singleLine: {
|
|
43
|
+
maxItems: 0,
|
|
44
|
+
spacing: "never",
|
|
47
45
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
},
|
|
47
|
+
JSONObjectExpression: {
|
|
48
|
+
singleLine: {
|
|
49
|
+
maxItems: 0,
|
|
50
|
+
spacing: "never",
|
|
53
51
|
},
|
|
54
52
|
},
|
|
55
53
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
} as const,
|
|
57
|
+
};
|