linted 21.0.0-rc.10 → 21.0.0-rc.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/dist/index.d.ts.map +1 -1
  2. package/dist/index.js +8 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/rules/index.d.ts +690 -0
  5. package/dist/rules/index.d.ts.map +1 -1
  6. package/dist/rules/js/enable.d.ts.map +1 -1
  7. package/dist/rules/js/enable.js +1 -2
  8. package/dist/rules/js/enable.js.map +1 -1
  9. package/dist/rules/js/index.d.ts.map +1 -1
  10. package/dist/rules/js/index.js +4 -1
  11. package/dist/rules/js/index.js.map +1 -1
  12. package/dist/rules/js/stylistic.d.ts.map +1 -1
  13. package/dist/rules/js/stylistic.js +1 -2
  14. package/dist/rules/js/stylistic.js.map +1 -1
  15. package/dist/rules/json/enable.d.ts +133 -2
  16. package/dist/rules/json/enable.d.ts.map +1 -1
  17. package/dist/rules/json/enable.js +170 -4
  18. package/dist/rules/json/enable.js.map +1 -1
  19. package/dist/rules/json/enable_x.d.ts +6 -0
  20. package/dist/rules/json/enable_x.d.ts.map +1 -0
  21. package/dist/rules/json/enable_x.js +9 -0
  22. package/dist/rules/json/enable_x.js.map +1 -0
  23. package/dist/rules/json/index.d.ts +345 -0
  24. package/dist/rules/json/index.d.ts.map +1 -1
  25. package/dist/rules/json/index.js +6 -2
  26. package/dist/rules/json/index.js.map +1 -1
  27. package/dist/rules/mocha/disable.d.ts.map +1 -1
  28. package/dist/rules/mocha/disable.js +1 -1
  29. package/dist/rules/mocha/disable.js.map +1 -1
  30. package/dist/rules/mocha/index.d.ts.map +1 -1
  31. package/dist/rules/mocha/index.js +4 -2
  32. package/dist/rules/mocha/index.js.map +1 -1
  33. package/dist/rules/svelte/disable.d.ts.map +1 -1
  34. package/dist/rules/svelte/disable.js +1 -1
  35. package/dist/rules/svelte/disable.js.map +1 -1
  36. package/dist/rules/svelte/enable.d.ts.map +1 -1
  37. package/dist/rules/svelte/enable.js +1 -2
  38. package/dist/rules/svelte/enable.js.map +1 -1
  39. package/dist/rules/svelte/enable_x.d.ts.map +1 -1
  40. package/dist/rules/svelte/enable_x.js +1 -2
  41. package/dist/rules/svelte/enable_x.js.map +1 -1
  42. package/dist/rules/ts/disable.d.ts.map +1 -1
  43. package/dist/rules/ts/disable.js +1 -1
  44. package/dist/rules/ts/disable.js.map +1 -1
  45. package/dist/rules/ts/disable_x.d.ts.map +1 -1
  46. package/dist/rules/ts/disable_x.js +1 -1
  47. package/dist/rules/ts/disable_x.js.map +1 -1
  48. package/dist/rules/ts/enable.d.ts.map +1 -1
  49. package/dist/rules/ts/enable.js +1 -2
  50. package/dist/rules/ts/enable.js.map +1 -1
  51. package/dist/rules/ts/enable_x.d.ts.map +1 -1
  52. package/dist/rules/ts/enable_x.js +1 -2
  53. package/dist/rules/ts/enable_x.js.map +1 -1
  54. package/dist/rules/yml/enable.d.ts.map +1 -1
  55. package/dist/rules/yml/enable.js +1 -2
  56. package/dist/rules/yml/enable.js.map +1 -1
  57. package/dist/rules/yml/enable_x.d.ts.map +1 -1
  58. package/dist/rules/yml/enable_x.js +1 -2
  59. package/dist/rules/yml/enable_x.js.map +1 -1
  60. package/dist/rules/yml/index.d.ts.map +1 -1
  61. package/dist/rules/yml/index.js +4 -1
  62. package/dist/rules/yml/index.js.map +1 -1
  63. package/package.json +1 -1
  64. package/src/index.ts +8 -2
  65. package/src/rules/html/enable.ts +1 -1
  66. package/src/rules/js/enable.ts +5 -6
  67. package/src/rules/js/index.ts +4 -1
  68. package/src/rules/js/stylistic.ts +5 -6
  69. package/src/rules/json/enable.ts +179 -6
  70. package/src/rules/json/enable_x.ts +14 -0
  71. package/src/rules/json/index.ts +6 -2
  72. package/src/rules/mocha/disable.ts +4 -1
  73. package/src/rules/mocha/index.ts +4 -2
  74. package/src/rules/svelte/disable.ts +4 -1
  75. package/src/rules/svelte/enable.ts +5 -6
  76. package/src/rules/svelte/enable_x.ts +7 -5
  77. package/src/rules/ts/disable.ts +4 -1
  78. package/src/rules/ts/disable_x.ts +4 -1
  79. package/src/rules/ts/enable.ts +7 -5
  80. package/src/rules/ts/enable_x.ts +7 -5
  81. package/src/rules/yml/enable.ts +8 -5
  82. package/src/rules/yml/enable_x.ts +7 -5
  83. package/src/rules/yml/index.ts +4 -1
  84. package/dist/rules/mocha/base.d.ts +0 -37
  85. package/dist/rules/mocha/base.d.ts.map +0 -1
  86. package/dist/rules/mocha/base.js +0 -7
  87. package/dist/rules/mocha/base.js.map +0 -1
  88. package/dist/rules/mochaJs/index.d.ts +0 -800
  89. package/dist/rules/mochaJs/index.d.ts.map +0 -1
  90. package/dist/rules/mochaJs/index.js +0 -7
  91. package/dist/rules/mochaJs/index.js.map +0 -1
  92. package/src/rules/mocha/base.ts +0 -7
  93. package/src/rules/mochaJs/index.ts +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA6DW"}
