@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 +8 -4
- package/dist/base.d.ts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/commonjs.d.ts +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/jest.d.ts +1 -0
- package/dist/jest.js +1 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.js +1 -0
- package/dist/rules/import-rules.d.ts +1 -1
- package/dist/rules/import-rules.js +1 -1
- package/dist/typescript.d.ts +2 -2
- package/dist/typescript.js +1 -1
- package/package.json +19 -2
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
|
|
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
|
|
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
|
|
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
|
|
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': "
|
|
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': "
|
|
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", {
|
package/dist/commonjs.d.ts
CHANGED
|
@@ -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': "
|
|
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
package/dist/jest.js
CHANGED
package/dist/react.d.ts
CHANGED
package/dist/react.js
CHANGED
|
@@ -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': "
|
|
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': '
|
|
4
|
+
'import/dynamic-import-chunkname': 'off',
|
|
5
5
|
'import/export': 'error',
|
|
6
6
|
'import/exports-last': 'error',
|
|
7
7
|
'import/extensions': [
|
package/dist/typescript.d.ts
CHANGED
|
@@ -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;
|
package/dist/typescript.js
CHANGED
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.
|
|
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":
|
|
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
|
],
|