@w5s/eslint-config 1.0.0-alpha.24 → 1.0.0-alpha.27
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/es.js +1 -1
- package/package.json +24 -17
- package/rules/base.js +4 -0
package/es.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.27",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "
|
|
16
|
+
"url": "git@github.com:w5s/project-config.git",
|
|
17
17
|
"directory": "packages/eslint-config"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
@@ -24,11 +24,15 @@
|
|
|
24
24
|
"rules/*.js"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "npm
|
|
27
|
+
"build": "concurrently \"npm:build:*\" ",
|
|
28
28
|
"build:empty": ":",
|
|
29
|
+
"clean": "concurrently \"npm:clean:*\" \":\"",
|
|
29
30
|
"docs": "md-magic --path '**/*.md' --ignore='node_modules'",
|
|
30
|
-
"format": "
|
|
31
|
-
"
|
|
31
|
+
"format": "concurrently \"npm:format:*\" \":\"",
|
|
32
|
+
"format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json",
|
|
33
|
+
"lint": "concurrently \"npm:lint:*\" \":\"",
|
|
34
|
+
"lint:src": "eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json",
|
|
35
|
+
"prepare": "concurrently \"npm:prepare:*\" \":\"",
|
|
32
36
|
"spellcheck": "cspell --no-progress '**'",
|
|
33
37
|
"test": "scripts/test"
|
|
34
38
|
},
|
|
@@ -41,9 +45,9 @@
|
|
|
41
45
|
"__tests__"
|
|
42
46
|
],
|
|
43
47
|
"dependencies": {
|
|
44
|
-
"@babel/
|
|
45
|
-
"@babel/
|
|
46
|
-
"@
|
|
48
|
+
"@babel/core": "*",
|
|
49
|
+
"@babel/eslint-parser": "*",
|
|
50
|
+
"@rushstack/eslint-patch": "^1.1.0",
|
|
47
51
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
48
52
|
"@typescript-eslint/parser": "^5.0.0",
|
|
49
53
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
@@ -57,23 +61,23 @@
|
|
|
57
61
|
"eslint-plugin-promise": "^6.0.0",
|
|
58
62
|
"eslint-plugin-react": "^7.28.0",
|
|
59
63
|
"eslint-plugin-total-functions": "^6.0.0",
|
|
60
|
-
"eslint-plugin-unicorn": "^
|
|
64
|
+
"eslint-plugin-unicorn": "^43.0.0"
|
|
61
65
|
},
|
|
62
66
|
"devDependencies": {
|
|
63
|
-
"@babel/eslint-parser": "7.18.
|
|
64
|
-
"@types/eslint": "8.4.
|
|
67
|
+
"@babel/eslint-parser": "7.18.9",
|
|
68
|
+
"@types/eslint": "8.4.5",
|
|
65
69
|
"@types/eslint-plugin-prettier": "^3.1.0",
|
|
66
|
-
"@types/prettier": "2.
|
|
67
|
-
"@types/react": "
|
|
68
|
-
"@typescript-eslint/parser": "5.
|
|
69
|
-
"eslint": "8.
|
|
70
|
+
"@types/prettier": "2.7.0",
|
|
71
|
+
"@types/react": "18.0.17",
|
|
72
|
+
"@typescript-eslint/parser": "5.33.0",
|
|
73
|
+
"eslint": "8.21.0",
|
|
70
74
|
"eslint-config-prettier": "8.5.0",
|
|
71
75
|
"eslint-index": "1.5.0",
|
|
72
76
|
"prettier": "2.7.1",
|
|
73
77
|
"react": "18.2.0"
|
|
74
78
|
},
|
|
75
79
|
"peerDependencies": {
|
|
76
|
-
"eslint": "
|
|
80
|
+
"eslint": "8.x",
|
|
77
81
|
"prettier": "2.x",
|
|
78
82
|
"typescript": "4.x"
|
|
79
83
|
},
|
|
@@ -82,8 +86,11 @@
|
|
|
82
86
|
"optional": true
|
|
83
87
|
}
|
|
84
88
|
},
|
|
89
|
+
"engines": {
|
|
90
|
+
"node": ">=16.0.0"
|
|
91
|
+
},
|
|
85
92
|
"publishConfig": {
|
|
86
93
|
"access": "public"
|
|
87
94
|
},
|
|
88
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "16bf06c5e8e07a18db9da5f6a548727cd164590c"
|
|
89
96
|
}
|
package/rules/base.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
const { concatESConfig, off, error } = require('./_rule.js');
|
|
2
2
|
|
|
3
|
+
// Fix eslint shareable config (https://github.com/eslint/eslint/issues/3458)
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
require('@rushstack/eslint-patch/modern-module-resolution.js');
|
|
6
|
+
|
|
3
7
|
const baseConfig = concatESConfig(
|
|
4
8
|
// @ts-ignore
|
|
5
9
|
require('eslint-config-airbnb-base/rules/best-practices'),
|