@egy186/eslint-config 1.0.1 → 1.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/README.md CHANGED
@@ -25,7 +25,8 @@ export { commonjs as default } from '@egy186/eslint-config';
25
25
  Browser, React:
26
26
 
27
27
  ```js
28
- import { browser, react } from '@egy186/eslint-config';
28
+ import { browser } from '@egy186/eslint-config';
29
+ import { react } from '@egy186/eslint-config/react';
29
30
 
30
31
  export default [browser, react];
31
32
  ```
@@ -33,7 +34,8 @@ export default [browser, react];
33
34
  TypeScript:
34
35
 
35
36
  ```js
36
- import { base, typescript } from '@egy186/eslint-config';
37
+ import { base } from '@egy186/eslint-config';
38
+ import { typescript } from '@egy186/eslint-config/typescript';
37
39
 
38
40
  export default [base, typescript];
39
41
  ```
@@ -41,7 +43,8 @@ export default [base, typescript];
41
43
  TypeScript, tsconfig:
42
44
 
43
45
  ```js
44
- import { base, typescriptConfig } from '@egy186/eslint-config';
46
+ import { base } from '@egy186/eslint-config';
47
+ import { typescriptConfig } from '@egy186/eslint-config/typescript';
45
48
 
46
49
  export default [base, typescriptConfig({ project: 'path/to/tsconfig.eslint.json' })];
47
50
  ```
