@dword-design/eslint-config 5.0.29 → 5.0.31
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 -2
- package/package.json +1 -1
package/dist/create/index.js
CHANGED
|
@@ -107,7 +107,7 @@ export default () => {
|
|
|
107
107
|
'no-restricted-imports': ['error', {
|
|
108
108
|
paths: eslintRestrictedImports
|
|
109
109
|
}],
|
|
110
|
-
'no-restricted-syntax': ['error',
|
|
110
|
+
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
|
|
111
111
|
'no-return-assign': 'off',
|
|
112
112
|
'no-template-curly-in-string': 'off',
|
|
113
113
|
'no-underscore-dangle': 'off',
|
|
@@ -142,13 +142,14 @@ export default () => {
|
|
|
142
142
|
next: 'export',
|
|
143
143
|
prev: '*'
|
|
144
144
|
}],
|
|
145
|
-
'prefer-arrow/prefer-arrow-functions': ['error'],
|
|
146
145
|
[`${packageName`prettier`}/prettier`]: ['error', {
|
|
147
146
|
arrowParens: 'avoid',
|
|
148
147
|
plugins: [packageName`prettier-plugin-compactify`],
|
|
149
148
|
singleQuote: true,
|
|
150
149
|
trailingComma: 'all'
|
|
151
150
|
}],
|
|
151
|
+
'prefer-arrow/prefer-arrow-functions': ['error'],
|
|
152
|
+
// Everything from airbnb except ForOfStatement
|
|
152
153
|
'prefer-destructuring': 'off',
|
|
153
154
|
'require-await': 'error',
|
|
154
155
|
'simple-import-sort/imports': 'error',
|