Skip to content

Commit 98306f1

Browse files
author
Thomas Watson
authored
Remove invalid syntax from .eslintrc.js (elastic#129164)
The exclamation mark prefix doesn't have any effect in the `files` list. You instead need to override the matched path later with a different rule in order to change the behavior.
1 parent d6b8e4b commit 98306f1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.eslintrc.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,7 @@ module.exports = {
274274
* Licence headers
275275
*/
276276
{
277-
files: [
278-
'**/*.{js,mjs,ts,tsx}',
279-
'!plugins/**/*',
280-
'!packages/elastic-datemath/**/*',
281-
'!packages/elastic-eslint-config-kibana/**/*',
282-
],
277+
files: ['**/*.{js,mjs,ts,tsx}'],
283278
rules: {
284279
'@kbn/eslint/require-license-header': [
285280
'error',

0 commit comments

Comments
 (0)