@egy186/eslint-config 2.3.0 → 2.4.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/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/browser.d.ts +6 -2
- package/dist/commonjs.d.ts +2 -2
- package/dist/vitest.d.ts +34 -18
- package/package.json +18 -18
package/dist/base.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import nPlugin from 'eslint-plugin-n';
|
|
|
3
3
|
declare const config: {
|
|
4
4
|
readonly files: ["**/*.{js,jsx,mjs}", "**/*.{ts,tsx,mts}"];
|
|
5
5
|
readonly languageOptions: {
|
|
6
|
-
readonly ecmaVersion:
|
|
6
|
+
readonly ecmaVersion: 2024;
|
|
7
7
|
readonly globals: {
|
|
8
8
|
readonly __dirname: false;
|
|
9
9
|
readonly __filename: false;
|
|
@@ -149,7 +149,7 @@ declare const config: {
|
|
|
149
149
|
readonly '@stylistic': ESLint.Plugin;
|
|
150
150
|
readonly import: ESLint.Plugin;
|
|
151
151
|
readonly jsdoc: ESLint.Plugin & {
|
|
152
|
-
configs: Record
|
|
152
|
+
configs: Record<`flat/${import("eslint-plugin-jsdoc").ConfigGroups}${import("eslint-plugin-jsdoc").ConfigVariants}${import("eslint-plugin-jsdoc").ErrorLevelVariants}`, import("eslint").Linter.Config>;
|
|
153
153
|
};
|
|
154
154
|
readonly n: ESLint.Plugin & {
|
|
155
155
|
configs: nPlugin.Configs;
|
package/dist/base.js
CHANGED
package/dist/browser.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ declare const config: {
|
|
|
133
133
|
readonly CSSKeywordValue: false;
|
|
134
134
|
readonly CSSLayerBlockRule: false;
|
|
135
135
|
readonly CSSLayerStatementRule: false;
|
|
136
|
+
readonly CSSMarginRule: false;
|
|
136
137
|
readonly CSSMathClamp: false;
|
|
137
138
|
readonly CSSMathInvert: false;
|
|
138
139
|
readonly CSSMathMax: false;
|
|
@@ -1098,12 +1099,15 @@ declare const config: {
|
|
|
1098
1099
|
readonly XRDepthInformation: false;
|
|
1099
1100
|
readonly XRDOMOverlayState: false;
|
|
1100
1101
|
readonly XRFrame: false;
|
|
1102
|
+
readonly XRHand: false;
|
|
1101
1103
|
readonly XRHitTestResult: false;
|
|
1102
1104
|
readonly XRHitTestSource: false;
|
|
1103
1105
|
readonly XRInputSource: false;
|
|
1104
1106
|
readonly XRInputSourceArray: false;
|
|
1105
1107
|
readonly XRInputSourceEvent: false;
|
|
1106
1108
|
readonly XRInputSourcesChangeEvent: false;
|
|
1109
|
+
readonly XRJointPose: false;
|
|
1110
|
+
readonly XRJointSpace: false;
|
|
1107
1111
|
readonly XRLayer: false;
|
|
1108
1112
|
readonly XRLightEstimate: false;
|
|
1109
1113
|
readonly XRLightProbe: false;
|
|
@@ -1187,7 +1191,7 @@ declare const config: {
|
|
|
1187
1191
|
readonly WeakRef: false;
|
|
1188
1192
|
readonly WeakSet: false;
|
|
1189
1193
|
};
|
|
1190
|
-
readonly ecmaVersion:
|
|
1194
|
+
readonly ecmaVersion: 2024;
|
|
1191
1195
|
readonly sourceType: "module";
|
|
1192
1196
|
};
|
|
1193
1197
|
readonly rules: {
|
|
@@ -1706,7 +1710,7 @@ declare const config: {
|
|
|
1706
1710
|
readonly '@stylistic': import("eslint").ESLint.Plugin;
|
|
1707
1711
|
readonly import: import("eslint").ESLint.Plugin;
|
|
1708
1712
|
readonly jsdoc: import("eslint").ESLint.Plugin & {
|
|
1709
|
-
configs: Record
|
|
1713
|
+
configs: Record<`flat/${import("eslint-plugin-jsdoc").ConfigGroups}${import("eslint-plugin-jsdoc").ConfigVariants}${import("eslint-plugin-jsdoc").ErrorLevelVariants}`, import("eslint").Linter.Config>;
|
|
1710
1714
|
};
|
|
1711
1715
|
readonly n: import("eslint").ESLint.Plugin & {
|
|
1712
1716
|
configs: import("eslint-plugin-n").Configs;
|
package/dist/commonjs.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const config: {
|
|
|
3
3
|
readonly files: ["**/*.{cjs,cts}"];
|
|
4
4
|
readonly languageOptions: {
|
|
5
5
|
readonly sourceType: "commonjs";
|
|
6
|
-
readonly ecmaVersion:
|
|
6
|
+
readonly ecmaVersion: 2024;
|
|
7
7
|
readonly globals: {
|
|
8
8
|
readonly __dirname: false;
|
|
9
9
|
readonly __filename: false;
|
|
@@ -656,7 +656,7 @@ declare const config: {
|
|
|
656
656
|
readonly '@stylistic': import("eslint").ESLint.Plugin;
|
|
657
657
|
readonly import: import("eslint").ESLint.Plugin;
|
|
658
658
|
readonly jsdoc: import("eslint").ESLint.Plugin & {
|
|
659
|
-
configs: Record
|
|
659
|
+
configs: Record<`flat/${import("eslint-plugin-jsdoc").ConfigGroups}${import("eslint-plugin-jsdoc").ConfigVariants}${import("eslint-plugin-jsdoc").ErrorLevelVariants}`, import("eslint").Linter.Config>;
|
|
660
660
|
};
|
|
661
661
|
readonly n: import("eslint").ESLint.Plugin & {
|
|
662
662
|
configs: import("eslint-plugin-n").Configs;
|
package/dist/vitest.d.ts
CHANGED
|
@@ -70,6 +70,28 @@ declare const config: {
|
|
|
70
70
|
"padding-around-test-blocks": import("eslint").Rule.RuleModule;
|
|
71
71
|
"valid-expect-in-promise": import("eslint").Rule.RuleModule;
|
|
72
72
|
};
|
|
73
|
+
environments: {
|
|
74
|
+
env: {
|
|
75
|
+
globals: {
|
|
76
|
+
suite: true;
|
|
77
|
+
test: true;
|
|
78
|
+
describe: true;
|
|
79
|
+
it: true;
|
|
80
|
+
expectTypeOf: true;
|
|
81
|
+
assertType: true;
|
|
82
|
+
expect: true;
|
|
83
|
+
assert: true;
|
|
84
|
+
vitest: true;
|
|
85
|
+
vi: true;
|
|
86
|
+
beforeAll: true;
|
|
87
|
+
afterAll: true;
|
|
88
|
+
beforeEach: true;
|
|
89
|
+
afterEach: true;
|
|
90
|
+
onTestFailed: true;
|
|
91
|
+
onTestFinished: true;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
73
95
|
configs: {
|
|
74
96
|
"legacy-recommended": {
|
|
75
97
|
plugins: string[];
|
|
@@ -153,6 +175,14 @@ declare const config: {
|
|
|
153
175
|
readonly "vitest/padding-around-expect-groups": "warn";
|
|
154
176
|
readonly "vitest/padding-around-test-blocks": "warn";
|
|
155
177
|
readonly "vitest/valid-expect-in-promise": "warn";
|
|
178
|
+
readonly "vitest/expect-expect": "warn";
|
|
179
|
+
readonly "vitest/no-identical-title": "warn";
|
|
180
|
+
readonly "vitest/no-commented-out-tests": "warn";
|
|
181
|
+
readonly "vitest/valid-title": "warn";
|
|
182
|
+
readonly "vitest/valid-expect": "warn";
|
|
183
|
+
readonly "vitest/valid-describe-callback": "warn";
|
|
184
|
+
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "warn";
|
|
185
|
+
readonly "vitest/no-import-node-test": "warn";
|
|
156
186
|
};
|
|
157
187
|
};
|
|
158
188
|
env: {
|
|
@@ -162,6 +192,8 @@ declare const config: {
|
|
|
162
192
|
test: "writable";
|
|
163
193
|
describe: "writable";
|
|
164
194
|
it: "writable";
|
|
195
|
+
expectTypeOf: "writable";
|
|
196
|
+
assertType: "writable";
|
|
165
197
|
expect: "writable";
|
|
166
198
|
assert: "writable";
|
|
167
199
|
vitest: "writable";
|
|
@@ -170,28 +202,12 @@ declare const config: {
|
|
|
170
202
|
afterAll: "writable";
|
|
171
203
|
beforeEach: "writable";
|
|
172
204
|
afterEach: "writable";
|
|
205
|
+
onTestFailed: "writable";
|
|
206
|
+
onTestFinished: "writable";
|
|
173
207
|
};
|
|
174
208
|
};
|
|
175
209
|
};
|
|
176
210
|
};
|
|
177
|
-
environments: {
|
|
178
|
-
env: {
|
|
179
|
-
globals: {
|
|
180
|
-
suite: true;
|
|
181
|
-
test: true;
|
|
182
|
-
describe: true;
|
|
183
|
-
it: true;
|
|
184
|
-
expect: true;
|
|
185
|
-
assert: true;
|
|
186
|
-
vitest: true;
|
|
187
|
-
vi: true;
|
|
188
|
-
beforeAll: true;
|
|
189
|
-
afterAll: true;
|
|
190
|
-
beforeEach: true;
|
|
191
|
-
afterEach: true;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
211
|
};
|
|
196
212
|
};
|
|
197
213
|
readonly rules: {
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@stylistic/eslint-plugin": "~2.
|
|
10
|
+
"@stylistic/eslint-plugin": "~2.12.1",
|
|
11
11
|
"eslint-plugin-import": "~2.31.0",
|
|
12
|
-
"eslint-plugin-jsdoc": "~50.
|
|
13
|
-
"eslint-plugin-n": "~17.
|
|
14
|
-
"globals": "^15.
|
|
12
|
+
"eslint-plugin-jsdoc": "~50.6.1",
|
|
13
|
+
"eslint-plugin-n": "~17.15.1",
|
|
14
|
+
"globals": "^15.14.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@eslint-stylistic/metadata": "~2.
|
|
18
|
-
"@eslint/js": "~9.
|
|
19
|
-
"@types/node": "^22.
|
|
20
|
-
"@vitest/eslint-plugin": "~1.1.
|
|
21
|
-
"eslint": "~9.
|
|
22
|
-
"eslint-import-resolver-typescript": "~3.
|
|
23
|
-
"eslint-plugin-jest": "~28.
|
|
24
|
-
"eslint-plugin-react": "~7.37.
|
|
25
|
-
"eslint-plugin-react-hooks": "~5.
|
|
26
|
-
"husky": "^9.1.
|
|
27
|
-
"jiti": "^2.4.
|
|
28
|
-
"typescript": "~5.
|
|
29
|
-
"typescript-eslint": "~8.
|
|
17
|
+
"@eslint-stylistic/metadata": "~2.12.1",
|
|
18
|
+
"@eslint/js": "~9.17.0",
|
|
19
|
+
"@types/node": "^22.10.5",
|
|
20
|
+
"@vitest/eslint-plugin": "~1.1.24",
|
|
21
|
+
"eslint": "~9.17.0",
|
|
22
|
+
"eslint-import-resolver-typescript": "~3.7.0",
|
|
23
|
+
"eslint-plugin-jest": "~28.10.0",
|
|
24
|
+
"eslint-plugin-react": "~7.37.3",
|
|
25
|
+
"eslint-plugin-react-hooks": "~5.1.0",
|
|
26
|
+
"husky": "^9.1.7",
|
|
27
|
+
"jiti": "^2.4.2",
|
|
28
|
+
"typescript": "~5.7.2",
|
|
29
|
+
"typescript-eslint": "~8.19.1"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=18.18.0"
|