@egy186/eslint-config 3.0.0 → 3.1.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
@@ -212,7 +212,7 @@ declare const config: {
212
212
  readonly '@stylistic/jsx-equals-spacing': "error";
213
213
  readonly '@stylistic/jsx-first-prop-new-line': "error";
214
214
  readonly '@stylistic/jsx-function-call-newline': "error";
215
- readonly '@stylistic/jsx-indent': ["error", 2];
215
+ readonly '@stylistic/jsx-indent': "off";
216
216
  readonly '@stylistic/jsx-indent-props': ["error", 2];
217
217
  readonly '@stylistic/jsx-max-props-per-line': "error";
218
218
  readonly '@stylistic/jsx-newline': "off";
@@ -327,6 +327,9 @@ declare const config: {
327
327
  readonly 'n/no-restricted-import': "off";
328
328
  readonly 'n/no-restricted-require': "off";
329
329
  readonly 'n/no-sync': "error";
330
+ readonly 'n/no-top-level-await': ["error", {
331
+ readonly ignoreBin: true;
332
+ }];
330
333
  readonly 'n/no-unpublished-bin': "error";
331
334
  readonly 'n/no-unpublished-import': ["error", {
332
335
  readonly ignoreTypeImport: true;
package/dist/browser.d.ts CHANGED
@@ -1267,7 +1267,7 @@ declare const config: {
1267
1267
  readonly '@stylistic/jsx-equals-spacing': "error";
1268
1268
  readonly '@stylistic/jsx-first-prop-new-line': "error";
1269
1269
  readonly '@stylistic/jsx-function-call-newline': "error";
1270
- readonly '@stylistic/jsx-indent': ["error", 2];
1270
+ readonly '@stylistic/jsx-indent': "off";
1271
1271
  readonly '@stylistic/jsx-indent-props': ["error", 2];
1272
1272
  readonly '@stylistic/jsx-max-props-per-line': "error";
1273
1273
  readonly '@stylistic/jsx-newline': "off";
@@ -1382,6 +1382,9 @@ declare const config: {
1382
1382
  readonly 'n/no-restricted-import': "off";
1383
1383
  readonly 'n/no-restricted-require': "off";
1384
1384
  readonly 'n/no-sync': "error";
1385
+ readonly 'n/no-top-level-await': ["error", {
1386
+ readonly ignoreBin: true;
1387
+ }];
1385
1388
  readonly 'n/no-unpublished-bin': "error";
1386
1389
  readonly 'n/no-unpublished-import': ["error", {
1387
1390
  readonly ignoreTypeImport: true;
@@ -194,7 +194,7 @@ declare const config: {
194
194
  readonly '@stylistic/jsx-equals-spacing': "error";
195
195
  readonly '@stylistic/jsx-first-prop-new-line': "error";
196
196
  readonly '@stylistic/jsx-function-call-newline': "error";
197
- readonly '@stylistic/jsx-indent': ["error", 2];
197
+ readonly '@stylistic/jsx-indent': "off";
198
198
  readonly '@stylistic/jsx-indent-props': ["error", 2];
199
199
  readonly '@stylistic/jsx-max-props-per-line': "error";
200
200
  readonly '@stylistic/jsx-newline': "off";
@@ -309,6 +309,9 @@ declare const config: {
309
309
  readonly 'n/no-restricted-import': "off";
310
310
  readonly 'n/no-restricted-require': "off";
311
311
  readonly 'n/no-sync': "error";
312
+ readonly 'n/no-top-level-await': ["error", {
313
+ readonly ignoreBin: true;
314
+ }];
312
315
  readonly 'n/no-unpublished-bin': "error";
313
316
  readonly 'n/no-unpublished-import': ["error", {
314
317
  readonly ignoreTypeImport: true;
package/dist/jest.d.ts CHANGED
@@ -83,6 +83,7 @@ declare const config: {
83
83
  readonly 'jest/prefer-called-with': "error";
84
84
  readonly 'jest/prefer-comparison-matcher': "error";
85
85
  readonly 'jest/prefer-each': "error";
86
+ readonly 'jest/prefer-ending-with-an-expect': "error";
86
87
  readonly 'jest/prefer-equality-matcher': "error";
87
88
  readonly 'jest/prefer-expect-assertions': ["warn", {
88
89
  readonly onlyFunctionsWithAsyncKeyword: true;
package/dist/jest.js CHANGED
@@ -47,6 +47,7 @@ const config = {
47
47
  'jest/prefer-called-with': 'error',
48
48
  'jest/prefer-comparison-matcher': 'error',
49
49
  'jest/prefer-each': 'error',
50
+ 'jest/prefer-ending-with-an-expect': 'error',
50
51
  'jest/prefer-equality-matcher': 'error',
51
52
  'jest/prefer-expect-assertions': ['warn', { onlyFunctionsWithAsyncKeyword: true }],
52
53
  'jest/prefer-expect-resolves': 'error',
@@ -22,6 +22,9 @@ declare const rules: {
22
22
  readonly 'n/no-restricted-import': "off";
23
23
  readonly 'n/no-restricted-require': "off";
24
24
  readonly 'n/no-sync': "error";
25
+ readonly 'n/no-top-level-await': ["error", {
26
+ readonly ignoreBin: true;
27
+ }];
25
28
  readonly 'n/no-unpublished-bin': "error";
26
29
  readonly 'n/no-unpublished-import': ["error", {
27
30
  readonly ignoreTypeImport: true;
@@ -20,6 +20,7 @@ const rules = {
20
20
  'n/no-restricted-import': 'off',
21
21
  'n/no-restricted-require': 'off',
22
22
  'n/no-sync': 'error',
23
+ 'n/no-top-level-await': ['error', { ignoreBin: true }],
23
24
  'n/no-unpublished-bin': 'error',
24
25
  'n/no-unpublished-import': ['error', { ignoreTypeImport: true }],
25
26
  'n/no-unpublished-require': 'error',
@@ -47,7 +47,7 @@ declare const rules: {
47
47
  readonly '@stylistic/jsx-equals-spacing': "error";
48
48
  readonly '@stylistic/jsx-first-prop-new-line': "error";
49
49
  readonly '@stylistic/jsx-function-call-newline': "error";
50
- readonly '@stylistic/jsx-indent': ["error", 2];
50
+ readonly '@stylistic/jsx-indent': "off";
51
51
  readonly '@stylistic/jsx-indent-props': ["error", 2];
52
52
  readonly '@stylistic/jsx-max-props-per-line': "error";
53
53
  readonly '@stylistic/jsx-newline': "off";
@@ -69,7 +69,7 @@ const rules = {
69
69
  '@stylistic/jsx-equals-spacing': 'error',
70
70
  '@stylistic/jsx-first-prop-new-line': 'error',
71
71
  '@stylistic/jsx-function-call-newline': 'error',
72
- '@stylistic/jsx-indent': ['error', 2],
72
+ '@stylistic/jsx-indent': 'off',
73
73
  '@stylistic/jsx-indent-props': ['error', 2],
74
74
  '@stylistic/jsx-max-props-per-line': 'error',
75
75
  '@stylistic/jsx-newline': 'off',
@@ -173,7 +173,6 @@ declare const config: {
173
173
  readonly '@typescript-eslint/strict-boolean-expressions': "error";
174
174
  readonly '@typescript-eslint/switch-exhaustiveness-check': "error";
175
175
  readonly '@typescript-eslint/triple-slash-reference': "error";
176
- readonly '@typescript-eslint/typedef': "error";
177
176
  readonly '@typescript-eslint/unbound-method': "error";
178
177
  readonly '@typescript-eslint/unified-signatures': ["error", {
179
178
  readonly ignoreDifferentlyNamedParameters: true;
@@ -180,7 +180,6 @@ const config = {
180
180
  '@typescript-eslint/strict-boolean-expressions': 'error',
181
181
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
182
182
  '@typescript-eslint/triple-slash-reference': 'error',
183
- '@typescript-eslint/typedef': 'error',
184
183
  '@typescript-eslint/unbound-method': 'error',
185
184
  '@typescript-eslint/unified-signatures': ['error', { ignoreDifferentlyNamedParameters: true }],
186
185
  '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "3.0.0",
4
+ "version": "3.1.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": "~4.2.0",
10
+ "@stylistic/eslint-plugin": "~4.4.1",
11
11
  "eslint-plugin-import": "~2.31.0",
12
- "eslint-plugin-jsdoc": "~50.6.17",
13
- "eslint-plugin-n": "~17.18.0",
14
- "globals": "^16.1.0"
12
+ "eslint-plugin-jsdoc": "~50.7.1",
13
+ "eslint-plugin-n": "~17.19.0",
14
+ "globals": "^16.2.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@eslint-stylistic/metadata": "~4.2.0",
18
- "@eslint/js": "~9.27.0",
19
- "@types/node": "^22.15.18",
20
- "@vitest/eslint-plugin": "~1.2.0",
21
- "eslint": "~9.27.0",
22
- "eslint-import-resolver-typescript": "~4.3.4",
23
- "eslint-plugin-jest": "~28.11.0",
17
+ "@eslint-stylistic/metadata": "~4.4.1",
18
+ "@eslint/js": "~9.28.0",
19
+ "@types/node": "^22.15.30",
20
+ "@vitest/eslint-plugin": "~1.2.1",
21
+ "eslint": "~9.28.0",
22
+ "eslint-import-resolver-typescript": "~4.4.3",
23
+ "eslint-plugin-jest": "~28.13.0",
24
24
  "eslint-plugin-react": "~7.37.5",
25
25
  "eslint-plugin-react-hooks": "~5.2.0",
26
26
  "husky": "^9.1.7",
27
27
  "jiti": "^2.4.2",
28
28
  "typescript": "~5.8.3",
29
- "typescript-eslint": "~8.32.1"
29
+ "typescript-eslint": "~8.33.1"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=20.19.2"
@@ -67,7 +67,7 @@
67
67
  "@vitest/eslint-plugin": "^1.1.42",
68
68
  "eslint": "^9.27.0",
69
69
  "eslint-import-resolver-typescript": "^4.2.2",
70
- "eslint-plugin-jest": "^28.8.3",
70
+ "eslint-plugin-jest": "^28.13.0",
71
71
  "eslint-plugin-react": "^7.36.1",
72
72
  "eslint-plugin-react-hooks": "^5.0.0",
73
73
  "typescript": "^5.0.4",