@egy186/eslint-config 0.111.0 → 0.113.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/index.d.ts CHANGED
@@ -152,6 +152,7 @@ declare const config: {
152
152
  'n/file-extension-in-import': ["error", string];
153
153
  'n/global-require': "error";
154
154
  'n/handle-callback-err': ["error", string];
155
+ 'n/hashbang': "error";
155
156
  'n/no-callback-literal': "error";
156
157
  'n/no-deprecated-api': "error";
157
158
  'n/no-exports-assign': "error";
@@ -182,10 +183,10 @@ declare const config: {
182
183
  'n/prefer-global/text-encoder': "error";
183
184
  'n/prefer-global/url': "error";
184
185
  'n/prefer-global/url-search-params': "error";
186
+ 'n/prefer-node-protocol': "error";
185
187
  'n/prefer-promises/dns': "error";
186
188
  'n/prefer-promises/fs': "error";
187
189
  'n/process-exit-as-throw': "error";
188
- 'n/shebang': "error";
189
190
  'jsdoc/check-access': "error";
190
191
  'jsdoc/check-alignment': "error";
191
192
  'jsdoc/check-examples': "off";
package/dist/jest.d.ts CHANGED
@@ -1,7 +1,4 @@
1
1
  declare const config: {
2
- env: {
3
- jest: true;
4
- };
5
2
  plugins: string[];
6
3
  rules: {
7
4
  'jest/consistent-test-it': "error";
@@ -41,6 +38,7 @@ declare const config: {
41
38
  'jest/prefer-expect-resolves': "error";
42
39
  'jest/prefer-hooks-in-order': "error";
43
40
  'jest/prefer-hooks-on-top': "error";
41
+ 'jest/prefer-importing-jest-globals': "error";
44
42
  'jest/prefer-lowercase-title': "error";
45
43
  'jest/prefer-mock-promise-shorthand': "error";
46
44
  'jest/prefer-snapshot-hint': "error";
@@ -60,6 +58,9 @@ declare const config: {
60
58
  'jest/valid-title': "error";
61
59
  'max-lines-per-function': "off";
62
60
  'max-statements': "off";
61
+ 'n/no-unpublished-import': ["error", {
62
+ allowModules: string[];
63
+ }];
63
64
  };
64
65
  };
65
66
  export default config;
package/dist/jest.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const config = {
4
- env: { jest: true },
5
4
  plugins: ['jest'],
6
5
  rules: {
7
6
  'jest/consistent-test-it': 'error',
@@ -39,6 +38,7 @@ const config = {
39
38
  'jest/prefer-expect-resolves': 'error',
40
39
  'jest/prefer-hooks-in-order': 'error',
41
40
  'jest/prefer-hooks-on-top': 'error',
41
+ 'jest/prefer-importing-jest-globals': 'error',
42
42
  'jest/prefer-lowercase-title': 'error',
43
43
  'jest/prefer-mock-promise-shorthand': 'error',
44
44
  'jest/prefer-snapshot-hint': 'error',
@@ -57,7 +57,8 @@ const config = {
57
57
  'jest/valid-expect-in-promise': 'error',
58
58
  'jest/valid-title': 'error',
59
59
  'max-lines-per-function': 'off',
60
- 'max-statements': 'off'
60
+ 'max-statements': 'off',
61
+ 'n/no-unpublished-import': ['error', { allowModules: ['@jest/globals'] }]
61
62
  }
62
63
  };
63
64
  exports.default = config;
@@ -4,6 +4,7 @@ declare const rules: {
4
4
  'n/file-extension-in-import': ["error", string];
5
5
  'n/global-require': "error";
6
6
  'n/handle-callback-err': ["error", string];
7
+ 'n/hashbang': "error";
7
8
  'n/no-callback-literal': "error";
8
9
  'n/no-deprecated-api': "error";
9
10
  'n/no-exports-assign': "error";
@@ -34,9 +35,9 @@ declare const rules: {
34
35
  'n/prefer-global/text-encoder': "error";
35
36
  'n/prefer-global/url': "error";
36
37
  'n/prefer-global/url-search-params': "error";
38
+ 'n/prefer-node-protocol': "error";
37
39
  'n/prefer-promises/dns': "error";
38
40
  'n/prefer-promises/fs': "error";
39
41
  'n/process-exit-as-throw': "error";
40
- 'n/shebang': "error";
41
42
  };
42
43
  export default rules;
@@ -6,6 +6,7 @@ const rules = {
6
6
  'n/file-extension-in-import': ['error', 'always'],
7
7
  'n/global-require': 'error',
8
8
  'n/handle-callback-err': ['error', '^(err|error)$'],
9
+ 'n/hashbang': 'error',
9
10
  'n/no-callback-literal': 'error',
10
11
  'n/no-deprecated-api': 'error',
11
12
  'n/no-exports-assign': 'error',
@@ -34,9 +35,9 @@ const rules = {
34
35
  'n/prefer-global/text-encoder': 'error',
35
36
  'n/prefer-global/url': 'error',
36
37
  'n/prefer-global/url-search-params': 'error',
38
+ 'n/prefer-node-protocol': 'error',
37
39
  'n/prefer-promises/dns': 'error',
38
40
  'n/prefer-promises/fs': 'error',
39
- 'n/process-exit-as-throw': 'error',
40
- 'n/shebang': 'error'
41
+ 'n/process-exit-as-throw': 'error'
41
42
  };
42
43
  exports.default = rules;
@@ -98,7 +98,6 @@ declare const config: {
98
98
  '@typescript-eslint/no-restricted-imports': "error";
99
99
  '@typescript-eslint/no-shadow': "error";
100
100
  '@typescript-eslint/no-this-alias': "error";
101
- '@typescript-eslint/no-throw-literal': "error";
102
101
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': "error";
103
102
  '@typescript-eslint/no-unnecessary-condition': "error";
104
103
  '@typescript-eslint/no-unnecessary-qualifier': "error";
@@ -123,6 +122,7 @@ declare const config: {
123
122
  '@typescript-eslint/no-useless-template-literals': "error";
124
123
  '@typescript-eslint/no-var-requires': "error";
125
124
  '@typescript-eslint/non-nullable-type-assertion-style': "off";
125
+ '@typescript-eslint/only-throw-error': "error";
126
126
  '@typescript-eslint/parameter-properties': "error";
127
127
  '@typescript-eslint/prefer-as-const': "error";
128
128
  '@typescript-eslint/prefer-destructuring': "error";
@@ -158,6 +158,7 @@ declare const config: {
158
158
  '@typescript-eslint/unified-signatures': ["error", {
159
159
  ignoreDifferentlyNamedParameters: boolean;
160
160
  }];
161
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': "error";
161
162
  camelcase: "off";
162
163
  'class-methods-use-this': "off";
163
164
  'consistent-return': "off";
@@ -105,7 +105,6 @@ const config = {
105
105
  '@typescript-eslint/no-restricted-imports': 'error',
106
106
  '@typescript-eslint/no-shadow': 'error',
107
107
  '@typescript-eslint/no-this-alias': 'error',
108
- '@typescript-eslint/no-throw-literal': 'error',
109
108
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
110
109
  '@typescript-eslint/no-unnecessary-condition': 'error',
111
110
  '@typescript-eslint/no-unnecessary-qualifier': 'error',
@@ -128,6 +127,7 @@ const config = {
128
127
  '@typescript-eslint/no-useless-template-literals': 'error',
129
128
  '@typescript-eslint/no-var-requires': 'error',
130
129
  '@typescript-eslint/non-nullable-type-assertion-style': 'off',
130
+ '@typescript-eslint/only-throw-error': 'error',
131
131
  '@typescript-eslint/parameter-properties': 'error',
132
132
  '@typescript-eslint/prefer-as-const': 'error',
133
133
  '@typescript-eslint/prefer-destructuring': 'error',
@@ -161,6 +161,7 @@ const config = {
161
161
  '@typescript-eslint/typedef': 'error',
162
162
  '@typescript-eslint/unbound-method': 'error',
163
163
  '@typescript-eslint/unified-signatures': ['error', { ignoreDifferentlyNamedParameters: true }],
164
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
164
165
  camelcase: 'off',
165
166
  'class-methods-use-this': 'off',
166
167
  'consistent-return': 'off',
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "0.111.0",
4
+ "version": "0.113.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": "~1.6.3",
10
+ "@stylistic/eslint-plugin": "~1.7.0",
11
11
  "eslint-plugin-import": "~2.29.1",
12
12
  "eslint-plugin-jsdoc": "~48.2.1",
13
- "eslint-plugin-n": "~16.6.2"
13
+ "eslint-plugin-n": "~17.2.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@eslint-stylistic/metadata": "~1.6.3",
17
- "@types/eslint": "^8.56.5",
18
- "@types/node": "^20.11.27",
19
- "@typescript-eslint/eslint-plugin": "~7.2.0",
20
- "@typescript-eslint/parser": "~7.2.0",
16
+ "@eslint-stylistic/metadata": "~1.7.0",
17
+ "@types/eslint": "^8.56.7",
18
+ "@types/node": "^20.12.7",
19
+ "@typescript-eslint/eslint-plugin": "~7.6.0",
20
+ "@typescript-eslint/parser": "~7.6.0",
21
21
  "eslint": "~8.57.0",
22
22
  "eslint-import-resolver-typescript": "~3.6.1",
23
- "eslint-plugin-jest": "~27.9.0",
24
- "eslint-plugin-react": "~7.34.0",
23
+ "eslint-plugin-jest": "~28.2.0",
24
+ "eslint-plugin-react": "~7.34.1",
25
25
  "eslint-plugin-react-hooks": "~4.6.0",
26
26
  "husky": "^9.0.11",
27
27
  "jiti": "^1.21.0",
28
- "typescript": "~5.4.2"
28
+ "typescript": "~5.4.4"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=18.18.0"
@@ -47,11 +47,11 @@
47
47
  "license": "MIT",
48
48
  "main": "index.js",
49
49
  "peerDependencies": {
50
- "@typescript-eslint/eslint-plugin": "^7.2.0",
51
- "@typescript-eslint/parser": "^7.2.0",
50
+ "@typescript-eslint/eslint-plugin": "^7.4.0",
51
+ "@typescript-eslint/parser": "^7.4.0",
52
52
  "eslint": "^8.50.0",
53
53
  "eslint-import-resolver-typescript": "^3.6.1",
54
- "eslint-plugin-jest": "^27.7.0",
54
+ "eslint-plugin-jest": "^28.2.0",
55
55
  "eslint-plugin-react": "^7.34.0",
56
56
  "eslint-plugin-react-hooks": "^4.3.0",
57
57
  "typescript": "^5.0.4"