@egy186/eslint-config 2.1.0 → 2.2.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
@@ -1,4 +1,5 @@
1
1
  import type { ESLint, Linter } from 'eslint';
2
+ import nPlugin from 'eslint-plugin-n';
2
3
  declare const config: {
3
4
  readonly files: ["**/*.{js,jsx,mjs}", "**/*.{ts,tsx,mts}"];
4
5
  readonly languageOptions: {
@@ -17,6 +18,7 @@ declare const config: {
17
18
  readonly clearImmediate: false;
18
19
  readonly clearInterval: false;
19
20
  readonly clearTimeout: false;
21
+ readonly CloseEvent: false;
20
22
  readonly CompressionStream: false;
21
23
  readonly console: false;
22
24
  readonly CountQueuingStrategy: false;
@@ -34,7 +36,6 @@ declare const config: {
34
36
  readonly FormData: false;
35
37
  readonly global: false;
36
38
  readonly Headers: false;
37
- readonly Iterator: false;
38
39
  readonly MessageChannel: false;
39
40
  readonly MessageEvent: false;
40
41
  readonly MessagePort: false;
@@ -151,15 +152,7 @@ declare const config: {
151
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
153
  };
153
154
  readonly n: ESLint.Plugin & {
154
- configs: {
155
- 'recommended-module': import("eslint").ESLint.ConfigData;
156
- 'recommended-script': import("eslint").ESLint.ConfigData;
157
- recommended: import("eslint").ESLint.ConfigData;
158
- 'flat/recommended-module': import("eslint").Linter.FlatConfig;
159
- 'flat/recommended-script': import("eslint").Linter.FlatConfig;
160
- 'flat/recommended': import("eslint").Linter.FlatConfig;
161
- 'flat/mixed-esm-and-cjs': import("eslint").Linter.FlatConfig[];
162
- };
155
+ configs: nPlugin.Configs;
163
156
  };
164
157
  };
165
158
  readonly rules: {
package/dist/browser.d.ts CHANGED
@@ -144,6 +144,7 @@ declare const config: {
144
144
  readonly CSSMatrixComponent: false;
145
145
  readonly CSSMediaRule: false;
146
146
  readonly CSSNamespaceRule: false;
147
+ readonly CSSNestedDeclarations: false;
147
148
  readonly CSSNumericArray: false;
148
149
  readonly CSSNumericValue: false;
149
150
  readonly CSSPageDescriptors: false;
@@ -444,7 +445,6 @@ declare const config: {
444
445
  readonly IntersectionObserver: false;
445
446
  readonly IntersectionObserverEntry: false;
446
447
  readonly isSecureContext: false;
447
- readonly Iterator: false;
448
448
  readonly Keyboard: false;
449
449
  readonly KeyboardEvent: false;
450
450
  readonly KeyboardLayoutMap: false;
@@ -1709,15 +1709,7 @@ declare const config: {
1709
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>;
1710
1710
  };
1711
1711
  readonly n: import("eslint").ESLint.Plugin & {
1712
- configs: {
1713
- 'recommended-module': import("eslint").ESLint.ConfigData;
1714
- 'recommended-script': import("eslint").ESLint.ConfigData;
1715
- recommended: import("eslint").ESLint.ConfigData;
1716
- 'flat/recommended-module': import("eslint").Linter.FlatConfig;
1717
- 'flat/recommended-script': import("eslint").Linter.FlatConfig;
1718
- 'flat/recommended': import("eslint").Linter.FlatConfig;
1719
- 'flat/mixed-esm-and-cjs': import("eslint").Linter.FlatConfig[];
1720
- };
1712
+ configs: import("eslint-plugin-n").Configs;
1721
1713
  };
1722
1714
  };
1723
1715
  readonly settings: {
@@ -18,6 +18,7 @@ declare const config: {
18
18
  readonly clearImmediate: false;
19
19
  readonly clearInterval: false;
20
20
  readonly clearTimeout: false;
21
+ readonly CloseEvent: false;
21
22
  readonly CompressionStream: false;
22
23
  readonly console: false;
23
24
  readonly CountQueuingStrategy: false;
@@ -35,7 +36,6 @@ declare const config: {
35
36
  readonly FormData: false;
36
37
  readonly global: false;
37
38
  readonly Headers: false;
38
- readonly Iterator: false;
39
39
  readonly MessageChannel: false;
40
40
  readonly MessageEvent: false;
41
41
  readonly MessagePort: false;
@@ -659,15 +659,7 @@ declare const config: {
659
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>;
660
660
  };
661
661
  readonly n: import("eslint").ESLint.Plugin & {
662
- configs: {
663
- 'recommended-module': import("eslint").ESLint.ConfigData;
664
- 'recommended-script': import("eslint").ESLint.ConfigData;
665
- recommended: import("eslint").ESLint.ConfigData;
666
- 'flat/recommended-module': import("eslint").Linter.FlatConfig;
667
- 'flat/recommended-script': import("eslint").Linter.FlatConfig;
668
- 'flat/recommended': import("eslint").Linter.FlatConfig;
669
- 'flat/mixed-esm-and-cjs': import("eslint").Linter.FlatConfig[];
670
- };
662
+ configs: import("eslint-plugin-n").Configs;
671
663
  };
672
664
  };
673
665
  readonly settings: {
package/dist/jest.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ESLint } from 'eslint';
1
+ import type { Linter } from 'eslint';
2
2
  declare const config: {
3
3
  readonly files: ["**/*.{js,jsx,mjs,cjs}", "**/*.{ts,tsx,mts,cts}"];
4
4
  readonly languageOptions: {
@@ -19,7 +19,30 @@ declare const config: {
19
19
  };
20
20
  };
21
21
  readonly plugins: {
22
- readonly jest: ESLint.Plugin;
22
+ readonly jest: {
23
+ meta: {
24
+ name: string;
25
+ version: string;
26
+ };
27
+ environments: {
28
+ globals: {
29
+ globals: {
30
+ [key: string]: boolean;
31
+ };
32
+ };
33
+ };
34
+ configs: {
35
+ all: Linter.LegacyConfig;
36
+ recommended: Linter.LegacyConfig;
37
+ style: Linter.LegacyConfig;
38
+ "flat/all": Linter.FlatConfig;
39
+ "flat/recommended": Linter.FlatConfig;
40
+ "flat/style": Linter.FlatConfig;
41
+ };
42
+ rules: {
43
+ [key: string]: import("eslint").Rule.RuleModule;
44
+ };
45
+ };
23
46
  };
24
47
  readonly rules: {
25
48
  readonly 'jest/consistent-test-it': "error";
package/dist/jest.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import globals from 'globals';
2
- // @ts-expect-error TS7016
3
2
  import jest from 'eslint-plugin-jest';
4
3
  const config = {
5
4
  files: ['**/*.{js,jsx,mjs,cjs}', '**/*.{ts,tsx,mts,cts}'],
@@ -8,7 +7,7 @@ const config = {
8
7
  ...globals.jest
9
8
  }
10
9
  },
11
- plugins: { jest: jest },
10
+ plugins: { jest },
12
11
  rules: {
13
12
  'jest/consistent-test-it': 'error',
14
13
  'jest/expect-expect': 'error',
@@ -123,6 +123,7 @@ declare const config: {
123
123
  readonly '@typescript-eslint/no-unsafe-function-type': "error";
124
124
  readonly '@typescript-eslint/no-unsafe-member-access': "error";
125
125
  readonly '@typescript-eslint/no-unsafe-return': "error";
126
+ readonly '@typescript-eslint/no-unsafe-type-assertion': "off";
126
127
  readonly '@typescript-eslint/no-unsafe-unary-minus': "error";
127
128
  readonly '@typescript-eslint/no-unused-expressions': ["error", {
128
129
  readonly enforceForJSX: true;
@@ -158,6 +159,7 @@ declare const config: {
158
159
  readonly '@typescript-eslint/prefer-return-this-type': "error";
159
160
  readonly '@typescript-eslint/prefer-string-starts-ends-with': "error";
160
161
  readonly '@typescript-eslint/promise-function-async': "error";
162
+ readonly '@typescript-eslint/related-getter-setter-pairs': "error";
161
163
  readonly '@typescript-eslint/require-array-sort-compare': "error";
162
164
  readonly '@typescript-eslint/require-await': "error";
163
165
  readonly '@typescript-eslint/restrict-plus-operands': "error";
@@ -126,6 +126,7 @@ const config = {
126
126
  '@typescript-eslint/no-unsafe-function-type': 'error',
127
127
  '@typescript-eslint/no-unsafe-member-access': 'error',
128
128
  '@typescript-eslint/no-unsafe-return': 'error',
129
+ '@typescript-eslint/no-unsafe-type-assertion': 'off',
129
130
  '@typescript-eslint/no-unsafe-unary-minus': 'error',
130
131
  '@typescript-eslint/no-unused-expressions': ['error', { enforceForJSX: true }],
131
132
  '@typescript-eslint/no-unused-vars': [
@@ -162,6 +163,7 @@ const config = {
162
163
  '@typescript-eslint/prefer-return-this-type': 'error',
163
164
  '@typescript-eslint/prefer-string-starts-ends-with': 'error',
164
165
  '@typescript-eslint/promise-function-async': 'error',
166
+ '@typescript-eslint/related-getter-setter-pairs': 'error',
165
167
  '@typescript-eslint/require-array-sort-compare': 'error',
166
168
  '@typescript-eslint/require-await': 'error',
167
169
  '@typescript-eslint/restrict-plus-operands': 'error',
package/package.json CHANGED
@@ -1,33 +1,31 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "2.1.0",
4
+ "version": "2.2.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.9.0",
10
+ "@stylistic/eslint-plugin": "~2.11.0",
11
11
  "eslint-plugin-import": "~2.31.0",
12
- "eslint-plugin-jsdoc": "~50.4.3",
13
- "eslint-plugin-n": "~17.11.1",
14
- "globals": "^15.11.0"
12
+ "eslint-plugin-jsdoc": "~50.5.0",
13
+ "eslint-plugin-n": "~17.13.2",
14
+ "globals": "^15.12.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@eslint-stylistic/metadata": "~2.9.0",
18
- "@eslint/js": "~9.12.0",
19
- "@types/eslint": "^9.6.1",
20
- "@types/eslint__js": "^8.42.3",
21
- "@types/node": "^20.16.12",
22
- "eslint": "~9.12.0",
17
+ "@eslint-stylistic/metadata": "~2.11.0",
18
+ "@eslint/js": "~9.15.0",
19
+ "@types/node": "^22.9.0",
20
+ "eslint": "~9.15.0",
23
21
  "eslint-import-resolver-typescript": "~3.6.3",
24
- "eslint-plugin-jest": "~28.8.3",
25
- "eslint-plugin-react": "~7.37.1",
22
+ "eslint-plugin-jest": "~28.9.0",
23
+ "eslint-plugin-react": "~7.37.2",
26
24
  "eslint-plugin-react-hooks": "~5.0.0",
27
25
  "husky": "^9.1.6",
28
- "jiti": "^2.3.3",
26
+ "jiti": "^2.4.0",
29
27
  "typescript": "~5.6.3",
30
- "typescript-eslint": "~8.10.0"
28
+ "typescript-eslint": "~8.15.0"
31
29
  },
32
30
  "engines": {
33
31
  "node": ">=18.18.0"
@@ -67,7 +65,7 @@
67
65
  "eslint-plugin-react": "^7.36.1",
68
66
  "eslint-plugin-react-hooks": "^5.0.0",
69
67
  "typescript": "^5.0.4",
70
- "typescript-eslint": "^8.5.0"
68
+ "typescript-eslint": "^8.15.0"
71
69
  },
72
70
  "peerDependenciesMeta": {
73
71
  "@eslint/compat": {