@meteorlxy/eslint-config 2.12.0 → 2.16.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/lib/index.js +32 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -30,6 +30,22 @@ module.exports = {
|
|
|
30
30
|
*/
|
|
31
31
|
'no-await-in-loop': 'off',
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Allow bitwise operators
|
|
35
|
+
*
|
|
36
|
+
* @see https://eslint.org/docs/rules/no-bitwise
|
|
37
|
+
* @see https://github.com/airbnb/javascript/blob/366bfa66380c08304101c6add46355696e90b348/packages/eslint-config-airbnb-base/rules/style.js#L275-L277
|
|
38
|
+
*/
|
|
39
|
+
'no-bitwise': 'off',
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Allow continue statements
|
|
43
|
+
*
|
|
44
|
+
* @see https://eslint.org/docs/rules/no-continue
|
|
45
|
+
* @see https://github.com/airbnb/javascript/blob/366bfa66380c08304101c6add46355696e90b348/packages/eslint-config-airbnb-base/rules/style.js#L279-L281
|
|
46
|
+
*/
|
|
47
|
+
'no-continue': 'off',
|
|
48
|
+
|
|
33
49
|
/**
|
|
34
50
|
* Override airbnb-base rules to allow for-of and for-in
|
|
35
51
|
*
|
|
@@ -80,6 +96,21 @@ module.exports = {
|
|
|
80
96
|
},
|
|
81
97
|
],
|
|
82
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Override airbnb-base rules to enforce .mjs extension
|
|
101
|
+
*
|
|
102
|
+
* @see https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
|
|
103
|
+
* @see https://github.com/airbnb/javascript/blob/1ca21aba799699ba556bed058e3900514a9fbee3/packages/eslint-config-airbnb-base/rules/imports.js#L138-L142
|
|
104
|
+
*/
|
|
105
|
+
'import/extensions': [
|
|
106
|
+
airbnbRulesImports.rules['import/extensions'][0],
|
|
107
|
+
airbnbRulesImports.rules['import/extensions'][1],
|
|
108
|
+
{
|
|
109
|
+
...airbnbRulesImports.rules['import/extensions'][2],
|
|
110
|
+
mjs: 'always',
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
|
|
83
114
|
/**
|
|
84
115
|
* Add config files of some other tools
|
|
85
116
|
*
|
|
@@ -94,6 +125,7 @@ module.exports = {
|
|
|
94
125
|
.devDependencies,
|
|
95
126
|
'**/.vitepress/*.js',
|
|
96
127
|
'**/.vuepress/*.js',
|
|
128
|
+
'**/build.config.js',
|
|
97
129
|
'**/tsup.config.js',
|
|
98
130
|
'**/vite.config.js',
|
|
99
131
|
'**/vitest.config.js',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "82455b53e741ee30f0d7f38acb5b74fe801f5deb"
|
|
29
29
|
}
|