linted 21.0.0-rc.8 → 21.1.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/imports/index.d.ts +363 -1
- package/dist/imports/index.d.ts.map +1 -1
- package/dist/imports/parsers.d.ts +2 -0
- package/dist/imports/parsers.d.ts.map +1 -1
- package/dist/imports/parsers.js +2 -0
- package/dist/imports/parsers.js.map +1 -1
- package/dist/imports/plugins.d.ts +362 -2
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports/plugins.js +2 -2
- package/dist/imports/plugins.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/rules/index.d.ts +122 -1509
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js/enable.d.ts.map +1 -1
- package/dist/rules/js/enable.js +37 -11
- package/dist/rules/js/enable.js.map +1 -1
- package/dist/rules/js/index.d.ts.map +1 -1
- package/dist/rules/js/index.js +4 -1
- package/dist/rules/js/index.js.map +1 -1
- package/dist/rules/js/stylistic.d.ts.map +1 -1
- package/dist/rules/js/stylistic.js +73 -20
- package/dist/rules/js/stylistic.js.map +1 -1
- package/dist/rules/json/enable.d.ts +23 -2
- package/dist/rules/json/enable.d.ts.map +1 -1
- package/dist/rules/json/enable.js +24 -4
- package/dist/rules/json/enable.js.map +1 -1
- package/dist/rules/json/enable_x.d.ts +50 -0
- package/dist/rules/json/enable_x.d.ts.map +1 -0
- package/dist/rules/json/enable_x.js +80 -0
- package/dist/rules/json/enable_x.js.map +1 -0
- package/dist/rules/json/index.d.ts +52 -747
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/index.js +2 -2
- package/dist/rules/json/index.js.map +1 -1
- package/dist/rules/jsonc/index.d.ts +77 -3
- package/dist/rules/jsonc/index.d.ts.map +1 -1
- package/dist/rules/jsonc/index.js +5 -1
- package/dist/rules/jsonc/index.js.map +1 -1
- package/dist/rules/jsonc/override.d.ts +6 -0
- package/dist/rules/jsonc/override.d.ts.map +1 -0
- package/dist/rules/jsonc/override.js +12 -0
- package/dist/rules/jsonc/override.js.map +1 -0
- package/dist/rules/mocha/disable.d.ts.map +1 -1
- package/dist/rules/mocha/disable.js +1 -1
- package/dist/rules/mocha/disable.js.map +1 -1
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/dist/rules/mocha/index.js +4 -2
- package/dist/rules/mocha/index.js.map +1 -1
- package/dist/rules/svelte/disable.d.ts.map +1 -1
- package/dist/rules/svelte/disable.js +1 -1
- package/dist/rules/svelte/disable.js.map +1 -1
- package/dist/rules/svelte/enable.d.ts.map +1 -1
- package/dist/rules/svelte/enable.js +5 -3
- package/dist/rules/svelte/enable.js.map +1 -1
- package/dist/rules/svelte/enable_x.d.ts.map +1 -1
- package/dist/rules/svelte/enable_x.js +1 -2
- package/dist/rules/svelte/enable_x.js.map +1 -1
- package/dist/rules/ts/disable.d.ts.map +1 -1
- package/dist/rules/ts/disable.js +1 -1
- package/dist/rules/ts/disable.js.map +1 -1
- package/dist/rules/ts/disable_x.d.ts.map +1 -1
- package/dist/rules/ts/disable_x.js +1 -1
- package/dist/rules/ts/disable_x.js.map +1 -1
- package/dist/rules/ts/enable.d.ts.map +1 -1
- package/dist/rules/ts/enable.js +21 -7
- package/dist/rules/ts/enable.js.map +1 -1
- package/dist/rules/ts/enable_x.d.ts.map +1 -1
- package/dist/rules/ts/enable_x.js +1 -2
- package/dist/rules/ts/enable_x.js.map +1 -1
- package/dist/rules/yml/enable.d.ts.map +1 -1
- package/dist/rules/yml/enable.js +13 -5
- package/dist/rules/yml/enable.js.map +1 -1
- package/dist/rules/yml/enable_x.d.ts.map +1 -1
- package/dist/rules/yml/enable_x.js +5 -3
- package/dist/rules/yml/enable_x.js.map +1 -1
- package/dist/rules/yml/index.d.ts.map +1 -1
- package/dist/rules/yml/index.js +4 -1
- package/dist/rules/yml/index.js.map +1 -1
- package/package.json +4 -3
- package/src/imports/parsers.ts +2 -0
- package/src/imports/plugins.ts +2 -2
- package/src/index.ts +8 -2
- package/src/rules/html/enable.ts +1 -1
- package/src/rules/js/enable.ts +41 -15
- package/src/rules/js/index.ts +4 -1
- package/src/rules/js/stylistic.ts +77 -24
- package/src/rules/json/enable.ts +29 -6
- package/src/rules/json/enable_x.ts +91 -0
- package/src/rules/json/index.ts +2 -2
- package/src/rules/jsonc/index.ts +5 -1
- package/src/rules/jsonc/override.ts +18 -0
- package/src/rules/mocha/disable.ts +4 -1
- package/src/rules/mocha/index.ts +4 -2
- package/src/rules/svelte/disable.ts +4 -1
- package/src/rules/svelte/enable.ts +9 -7
- package/src/rules/svelte/enable_x.ts +7 -5
- package/src/rules/ts/disable.ts +4 -1
- package/src/rules/ts/disable_x.ts +4 -1
- package/src/rules/ts/enable.ts +27 -10
- package/src/rules/ts/enable_x.ts +7 -5
- package/src/rules/yml/enable.ts +20 -8
- package/src/rules/yml/enable_x.ts +11 -6
- package/src/rules/yml/index.ts +4 -1
- package/dist/rules/mocha/base.d.ts +0 -37
- package/dist/rules/mocha/base.d.ts.map +0 -1
- package/dist/rules/mocha/base.js +0 -7
- package/dist/rules/mocha/base.js.map +0 -1
- package/dist/rules/mochaJs/index.d.ts +0 -800
- package/dist/rules/mochaJs/index.d.ts.map +0 -1
- package/dist/rules/mochaJs/index.js +0 -7
- package/dist/rules/mochaJs/index.js.map +0 -1
- package/src/rules/mocha/base.ts +0 -7
- package/src/rules/mochaJs/index.ts +0 -7
package/src/rules/ts/enable_x.ts
CHANGED
package/src/rules/yml/enable.ts
CHANGED
@@ -1,15 +1,24 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import {
|
2
|
+
enable,
|
3
|
+
ERROR,
|
4
|
+
OFF,
|
5
|
+
Never,
|
6
|
+
Always,
|
7
|
+
Double,
|
8
|
+
} from "../../_strings";
|
6
9
|
|
7
10
|
export default [
|
8
11
|
enable,
|
9
12
|
{
|
10
13
|
// https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
|
11
|
-
"yml/block-mapping-colon-indicator-newline": [
|
12
|
-
|
14
|
+
"yml/block-mapping-colon-indicator-newline": [
|
15
|
+
ERROR,
|
16
|
+
Never,
|
17
|
+
],
|
18
|
+
"yml/block-mapping-question-indicator-newline": [
|
19
|
+
ERROR,
|
20
|
+
Never,
|
21
|
+
],
|
13
22
|
"yml/block-mapping": [
|
14
23
|
ERROR,
|
15
24
|
{
|
@@ -48,7 +57,10 @@ export default [
|
|
48
57
|
"yml/no-empty-sequence-entry": ERROR,
|
49
58
|
"yml/no-tab-indent": ERROR,
|
50
59
|
"yml/no-trailing-zeros": ERROR,
|
51
|
-
"yml/plain-scalar": [
|
60
|
+
"yml/plain-scalar": [
|
61
|
+
ERROR,
|
62
|
+
Always,
|
63
|
+
],
|
52
64
|
"yml/quotes": [
|
53
65
|
ERROR,
|
54
66
|
{
|
@@ -1,8 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import {
|
2
|
+
enable_x,
|
3
|
+
ERROR,
|
4
|
+
Never,
|
5
|
+
Always,
|
6
|
+
Strict,
|
7
|
+
} from "../../_strings";
|
6
8
|
|
7
9
|
export default [
|
8
10
|
enable_x,
|
@@ -63,6 +65,9 @@ export default [
|
|
63
65
|
maxBOF: 0,
|
64
66
|
},
|
65
67
|
],
|
66
|
-
"yml/spaced-comment": [
|
68
|
+
"yml/spaced-comment": [
|
69
|
+
ERROR,
|
70
|
+
Always,
|
71
|
+
],
|
67
72
|
},
|
68
73
|
] as const;
|
package/src/rules/yml/index.ts
CHANGED
@@ -1,37 +0,0 @@
|
|
1
|
-
declare const _default: (readonly ["disable", {
|
2
|
-
readonly "prefer-arrow-callback": "off";
|
3
|
-
}] | readonly ["enable", {
|
4
|
-
readonly "mocha/consistent-spacing-between-blocks": "off";
|
5
|
-
readonly "mocha/handle-done-callback": readonly ["error", {
|
6
|
-
readonly ignoreSkipped: false;
|
7
|
-
}];
|
8
|
-
readonly "mocha/max-top-level-suites": readonly ["error", {
|
9
|
-
readonly limit: 1;
|
10
|
-
}];
|
11
|
-
readonly "mocha/no-async-describe": "error";
|
12
|
-
readonly "mocha/no-empty-description": "error";
|
13
|
-
readonly "mocha/no-exclusive-tests": "error";
|
14
|
-
readonly "mocha/no-exports": "error";
|
15
|
-
readonly "mocha/no-global-tests": "error";
|
16
|
-
readonly "mocha/no-hooks-for-single-case": "off";
|
17
|
-
readonly "mocha/no-hooks": "off";
|
18
|
-
readonly "mocha/no-identical-title": "error";
|
19
|
-
readonly "mocha/no-mocha-arrows": "error";
|
20
|
-
readonly "mocha/no-nested-tests": "error";
|
21
|
-
readonly "mocha/no-pending-tests": "warn";
|
22
|
-
readonly "mocha/no-return-and-callback": "error";
|
23
|
-
readonly "mocha/no-return-from-async": "error";
|
24
|
-
readonly "mocha/no-setup-in-describe": "error";
|
25
|
-
readonly "mocha/no-sibling-hooks": "error";
|
26
|
-
readonly "mocha/no-skipped-tests": "error";
|
27
|
-
readonly "mocha/no-synchronous-tests": "off";
|
28
|
-
readonly "mocha/no-top-level-hooks": "error";
|
29
|
-
readonly "mocha/prefer-arrow-callback": readonly ["error", {
|
30
|
-
readonly allowNamedFunctions: false;
|
31
|
-
readonly allowUnboundThis: true;
|
32
|
-
}];
|
33
|
-
readonly "mocha/valid-suite-description": "off";
|
34
|
-
readonly "mocha/valid-test-description": "off";
|
35
|
-
}])[];
|
36
|
-
export default _default;
|
37
|
-
//# sourceMappingURL=base.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
package/dist/rules/mocha/base.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/rules/mocha/base.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe;IACb,OAAO;IACP,MAAM;CACP,CAAC"}
|