@nice-move/eslint-config-base 0.5.69 → 0.5.70
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/lib/base.cjs +2 -0
- package/lib/mini.cjs +13 -3
- package/lib/node.cjs +2 -2
- package/package.json +5 -5
package/lib/base.cjs
CHANGED
package/lib/mini.cjs
CHANGED
|
@@ -95,16 +95,26 @@ function generate({ miniprogramRoot, pluginRoot, cloudfunctionRoot }) {
|
|
|
95
95
|
files: excludedFiles,
|
|
96
96
|
env: {
|
|
97
97
|
browser: false,
|
|
98
|
+
es2021: false,
|
|
99
|
+
es2020: false,
|
|
100
|
+
es2017: false,
|
|
101
|
+
es6: false,
|
|
102
|
+
},
|
|
103
|
+
parserOptions: {
|
|
104
|
+
ecmaVersion: 5,
|
|
98
105
|
},
|
|
99
106
|
globals: {
|
|
100
107
|
require: 'readonly',
|
|
101
108
|
module: 'readonly',
|
|
102
109
|
},
|
|
103
110
|
rules: {
|
|
104
|
-
'no-
|
|
111
|
+
'import/no-commonjs': 0,
|
|
112
|
+
'no-var': 0,
|
|
105
113
|
'object-shorthand': ['error', 'never'],
|
|
106
|
-
'
|
|
107
|
-
'
|
|
114
|
+
'prefer-spread': 0,
|
|
115
|
+
'prefer-template': 0,
|
|
116
|
+
'unicorn/prefer-includes': 0,
|
|
117
|
+
'unicorn/prefer-module': 0,
|
|
108
118
|
},
|
|
109
119
|
},
|
|
110
120
|
].filter(Boolean);
|
package/lib/node.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-move/eslint-config-base",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.70",
|
|
4
4
|
"description": "A `eslint` config for best practice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"main": "index.cjs",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
38
|
-
"@typescript-eslint/parser": "^5.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
38
|
+
"@typescript-eslint/parser": "^5.4.0",
|
|
39
39
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
40
40
|
"eslint-config-prettier": "^8.3.0",
|
|
41
41
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"eslint-plugin-node": "^11.1.0",
|
|
46
46
|
"eslint-plugin-promise": "^5.1.1",
|
|
47
47
|
"eslint-plugin-sonarjs": "^0.10.0",
|
|
48
|
-
"eslint-plugin-unicorn": "^
|
|
49
|
-
"espree": "9.
|
|
48
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
49
|
+
"espree": "9.1.0",
|
|
50
50
|
"settingz": "^0.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|