Skip to content

Commit

Permalink
Remove invalid syntax from .eslintrc.js (#129164) (#129283)
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 98306f1)

Co-authored-by: Thomas Watson <[email protected]>
  • Loading branch information
kibanamachine and Thomas Watson authored Apr 4, 2022
1 parent 0cd2b73 commit 1a56bb2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,7 @@ module.exports = {
* Licence headers
*/
{
files: [
'**/*.{js,mjs,ts,tsx}',
'!plugins/**/*',
'!packages/elastic-datemath/**/*',
'!packages/elastic-eslint-config-kibana/**/*',
],
files: ['**/*.{js,mjs,ts,tsx}'],
rules: {
'@kbn/eslint/require-license-header': [
'error',
Expand Down

0 comments on commit 1a56bb2

Please sign in to comment.