1
+ {"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBA6DW"}
@@ -1,5 +1,4 @@
1
- import { enable_x, level, state } from "../../_strings/index.js";
2
- const { ERROR } = level, { Never, Always, Strict } = state;
1
+ import { enable_x, ERROR, Never, Always, Strict, } from "../../_strings/index.js";
3
2
  export default [
4
3
  enable_x,
5
4
  {
@@ -1 +1 @@
1
- {"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAExD,MACA,EAAE,KAAK,EAAE,GAAG,KAAK,EACjB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;AAElC,eAAe;IACb,QAAQ;IACR;QAEE,gCAAgC,EAAE;YAChC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;YAChC,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;KACtC;CACO,CAAC"}
1
+ {"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,gCAAgC,EAAE;YAChC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;YAChC,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;KACtC;CACO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAAkC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -1,4 +1,7 @@
1
1
  import enable_x from "./enable_x.js";
2
2
  import enable from "./enable.js";
3
- export default [enable_x, enable];
3
+ export default [
4
+ enable_x,
5
+ enable,
6
+ ];
4
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe;IACb,QAAQ;IACR,MAAM;CACP,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "linted",
4
- "version": "21.0.0-rc.10",
4
+ "version": "21.0.0-rc.12",
5
5
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
6
  "keywords": [
7
7
  "eslint",
package/src/index.ts CHANGED
@@ -13,8 +13,14 @@ export default function (
13
13
  {
14
14
  plugins: imports.plugins,
15
15
  parsers: imports.parsers,
16
- files: { files, includes },
17
- rules: { rules, overrides },
16
+ files: {
17
+ files,
18
+ includes,
19
+ },
20
+ rules: {
21
+ rules,
22
+ overrides,
23
+ },
18
24
  },
19
25
  );
20
26
  }
@@ -1,4 +1,4 @@
1
- import type * as Rule from "@html-eslint/eslint-plugin/types/rules";
1
+ import type Rule from "@html-eslint/eslint-plugin/types/rules";
2
2
  import {
3
3
  enable,
4
4
  ERROR,
@@ -1,8 +1,7 @@
1
- import { enable, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- {
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ OFF,
6
5
  Never,
7
6
  Always,
8
7
  AsNeeded,
@@ -11,7 +10,7 @@ const
11
10
  All,
12
11
  Multi,
13
12
  Both,
14
- } = state;
13
+ } from "../../_strings";
15
14
 
16
15
  export default [
17
16
  enable,
@@ -1,4 +1,7 @@
1
1
  import stylistic from "./stylistic";
2
2
  import enable from "./enable";
3
3
 
4
- export default [stylistic, enable];
4
+ export default [
5
+ stylistic,
6
+ enable,
7
+ ];
@@ -1,8 +1,7 @@
1
- import { stylistic, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- {
1
+ import {
2
+ stylistic,
3
+ ERROR,
4
+ OFF,
6
5
  Never,
7
6
  Always,
8
7
  AlwaysMultiline,
@@ -18,7 +17,7 @@ const
18
17
  Beside,
19
18
  Inside,
20
19
  Double,
21
- } = state;
20
+ } from "../../_strings";
22
21
 
23
22
  export default [
24
23
  stylistic,
@@ -1,12 +1,185 @@
1
- import { enable, level } from "../../_strings";
2
-
3
- const { ERROR, OFF } = level;
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ AlwaysMultiline,
5
+ Always,
6
+ Last,
7
+ Never,
8
+ Strict,
9
+ } from "../../_strings";
4
10
 
5
11
  export default [
6
12
  enable,
7
13
  {
8
- // https://github.com/eslint/json?tab=readme-ov-file#rules
9
- "json/no-duplicate-keys": ERROR,
10
- "json/no-empty-keys": OFF,
14
+ // https://eslint.org/docs/latest/rules/#deprecated
15
+ "array-bracket-newline": [
16
+ ERROR,
17
+ {
18
+ multiline: true,
19
+ minItems: null,
20
+ },
21
+ ],
22
+ "array-bracket-spacing": [
23
+ ERROR,
24
+ Never,
25
+ {
26
+ singleValue: false,
27
+ objectsInArrays: false,
28
+ arraysInArrays: false,
29
+ },
30
+ ],
31
+ "array-element-newline": [
32
+ ERROR,
33
+ {
34
+ ArrayExpression: {
35
+ consistent: true,
36
+ multiline: true,
37
+ minItems: 4,
38
+ },
39
+ ArrayPattern: {
40
+ consistent: true,
41
+ multiline: true,
42
+ minItems: 4,
43
+ },
44
+ },
45
+ ],
46
+ "brace-style": [
47
+ ERROR,
48
+ "stroustrup",
49
+ {
50
+ allowSingleLine: true,
51
+ },
52
+ ],
53
+ "comma-dangle": [ERROR, AlwaysMultiline],
54
+ "comma-spacing": [
55
+ ERROR,
56
+ {
57
+ before: false,
58
+ after: true,
59
+ },
60
+ ],
61
+ "comma-style": [
62
+ ERROR,
63
+ Last,
64
+ {
65
+ exceptions: {
66
+ ArrayExpression: false,
67
+ ArrayPattern: false,
68
+ ArrowFunctionExpression: false,
69
+ CallExpression: false,
70
+ FunctionDeclaration: false,
71
+ FunctionExpression: false,
72
+ ImportDeclaration: false,
73
+ ObjectExpression: false,
74
+ ObjectPattern: false,
75
+ VariableDeclaration: false,
76
+ NewExpression: false,
77
+ },
78
+ },
79
+ ],
80
+ "eol-last": [ERROR, Always],
81
+ "key-spacing": [
82
+ ERROR,
83
+ {
84
+ beforeColon: false,
85
+ afterColon: true,
86
+ mode: Strict,
87
+ },
88
+ ],
89
+ indent: [
90
+ ERROR,
91
+ 2,
92
+ {
93
+ ignoredNodes: [],
94
+ SwitchCase: 1,
95
+ VariableDeclarator: { "var": 0, let: 0, "const": 0 },
96
+ outerIIFEBody: 0,
97
+ MemberExpression: 1,
98
+ FunctionDeclaration: { parameters: 1, body: 1 },
99
+ FunctionExpression: { parameters: 1, body: 1 },
100
+ StaticBlock: { body: 1 },
101
+ CallExpression: { arguments: 1 },
102
+ ArrayExpression: 1,
103
+ ObjectExpression: 1,
104
+ ImportDeclaration: 1,
105
+ flatTernaryExpressions: false,
106
+ offsetTernaryExpressions: true,
107
+ ignoreComments: false,
108
+ },
109
+ ],
110
+ "no-mixed-spaces-and-tabs": ERROR,
111
+ "no-multi-spaces": [
112
+ ERROR,
113
+ {
114
+ ignoreEOLComments: false,
115
+ exceptions: {
116
+ Property: false,
117
+ ImportAttributes: false,
118
+ },
119
+ includeTabs: true,
120
+ },
121
+ ],
122
+ "no-multiple-empty-lines": [
123
+ ERROR,
124
+ {
125
+ max: 1,
126
+ maxEOF: 1,
127
+ maxBOF: 0,
128
+ },
129
+ ],
130
+ "no-tabs": [
131
+ ERROR,
132
+ {
133
+ allowIndentationTabs: false,
134
+ },
135
+ ],
136
+ "no-trailing-spaces": [
137
+ ERROR,
138
+ {
139
+ skipBlankLines: false,
140
+ ignoreComments: false,
141
+ },
142
+ ],
143
+ "no-whitespace-before-property": ERROR,
144
+ "object-curly-newline": [
145
+ ERROR,
146
+ {
147
+ ObjectExpression: {
148
+ consistent: true,
149
+ multiline: true,
150
+ minProperties: 4,
151
+ },
152
+ ObjectPattern: {
153
+ consistent: true,
154
+ multiline: true,
155
+ minProperties: 4,
156
+ },
157
+ ImportDeclaration: {
158
+ consistent: true,
159
+ multiline: true,
160
+ minProperties: 4,
161
+ },
162
+ ExportDeclaration: {
163
+ consistent: true,
164
+ multiline: true,
165
+ minProperties: 4,
166
+ },
167
+ },
168
+ ],
169
+ "object-curly-spacing": [
170
+ ERROR,
171
+ Always,
172
+ {
173
+ arraysInObjects: true,
174
+ objectsInObjects: true,
175
+ },
176
+ ],
177
+ "object-property-newline": [
178
+ ERROR,
179
+ {
180
+ allowAllPropertiesOnSameLine: true,
181
+ },
182
+ ],
183
+ "spaced-comment": [ERROR, Always],
11
184
  },
12
185
  ] as const;
@@ -0,0 +1,14 @@
1
+ import {
2
+ enable_x,
3
+ ERROR,
4
+ OFF,
5
+ } from "../../_strings";
6
+
7
+ export default [
8
+ enable_x,
9
+ {
10
+ // https://github.com/eslint/json?tab=readme-ov-file#rules
11
+ "json/no-duplicate-keys": ERROR,
12
+ "json/no-empty-keys": OFF,
13
+ },
14
+ ] as const;
@@ -1,3 +1,7 @@
1
- import enable from "./enable";
1
+ import enable from "../js/enable";
2
+ import enable_x from "./enable_x";
2
3
 
3
- export default [enable];
4
+ export default [
5
+ enable,
6
+ enable_x,
7
+ ];
@@ -1,4 +1,7 @@
1
- import { disable, OFF } from "../../_strings";
1
+ import {
2
+ disable,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable,
@@ -1,7 +1,9 @@
1
1
  import ts from "../ts";
2
- import base from "./base";
2
+ import disable from "./disable";
3
+ import enable from "./enable";
3
4
 
4
5
  export default [
5
6
  ...ts,
6
- ...base,
7
+ disable,
8
+ enable,
7
9
  ];
@@ -1,4 +1,7 @@
1
- import { disable, OFF } from "../../_strings";
1
+ import {
2
+ disable,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable,
@@ -1,14 +1,13 @@
1
- import { enable, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- {
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ OFF,
6
5
  Ignore,
7
6
  Never,
8
7
  Always,
9
8
  Below,
10
9
  Double,
11
- } = state;
10
+ } from "../../_strings";
12
11
 
13
12
  export default [
14
13
  enable,
@@ -1,8 +1,10 @@
1
- import { enable_x, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- { Allow, Both } = state;
1
+ import {
2
+ enable_x,
3
+ ERROR,
4
+ OFF,
5
+ Allow,
6
+ Both,
7
+ } from "../../_strings";
6
8
 
7
9
  export default [
8
10
  enable_x,
@@ -1,4 +1,7 @@
1
- import { disable, OFF } from "../../_strings";
1
+ import {
2
+ disable,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable,
@@ -1,4 +1,7 @@
1
- import { disable_x, OFF } from "../../_strings";
1
+ import {
2
+ disable_x,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable_x,
@@ -1,8 +1,10 @@
1
- import { enable, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- { Never, Explicit } = state;
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ OFF,
5
+ Never,
6
+ Explicit,
7
+ } from "../../_strings";
6
8
 
7
9
  export default [
8
10
  enable,
@@ -1,8 +1,10 @@
1
- import { enable_x, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- { Always, All } = state;
1
+ import {
2
+ enable_x,
3
+ ERROR,
4
+ OFF,
5
+ Always,
6
+ All,
7
+ } from "../../_strings";
6
8
 
7
9
  export default [
8
10
  enable_x,
@@ -1,8 +1,11 @@
1
- import { enable, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- { Never, Always, Double } = state;
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,
@@ -1,8 +1,10 @@
1
- import { enable_x, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR } = level,
5
- { Never, Always, Strict } = state;
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,
@@ -1,4 +1,7 @@
1
1
  import enable_x from "./enable_x";
2
2
  import enable from "./enable";
3
3
 
4
- export default [enable_x, enable];
4
+ export default [
5
+ enable_x,
6
+ enable,
7
+ ];
@@ -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"}
@@ -1,7 +0,0 @@
1
- import disable from "./disable.js";
2
- import enable from "./enable.js";
3
- export default [
4
- disable,
5
- enable,
6
- ];
7
- //# sourceMappingURL=base.js.map
@@ -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"}