@w5s/eslint-config 1.0.11 → 1.1.1
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 +3 -4
- package/es.js +1 -1
- package/ignore.js +1 -1
- package/jest.js +1 -1
- package/json.js +1 -1
- package/package.json +17 -20
- package/ts.js +3 -3
- package/yml.js +1 -1
- /package/{lib → dist}/es/base.d.ts +0 -0
- /package/{lib → dist}/es/base.js +0 -0
- /package/{lib → dist}/es/import.d.ts +0 -0
- /package/{lib → dist}/es/import.js +0 -0
- /package/{lib → dist}/es/jsdoc.d.ts +0 -0
- /package/{lib → dist}/es/jsdoc.js +0 -0
- /package/{lib → dist}/es/promise.d.ts +0 -0
- /package/{lib → dist}/es/promise.js +0 -0
- /package/{lib → dist}/es/unicorn.d.ts +0 -0
- /package/{lib → dist}/es/unicorn.js +0 -0
- /package/{lib → dist}/es.d.ts +0 -0
- /package/{lib → dist}/es.js +0 -0
- /package/{lib → dist}/ignore.d.ts +0 -0
- /package/{lib → dist}/ignore.js +0 -0
- /package/{lib → dist}/jest.d.ts +0 -0
- /package/{lib → dist}/jest.js +0 -0
- /package/{lib → dist}/jsonc.d.ts +0 -0
- /package/{lib → dist}/jsonc.js +0 -0
- /package/{lib → dist}/prettier.d.ts +0 -0
- /package/{lib → dist}/prettier.js +0 -0
- /package/{lib → dist}/typescript.d.ts +0 -0
- /package/{lib → dist}/typescript.js +0 -0
- /package/{lib → dist}/yml.d.ts +0 -0
- /package/{lib → dist}/yml.js +0 -0
package/README.md
CHANGED
|
@@ -47,11 +47,10 @@ For most kind of project, just edit `eslintrc.json` and cherry pick only configu
|
|
|
47
47
|
"root": true,
|
|
48
48
|
"extends": [
|
|
49
49
|
"@w5s/eslint-config/es",
|
|
50
|
-
"@w5s/eslint-config/functional",
|
|
51
50
|
"@w5s/eslint-config/jest",
|
|
52
51
|
"@w5s/eslint-config/json",
|
|
53
|
-
"@w5s/eslint-config/react",
|
|
54
52
|
"@w5s/eslint-config/ts",
|
|
53
|
+
"@w5s/eslint-config/yml",
|
|
55
54
|
// include more configurations here
|
|
56
55
|
]
|
|
57
56
|
//...
|
|
@@ -62,9 +61,9 @@ For most kind of project, just edit `eslintrc.json` and cherry pick only configu
|
|
|
62
61
|
|
|
63
62
|
- `@w5s/eslint-config/es`: for ECMA Script (ES) files
|
|
64
63
|
- `@w5s/eslint-config/jest`: for jest environment tests
|
|
65
|
-
- `@w5s/eslint-config/
|
|
66
|
-
- `@w5s/eslint-config/react`: for react capability
|
|
64
|
+
- `@w5s/eslint-config/json`: for json and jsonc files
|
|
67
65
|
- `@w5s/eslint-config/ts`: for typescript files
|
|
66
|
+
- `@w5s/eslint-config/yml`: for yaml files
|
|
68
67
|
|
|
69
68
|
## License
|
|
70
69
|
<!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=[${license}][license-url] © ${author}) -->
|
package/es.js
CHANGED
package/ignore.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./
|
|
1
|
+
module.exports = require('./dist/ignore.js');
|
package/jest.js
CHANGED
|
@@ -6,7 +6,7 @@ const extensions = EXTENSIONS_WITHOUT_DOT.join('|');
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
overrides: [
|
|
8
8
|
{
|
|
9
|
-
extends: [require.resolve('./
|
|
9
|
+
extends: [require.resolve('./dist/jest.js')],
|
|
10
10
|
files: [
|
|
11
11
|
`**/__mocks__/**/*.+(${extensions})`,
|
|
12
12
|
`**/__tests__/**/*.+(${extensions})`,
|
package/json.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -21,22 +21,19 @@
|
|
|
21
21
|
"type": "commonjs",
|
|
22
22
|
"main": "index.js",
|
|
23
23
|
"files": [
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"src/**/!(*.spec).ts",
|
|
28
|
-
"!example/**/*",
|
|
29
|
-
"!*.cjs",
|
|
24
|
+
"dist/",
|
|
25
|
+
"src/",
|
|
26
|
+
"*.js",
|
|
30
27
|
"index.js",
|
|
31
28
|
"index.d.ts",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
29
|
+
"!**/*.spec.*",
|
|
30
|
+
"!**/__tests__/**"
|
|
34
31
|
],
|
|
35
32
|
"scripts": {
|
|
36
33
|
"build": "concurrently \"npm:build:*\" \":\"",
|
|
37
34
|
"build:tsc": "tsc -b tsconfig.build.json",
|
|
38
35
|
"clean": "concurrently \"npm:clean:*\" \":\"",
|
|
39
|
-
"clean:tsc": "rm -rf
|
|
36
|
+
"clean:tsc": "rm -rf dist",
|
|
40
37
|
"docs": "node ../../markdown.mjs",
|
|
41
38
|
"format": "concurrently \"npm:format:*\" \":\"",
|
|
42
39
|
"format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
|
|
@@ -53,13 +50,13 @@
|
|
|
53
50
|
"@rushstack/eslint-patch": "^1.1.0",
|
|
54
51
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
55
52
|
"@typescript-eslint/parser": "^5.0.0",
|
|
56
|
-
"@w5s/dev": "^1.0
|
|
57
|
-
"@w5s/prettier-config": "^1.0
|
|
53
|
+
"@w5s/dev": "^1.1.0",
|
|
54
|
+
"@w5s/prettier-config": "^1.1.0",
|
|
58
55
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
59
56
|
"eslint-config-prettier": "^8.0.0",
|
|
60
57
|
"eslint-plugin-import": "^2.25.0",
|
|
61
58
|
"eslint-plugin-jest": "^27.0.0",
|
|
62
|
-
"eslint-plugin-jsdoc": "^
|
|
59
|
+
"eslint-plugin-jsdoc": "^46.0.0",
|
|
63
60
|
"eslint-plugin-jsonc": "^2.4.0",
|
|
64
61
|
"eslint-plugin-prettier": "^4.0.0",
|
|
65
62
|
"eslint-plugin-promise": "^6.0.0",
|
|
@@ -69,19 +66,19 @@
|
|
|
69
66
|
"parse-gitignore": "^2.0.0"
|
|
70
67
|
},
|
|
71
68
|
"devDependencies": {
|
|
72
|
-
"@types/eslint": "8.40.
|
|
69
|
+
"@types/eslint": "8.40.2",
|
|
73
70
|
"@types/eslint-plugin-prettier": "3.1.0",
|
|
74
71
|
"@types/parse-gitignore": "1.0.0",
|
|
75
|
-
"@types/prettier": "2.7.
|
|
76
|
-
"@types/react": "18.2.
|
|
77
|
-
"@typescript-eslint/parser": "5.
|
|
78
|
-
"eslint": "8.
|
|
72
|
+
"@types/prettier": "2.7.3",
|
|
73
|
+
"@types/react": "18.2.14",
|
|
74
|
+
"@typescript-eslint/parser": "5.61.0",
|
|
75
|
+
"eslint": "8.44.0",
|
|
79
76
|
"eslint-config-prettier": "8.8.0",
|
|
80
77
|
"eslint-find-rules": "4.1.0",
|
|
81
78
|
"prettier": "2.8.8",
|
|
82
79
|
"react": "18.2.0",
|
|
83
80
|
"vite": "4.3.9",
|
|
84
|
-
"vitest": "0.
|
|
81
|
+
"vitest": "0.32.4"
|
|
85
82
|
},
|
|
86
83
|
"peerDependencies": {
|
|
87
84
|
"eslint": "8.x",
|
|
@@ -102,5 +99,5 @@
|
|
|
102
99
|
"publishConfig": {
|
|
103
100
|
"access": "public"
|
|
104
101
|
},
|
|
105
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "f6e23733afc9326ada882190af49b818d68226fc"
|
|
106
103
|
}
|
package/ts.js
CHANGED
|
@@ -5,9 +5,9 @@ module.exports = {
|
|
|
5
5
|
overrides: [
|
|
6
6
|
{
|
|
7
7
|
extends: [
|
|
8
|
-
// require.resolve('./
|
|
9
|
-
require.resolve('./
|
|
10
|
-
require.resolve('./
|
|
8
|
+
// require.resolve('./dist/es.js'),
|
|
9
|
+
require.resolve('./dist/typescript.js'),
|
|
10
|
+
require.resolve('./dist/prettier.js'),
|
|
11
11
|
],
|
|
12
12
|
files: [`*.+(${EXTENSIONS_WITHOUT_DOT.filter((_) => _.includes('ts')).join('|')})`],
|
|
13
13
|
},
|
package/yml.js
CHANGED
|
File without changes
|
/package/{lib → dist}/es/base.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/es.d.ts
RENAMED
|
File without changes
|
/package/{lib → dist}/es.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/ignore.js
RENAMED
|
File without changes
|
/package/{lib → dist}/jest.d.ts
RENAMED
|
File without changes
|
/package/{lib → dist}/jest.js
RENAMED
|
File without changes
|
/package/{lib → dist}/jsonc.d.ts
RENAMED
|
File without changes
|
/package/{lib → dist}/jsonc.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib → dist}/yml.d.ts
RENAMED
|
File without changes
|
/package/{lib → dist}/yml.js
RENAMED
|
File without changes
|