@egy186/eslint-config 1.0.0 → 1.0.2

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
@@ -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/browser.d.ts CHANGED
@@ -1434,7 +1434,7 @@ declare const config: {
1434
1434
  readonly 'jsdoc/valid-types': "error";
1435
1435
  readonly 'import/consistent-type-specifier-style': "error";
1436
1436
  readonly 'import/default': "error";
1437
- readonly 'import/dynamic-import-chunkname': "error";
1437
+ readonly 'import/dynamic-import-chunkname': "off";
1438
1438
  readonly 'import/export': "error";
1439
1439
  readonly 'import/exports-last': "error";
1440
1440
  readonly 'import/extensions': ["error", "ignorePackages", {
@@ -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", {
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
@@ -140,4 +140,5 @@ declare const config: {
140
140
  };
141
141
  };
142
142
  };
143
+ export { config as react };
143
144
  export default config;
package/dist/react.js CHANGED
@@ -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': [
@@ -208,7 +208,7 @@ declare const config: {
208
208
  };
209
209
  };
210
210
  declare const typescriptConfig: (parserOptions: Readonly<{
211
- project: string;
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "author": "egy186",
6
6
  "bugs": {
7
7
  "url": "https://github.com/egy186/eslint-config/issues"
@@ -33,7 +33,24 @@
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
  ],