@autobest-ui/scripts 1.8.2-alpha.2 → 1.9.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/package.json +11 -19
- package/check/eslint-recommended.js +0 -62
- package/check/stylelint-recommended.js +0 -14
- package/check/ts-recommended.json +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobest-ui/scripts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "utils for project tools",
|
|
6
6
|
"bin": {
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
"bin",
|
|
22
22
|
"spaConfig",
|
|
23
23
|
"ssrConfig",
|
|
24
|
-
"common"
|
|
25
|
-
"check"
|
|
24
|
+
"common"
|
|
26
25
|
],
|
|
27
26
|
"keywords": [
|
|
28
27
|
"node",
|
|
29
|
-
"
|
|
28
|
+
"react",
|
|
29
|
+
"SSR",
|
|
30
|
+
"react-script"
|
|
30
31
|
],
|
|
31
32
|
"sideEffects": false,
|
|
32
33
|
"browserslist": {
|
|
@@ -64,8 +65,6 @@
|
|
|
64
65
|
"@loadable/babel-plugin": "5.13.2",
|
|
65
66
|
"@loadable/webpack-plugin": "5.15.2",
|
|
66
67
|
"@soda/friendly-errors-webpack-plugin": "1.8.1",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "5.38.0",
|
|
68
|
-
"@typescript-eslint/parser": "5.38.0",
|
|
69
68
|
"babel-loader": "8.2.4",
|
|
70
69
|
"babel-preset-react-app": "10.0.1",
|
|
71
70
|
"browserslist": "4.20.2",
|
|
@@ -73,12 +72,6 @@
|
|
|
73
72
|
"cross-spawn": "7.0.3",
|
|
74
73
|
"css-loader": "6.7.1",
|
|
75
74
|
"css-minimizer-webpack-plugin": "3.4.1",
|
|
76
|
-
"eslint": "8.23.1",
|
|
77
|
-
"eslint-config-prettier": "8.5.0",
|
|
78
|
-
"eslint-plugin-import": "2.26.0",
|
|
79
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
80
|
-
"eslint-plugin-react": "7.31.8",
|
|
81
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
82
75
|
"eslint-webpack-plugin": "3.2.0",
|
|
83
76
|
"html-webpack-plugin": "5.5.0",
|
|
84
77
|
"ignore-loader": "0.1.2",
|
|
@@ -99,16 +92,15 @@
|
|
|
99
92
|
"style-loader": "3.3.1",
|
|
100
93
|
"terser-webpack-plugin": "5.3.1",
|
|
101
94
|
"ts-node": "9.1.1",
|
|
95
|
+
"typescript": "4.8.3",
|
|
102
96
|
"webpack": "5.70.0",
|
|
103
97
|
"webpack-dev-server": "4.7.4",
|
|
104
98
|
"webpack-merge": "5.8.0",
|
|
105
|
-
"webpack-node-externals": "3.0.0"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
"stylelint-config-prettier-scss": "0.0.1",
|
|
110
|
-
"stylelint-config-standard-scss": "6.1.0",
|
|
99
|
+
"webpack-node-externals": "3.0.0"
|
|
100
|
+
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"eslint": "^8.23.1",
|
|
111
103
|
"typescript": "4.8.3"
|
|
112
104
|
},
|
|
113
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "5f05538f7f7ad0a52c937d6db8e9f5245ffeab3d"
|
|
114
106
|
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
node: true,
|
|
5
|
-
es6: true,
|
|
6
|
-
jest: true
|
|
7
|
-
},
|
|
8
|
-
parser: '@typescript-eslint/parser',
|
|
9
|
-
plugins: ['prettier', '@typescript-eslint'],
|
|
10
|
-
settings: {
|
|
11
|
-
react: {
|
|
12
|
-
version: 'detect'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
parserOptions: {
|
|
16
|
-
project: './tsconfig.json',
|
|
17
|
-
createDefaultProgram: true,
|
|
18
|
-
ecmaVersion: 2018,
|
|
19
|
-
sourceType: 'module'
|
|
20
|
-
},
|
|
21
|
-
extends: [
|
|
22
|
-
'prettier',
|
|
23
|
-
'eslint:recommended',
|
|
24
|
-
'plugin:react/recommended',
|
|
25
|
-
'plugin:import/recommended',
|
|
26
|
-
'plugin:@typescript-eslint/recommended',
|
|
27
|
-
'plugin:import/typescript',
|
|
28
|
-
'plugin:react-hooks/recommended'
|
|
29
|
-
],
|
|
30
|
-
rules: {
|
|
31
|
-
'prettier/prettier': [
|
|
32
|
-
'error',
|
|
33
|
-
{
|
|
34
|
-
printWidth: 80,
|
|
35
|
-
tabWidth: 2,
|
|
36
|
-
singleQuote: true,
|
|
37
|
-
semi: true,
|
|
38
|
-
trailingComma: 'none',
|
|
39
|
-
bracketSpacing: true,
|
|
40
|
-
endOfLine: 'lf',
|
|
41
|
-
arrowParens: 'avoid'
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
// 无意义的constructor
|
|
45
|
-
'@typescript-eslint/no-useless-constructor': 'error',
|
|
46
|
-
// 要求类成员之间有空行
|
|
47
|
-
'@typescript-eslint/lines-between-class-members': 'error',
|
|
48
|
-
// 可以使用require
|
|
49
|
-
'@typescript-eslint/no-var-requires': 0,
|
|
50
|
-
'@typescript-eslint/ban-ts-comment': 0,
|
|
51
|
-
'@typescript-eslint/no-explicit-any': 0,
|
|
52
|
-
// 空函数
|
|
53
|
-
'@typescript-eslint/no-empty-function': 0,
|
|
54
|
-
'no-empty': 0,
|
|
55
|
-
'no-irregular-whitespace': 0,
|
|
56
|
-
'react/prop-types': 0,
|
|
57
|
-
'react/no-unescaped-entities': 0,
|
|
58
|
-
// 导入顺序
|
|
59
|
-
'import/order': 'error',
|
|
60
|
-
'no-console': 'error'
|
|
61
|
-
}
|
|
62
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier-scss', 'stylelint-config-css-modules'],
|
|
3
|
-
rules: {
|
|
4
|
-
'declaration-no-important': true,
|
|
5
|
-
// 在开大括号之前必须有一个空格。
|
|
6
|
-
'block-opening-brace-space-before': 'always',
|
|
7
|
-
'alpha-value-notation': null,
|
|
8
|
-
'scss/no-global-function-names': null,
|
|
9
|
-
'no-descending-specificity': null,
|
|
10
|
-
// 为了兼容css module 小驼峰命名
|
|
11
|
-
'selector-class-pattern': '(^([a-z][a-z0-9]*)(-[a-z0-9]+)*$)|(^[a-z][a-zA-Z0-9]+$)',
|
|
12
|
-
'keyframes-name-pattern': '(^([a-z][_a-z0-9]*)(-[a-z0-9]+)*$)|(^([a-z][a-zA-Z0-9]+)*$)'
|
|
13
|
-
}
|
|
14
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"strict": true,
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"baseUrl": "./",
|
|
6
|
-
"outDir": "./dist/",
|
|
7
|
-
"strictNullChecks": false,
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"experimentalDecorators": true,
|
|
11
|
-
"noUnusedParameters": true,
|
|
12
|
-
"strictPropertyInitialization": false,
|
|
13
|
-
"noUnusedLocals": true,
|
|
14
|
-
"noImplicitAny": false,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"jsx": "react",
|
|
17
|
-
"module": "esnext",
|
|
18
|
-
"target": "es5",
|
|
19
|
-
"lib": [
|
|
20
|
-
"es5",
|
|
21
|
-
"es6",
|
|
22
|
-
"es2015",
|
|
23
|
-
"es2016",
|
|
24
|
-
"es2017",
|
|
25
|
-
"es2018",
|
|
26
|
-
"dom"
|
|
27
|
-
],
|
|
28
|
-
"skipLibCheck": true,
|
|
29
|
-
"allowSyntheticDefaultImports": true
|
|
30
|
-
},
|
|
31
|
-
"exclude": ["node_modules", "config", "build", "dist", "log"]
|
|
32
|
-
}
|