@egy186/eslint-config 2.3.0 → 2.5.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 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: 2023;
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<"recommended" | "recommended-error" | "recommended-typescript" | "recommended-typescript-error" | "recommended-typescript-flavor" | "recommended-typescript-flavor-error" | "flat/recommended" | "flat/recommended-error" | "flat/recommended-typescript" | "flat/recommended-typescript-error" | "flat/recommended-typescript-flavor" | "flat/recommended-typescript-flavor-error", import("eslint").Linter.FlatConfig>;
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
@@ -13,7 +13,7 @@ import stylisticRules from './rules/stylistic-rules.js';
13
13
  const config = {
14
14
  files: ['**/*.{js,jsx,mjs}', '**/*.{ts,tsx,mts}'],
15
15
  languageOptions: {
16
- ecmaVersion: 2023,
16
+ ecmaVersion: 2024,
17
17
  globals: {
18
18
  ...globals.es2023,
19
19
  ...globals.node
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: 2023;
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<"recommended" | "recommended-error" | "recommended-typescript" | "recommended-typescript-error" | "recommended-typescript-flavor" | "recommended-typescript-flavor-error" | "flat/recommended" | "flat/recommended-error" | "flat/recommended-typescript" | "flat/recommended-typescript-error" | "flat/recommended-typescript-flavor" | "flat/recommended-typescript-flavor-error", import("eslint").Linter.FlatConfig>;
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;
@@ -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: 2023;
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<"recommended" | "recommended-error" | "recommended-typescript" | "recommended-typescript-error" | "recommended-typescript-flavor" | "recommended-typescript-flavor-error" | "flat/recommended" | "flat/recommended-error" | "flat/recommended-typescript" | "flat/recommended-typescript-error" | "flat/recommended-typescript-flavor" | "flat/recommended-typescript-flavor-error", import("eslint").Linter.FlatConfig>;
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;
@@ -94,6 +94,7 @@ declare const config: {
94
94
  readonly '@typescript-eslint/no-meaningless-void-operator': "error";
95
95
  readonly '@typescript-eslint/no-misused-new': "error";
96
96
  readonly '@typescript-eslint/no-misused-promises': "error";
97
+ readonly '@typescript-eslint/no-misused-spread': "error";
97
98
  readonly '@typescript-eslint/no-mixed-enums': "warn";
98
99
  readonly '@typescript-eslint/no-namespace': "error";
99
100
  readonly '@typescript-eslint/no-non-null-asserted-nullish-coalescing': "error";
@@ -97,6 +97,7 @@ const config = {
97
97
  '@typescript-eslint/no-meaningless-void-operator': 'error',
98
98
  '@typescript-eslint/no-misused-new': 'error',
99
99
  '@typescript-eslint/no-misused-promises': 'error',
100
+ '@typescript-eslint/no-misused-spread': 'error',
100
101
  '@typescript-eslint/no-mixed-enums': 'warn',
101
102
  '@typescript-eslint/no-namespace': 'error',
102
103
  '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
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.3.0",
4
+ "version": "2.5.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.11.0",
10
+ "@stylistic/eslint-plugin": "~2.13.0",
11
11
  "eslint-plugin-import": "~2.31.0",
12
- "eslint-plugin-jsdoc": "~50.5.0",
13
- "eslint-plugin-n": "~17.13.2",
14
- "globals": "^15.12.0"
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.11.0",
18
- "@eslint/js": "~9.15.0",
19
- "@types/node": "^22.9.0",
20
- "@vitest/eslint-plugin": "~1.1.10",
21
- "eslint": "~9.15.0",
22
- "eslint-import-resolver-typescript": "~3.6.3",
23
- "eslint-plugin-jest": "~28.9.0",
24
- "eslint-plugin-react": "~7.37.2",
25
- "eslint-plugin-react-hooks": "~5.0.0",
26
- "husky": "^9.1.6",
27
- "jiti": "^2.4.0",
28
- "typescript": "~5.6.3",
29
- "typescript-eslint": "~8.15.0"
17
+ "@eslint-stylistic/metadata": "~2.13.0",
18
+ "@eslint/js": "~9.18.0",
19
+ "@types/node": "^22.10.6",
20
+ "@vitest/eslint-plugin": "~1.1.24",
21
+ "eslint": "~9.18.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.3",
29
+ "typescript-eslint": "~8.20.0"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=18.18.0"
@@ -71,7 +71,7 @@
71
71
  "eslint-plugin-react": "^7.36.1",
72
72
  "eslint-plugin-react-hooks": "^5.0.0",
73
73
  "typescript": "^5.0.4",
74
- "typescript-eslint": "^8.15.0"
74
+ "typescript-eslint": "^8.20.0"
75
75
  },
76
76
  "peerDependenciesMeta": {
77
77
  "@vitest/eslint-plugin": {