@dword-design/eslint-config 5.0.25 → 5.0.27
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 +7 -2
- package/package.json +1 -1
package/dist/create/index.js
CHANGED
|
@@ -74,7 +74,7 @@ export default () => {
|
|
|
74
74
|
'import/no-commonjs': 'error',
|
|
75
75
|
'import/no-dynamic-require': 'off',
|
|
76
76
|
'import/no-extraneous-dependencies': ['error', {
|
|
77
|
-
devDependencies: ['**/*.spec.js', baseConfig.testRunner === 'playwright' ? 'playwright.config.js' : 'global-test-hooks.js']
|
|
77
|
+
devDependencies: ['**/*.spec.js', ...(baseConfig.testRunner === 'playwright' ? ['fixtures/**', 'playwright.config.js'] : ['global-test-hooks.js'])]
|
|
78
78
|
}],
|
|
79
79
|
'import/order': 'off',
|
|
80
80
|
'import/prefer-default-export': 'off',
|
|
@@ -165,6 +165,11 @@ export default () => {
|
|
|
165
165
|
xml: true
|
|
166
166
|
})
|
|
167
167
|
}],
|
|
168
|
+
...(baseConfig.testRunner === 'playwright' && {
|
|
169
|
+
'playwright/valid-title': ['error', {
|
|
170
|
+
ignoreTypeOfTestName: true
|
|
171
|
+
}]
|
|
172
|
+
}),
|
|
168
173
|
'vue/attributes-order': ['error', {
|
|
169
174
|
alphabetical: true
|
|
170
175
|
}],
|
|
@@ -172,7 +177,7 @@ export default () => {
|
|
|
172
177
|
'vue/order-in-components': 'off',
|
|
173
178
|
'vue/prefer-true-attribute-shorthand': 'error',
|
|
174
179
|
'vue/require-default-prop': 'off',
|
|
175
|
-
'vue/require-prop-types': 'off'
|
|
180
|
+
'vue/require-prop-types': 'off' // Complains about title not being a string if variable is passed
|
|
176
181
|
},
|
|
177
182
|
settings: {
|
|
178
183
|
'import/resolver': {
|