@dword-design/eslint-config 5.0.11 → 5.0.13
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/dist/create/index.js +3 -1
- package/package.json +1 -1
package/dist/create/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export default (() => {
|
|
|
17
17
|
return {
|
|
18
18
|
extends: [packageName`eslint-config-airbnb-base`, `plugin:${packageName`eslint-plugin-promise`}/recommended`, `plugin:${packageName`eslint-plugin-import`}/recommended`, `plugin:${packageName`@dword-design/eslint-plugin-import-alias`}/recommended`, `plugin:${packageName`eslint-plugin-vue`}/vue3-recommended`, `plugin:${packageName`eslint-plugin-prettier`}/recommended`],
|
|
19
19
|
globals: {
|
|
20
|
+
globalThis: true,
|
|
20
21
|
self: true,
|
|
21
22
|
window: true
|
|
22
23
|
},
|
|
@@ -68,6 +69,7 @@ export default (() => {
|
|
|
68
69
|
checkLoops: false
|
|
69
70
|
}],
|
|
70
71
|
'no-continue': 'off',
|
|
72
|
+
'no-lonely-if': 'off',
|
|
71
73
|
'no-negated-condition': 'error',
|
|
72
74
|
'no-param-reassign': 'off',
|
|
73
75
|
'no-promise-executor-return': 'off',
|
|
@@ -122,13 +124,13 @@ export default (() => {
|
|
|
122
124
|
prev: '*'
|
|
123
125
|
}],
|
|
124
126
|
'prefer-arrow/prefer-arrow-functions': ['error'],
|
|
125
|
-
'prefer-destructuring': 'off',
|
|
126
127
|
[`${packageName`prettier`}/prettier`]: ['error', {
|
|
127
128
|
arrowParens: 'avoid',
|
|
128
129
|
plugins: [packageName`prettier-plugin-compactify`],
|
|
129
130
|
singleQuote: true,
|
|
130
131
|
trailingComma: 'all'
|
|
131
132
|
}],
|
|
133
|
+
'prefer-destructuring': 'off',
|
|
132
134
|
'promise/prefer-await-to-then': 'error',
|
|
133
135
|
'require-await': 'error',
|
|
134
136
|
'simple-import-sort/imports': 'error',
|