Skip to content

Commit

Permalink
Scripts: Added temporary workaround for the default config used with …
Browse files Browse the repository at this point in the history
…`lint-js` command (#17744)
  • Loading branch information
gziolo committed Oct 15, 2019
1 parent 36a5832 commit d7f86a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Master

### Bug Fixes

- Added a temporary workaround for the default config used with `lint-js` command. It uses linting rules for both e2e and unit tests with all files until override files globbing logic is fixed when using `eslint` with `--config` (related [issue](https://github.com/eslint/eslint/issues/11558)).

## 5.0.0 (2019-09-16)

### Breaking Changes
Expand Down
10 changes: 9 additions & 1 deletion packages/scripts/config/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
module.exports = {
root: true,
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
extends: [
'plugin:@wordpress/eslint-plugin/recommended',

// Temporary workaround to use linting rules for both e2e and unit tests with all files
// until override files globbing logic is fixed when using with --config.
// @see https://github.com/eslint/eslint/issues/11558
'plugin:@wordpress/eslint-plugin/test-e2e',
'plugin:@wordpress/eslint-plugin/test-unit',
],
};

0 comments on commit d7f86a3

Please sign in to comment.