@@ -49,7 +52,8 @@ export default [base, typescriptConfig({ project: 'path/to/tsconfig.eslint.json'
49
52
  Jest:
50
53
 
51
54
  ```js
52
- import { base, jest } from '@egy186/eslint-config';
55
+ import { base } from '@egy186/eslint-config';
56
+ import { jest } from '@egy186/eslint-config/jest';
53
57
 
54
58
  export default [base, jest];
55
59
  ```
package/dist/base.d.ts CHANGED
@@ -144,7 +144,7 @@ declare const config: {
144
144
  readonly sourceType: "module";
145
145
  };
146
146
  readonly linterOptions: {
147
- readonly reportUnusedDisableDirectives: true;
147
+ readonly reportUnusedDisableDirectives: "error";
148
148
  };
149
149
  readonly plugins: {
150
150
  readonly '@stylistic': ESLint.Plugin;
@@ -409,7 +409,7 @@ declare const config: {
409
409
  readonly 'jsdoc/valid-types': "error";
410
410
  readonly 'import/consistent-type-specifier-style': "error";
411
411
  readonly 'import/default': "error";
412
- readonly 'import/dynamic-import-chunkname': "error";
412
+ readonly 'import/dynamic-import-chunkname': "off";
413
413
  readonly 'import/export': "error";
414
414
  readonly 'import/exports-last': "error";
415
415
  readonly 'import/extensions': ["error", "ignorePackages", {
package/dist/base.js CHANGED
@@ -23,7 +23,7 @@ const config = {
23
23
  sourceType: 'module'
24
24
  },
25
25
  linterOptions: {
26
- reportUnusedDisableDirectives: true
26
+ reportUnusedDisableDirectives: 'error'
27
27
  },
28
28
  plugins: {
29
29
  '@stylistic': stylistic,
package/dist/browser.d.ts CHANGED
@@ -45,6 +45,7 @@ declare const config: {
45
45
  readonly BackgroundFetchManager: false;
46
46
  readonly BackgroundFetchRecord: false;
47
47
  readonly BackgroundFetchRegistration: false;
48
+ readonly BarcodeDetector: false;
48
49
  readonly BarProp: false;
49
50
  readonly BaseAudioContext: false;
50
51
  readonly BatteryManager: false;
@@ -648,6 +649,8 @@ declare const config: {
648
649
  readonly onresize: true;
649
650
  readonly onscroll: true;
650
651
  readonly onscrollend: true;
652
+ readonly onscrollsnapchange: true;
653
+ readonly onscrollsnapchanging: true;
651
654
  readonly onsearch: true;
652
655
  readonly onsecuritypolicyviolation: true;
653
656
  readonly onseeked: true;
@@ -839,6 +842,7 @@ declare const config: {
839
842
  readonly showDirectoryPicker: false;
840
843
  readonly showOpenFilePicker: false;
841
844
  readonly showSaveFilePicker: false;
845
+ readonly SnapEvent: false;
842
846
  readonly SourceBuffer: false;
843
847
  readonly SourceBufferList: false;
844
848
  readonly speechSynthesis: false;
@@ -1434,7 +1438,7 @@ declare const config: {
1434
1438
  readonly 'jsdoc/valid-types': "error";
1435
1439
  readonly 'import/consistent-type-specifier-style': "error";
1436
1440
  readonly 'import/default': "error";
1437
- readonly 'import/dynamic-import-chunkname': "error";
1441
+ readonly 'import/dynamic-import-chunkname': "off";
1438
1442
  readonly 'import/export': "error";
1439
1443
  readonly 'import/exports-last': "error";
1440
1444
  readonly 'import/extensions': ["error", "ignorePackages", {
@@ -1701,7 +1705,7 @@ declare const config: {
1701
1705
  };
1702
1706
  readonly files: ["**/*.{js,jsx,mjs}", "**/*.{ts,tsx,mts}"];
1703
1707
  readonly linterOptions: {
1704
- readonly reportUnusedDisableDirectives: true;
1708
+ readonly reportUnusedDisableDirectives: "error";
1705
1709
  };
1706
1710
  readonly plugins: {
1707
1711
  readonly '@stylistic': import("eslint").ESLint.Plugin;
@@ -388,7 +388,7 @@ declare const config: {
388
388
  readonly 'jsdoc/valid-types': "error";
389
389
  readonly 'import/consistent-type-specifier-style': "error";
390
390
  readonly 'import/default': "error";
391
- readonly 'import/dynamic-import-chunkname': "error";
391
+ readonly 'import/dynamic-import-chunkname': "off";
392
392
  readonly 'import/export': "error";
393
393
  readonly 'import/exports-last': "error";
394
394
  readonly 'import/extensions': ["error", "ignorePackages", {
@@ -655,7 +655,7 @@ declare const config: {
655
655
  readonly 'valid-typeof': "error";
656
656
  };
657
657
  readonly linterOptions: {
658
- readonly reportUnusedDisableDirectives: true;
658
+ readonly reportUnusedDisableDirectives: "error";
659
659
  };
660
660
  readonly plugins: {
661
661
  readonly '@stylistic': import("eslint").ESLint.Plugin;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
1
  export { default as base, default } from './base.js';
2
2
  export { default as browser } from './browser.js';
3
3
  export { default as commonjs } from './commonjs.js';
4
- export { default as jest } from './jest.js';
5
- export { default as react } from './react.js';
6
- export { default as typescript, typescriptConfig } from './typescript.js';
package/dist/index.js CHANGED
@@ -1,6 +1,3 @@
1
1
  export { default as base, default } from './base.js';
2
2
  export { default as browser } from './browser.js';
3
3
  export { default as commonjs } from './commonjs.js';
4
- export { default as jest } from './jest.js';
5
- export { default as react } from './react.js';
6
- export { default as typescript, typescriptConfig } from './typescript.js';
package/dist/jest.d.ts CHANGED
@@ -90,4 +90,5 @@ declare const config: {
90
90
  readonly 'max-statements': "off";
91
91
  };
92
92
  };
93
+ export { config as jest };
93
94
  export default config;
package/dist/jest.js CHANGED
@@ -76,4 +76,5 @@ const config = {
76
76
  'max-statements': 'off'
77
77
  }
78
78
  };
79
+ export { config as jest };
79
80
  export default config;
package/dist/react.d.ts CHANGED
@@ -27,6 +27,7 @@ declare const config: {
27
27
  readonly 'react/forbid-elements': "off";
28
28
  readonly 'react/forbid-foreign-prop-types': "error";
29
29
  readonly 'react/forbid-prop-types': "error";
30
+ readonly 'react/forward-ref-uses-ref': "error";
30
31
  readonly 'react/function-component-definition': ["error", {
31
32
  readonly namedComponents: "arrow-function";
32
33
  readonly unnamedComponents: "arrow-function";
@@ -140,4 +141,5 @@ declare const config: {
140
141
  };
141
142
  };
142
143
  };
144
+ export { config as react };
143
145
  export default config;
package/dist/react.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { fixupPluginRules } from '@eslint/compat';
2
- // @ts-expect-error TS7016
3
2
  import react from 'eslint-plugin-react';
4
3
  // @ts-expect-error TS7016
5
4
  import reactHooksPlugin from 'eslint-plugin-react-hooks';
@@ -29,6 +28,7 @@ const config = {
29
28
  'react/forbid-elements': 'off',
30
29
  'react/forbid-foreign-prop-types': 'error',
31
30
  'react/forbid-prop-types': 'error',
31
+ 'react/forward-ref-uses-ref': 'error',
32
32
  'react/function-component-definition': [
33
33
  'error',
34
34
  {
@@ -177,4 +177,5 @@ const config = {
177
177
  },
178
178
  settings: { react: { version: 'detect' } }
179
179
  };
180
+ export { config as react };
180
181
  export default config;
@@ -1,7 +1,7 @@
1
1
  declare const rules: {
2
2
  readonly 'import/consistent-type-specifier-style': "error";
3
3
  readonly 'import/default': "error";
4
- readonly 'import/dynamic-import-chunkname': "error";
4
+ readonly 'import/dynamic-import-chunkname': "off";
5
5
  readonly 'import/export': "error";
6
6
  readonly 'import/exports-last': "error";
7
7
  readonly 'import/extensions': ["error", "ignorePackages", {
@@ -1,7 +1,7 @@
1
1
  const rules = {
2
2
  'import/consistent-type-specifier-style': 'error',
3
3
  'import/default': 'error',
4
- 'import/dynamic-import-chunkname': 'error',
4
+ 'import/dynamic-import-chunkname': 'off',
5
5
  'import/export': 'error',
6
6
  'import/exports-last': 'error',
7
7
  'import/extensions': [
@@ -210,5 +210,5 @@ declare const config: {
210
210
  declare const typescriptConfig: (parserOptions: Readonly<{
211
211
  project: readonly string[] | boolean | string;
212
212
  }>) => Linter.FlatConfig;
213
- export { typescriptConfig };
213
+ export { config as typescript, typescriptConfig };
214
214
  export default config;
@@ -233,5 +233,5 @@ const typescriptConfig = (parserOptions) => ({
233
233
  }
234
234
  }
235
235
  });
236
- export { typescriptConfig };
236
+ export { config as typescript, typescriptConfig };
237
237
  export default config;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "1.0.1",
4
+ "version": "1.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
10
  "@stylistic/eslint-plugin": "~2.8.0",
11
- "eslint-plugin-import": "~2.30.0",
12
- "eslint-plugin-jsdoc": "~50.2.2",
13
- "eslint-plugin-n": "~17.10.2",
14
- "globals": "^15.9.0"
11
+ "eslint-plugin-import": "~2.31.0",
12
+ "eslint-plugin-jsdoc": "~50.3.1",
13
+ "eslint-plugin-n": "~17.10.3",
14
+ "globals": "^15.10.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@eslint-stylistic/metadata": "~2.8.0",
@@ -19,21 +19,38 @@
19
19
  "@eslint/js": "~8.57.0",
20
20
  "@types/eslint": "^8.56.12",
21
21
  "@types/eslint__js": "^8.42.3",
22
- "@types/node": "^20.16.5",
23
- "eslint": "~8.57.0",
22
+ "@types/node": "^20.16.10",
23
+ "eslint": "~8.57.1",
24
24
  "eslint-import-resolver-typescript": "~3.6.3",
25
25
  "eslint-plugin-jest": "~28.8.3",
26
- "eslint-plugin-react": "~7.35.2",
26
+ "eslint-plugin-react": "~7.37.1",
27
27
  "eslint-plugin-react-hooks": "~4.6.2",
28
- "husky": "^9.1.5",
28
+ "husky": "^9.1.6",
29
29
  "jiti": "^1.21.6",
30
- "typescript": "~5.5.3",
31
- "typescript-eslint": "~8.5.0"
30
+ "typescript": "~5.5.4",
31
+ "typescript-eslint": "~8.8.0"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=18.18.0"
35
35
  },
36
- "exports": "./dist/index.js",
36
+ "exports": {
37
+ ".": {
38
+ "types": "./dist/index.d.ts",
39
+ "default": "./dist/index.js"
40
+ },
41
+ "./jest": {
42
+ "types": "./dist/jest.d.ts",
43
+ "default": "./dist/jest.js"
44
+ },
45
+ "./react": {
46
+ "types": "./dist/react.d.ts",
47
+ "default": "./dist/react.js"
48
+ },
49
+ "./typescript": {
50
+ "types": "./dist/typescript.d.ts",
51
+ "default": "./dist/typescript.js"
52
+ }
53
+ },
37
54
  "files": [
38
55
  "dist"
39
56
  ],
@@ -49,7 +66,7 @@
49
66
  "eslint": "^8.50.0",
50
67
  "eslint-import-resolver-typescript": "^3.6.1",
51
68
  "eslint-plugin-jest": "^28.8.3",
52
- "eslint-plugin-react": "^7.35.2",
69
+ "eslint-plugin-react": "^7.36.1",
53
70
  "eslint-plugin-react-hooks": "^4.3.0",
54
71
  "typescript": "^5.0.4",
55
72
  "typescript-eslint": "^8.5.0"