This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(*-typescript): [eslint v6] overrides
- Loading branch information
1 parent
12e6b82
commit c78e656
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: ['@clark/ember', '@clark/typescript'] | ||
extends: ['@clark/ember', '@clark/typescript'], | ||
|
||
/** | ||
* Since the order of application is `ember` and _then_ `typescript`, rules | ||
* set in `typescript`, override overrides in `ember`. While we in general | ||
* want any regular rules in `typescript` to override any regular rules in | ||
* `ember`, we want the overrides in `ember` to take effect. | ||
* | ||
* To achieve this, we include the overrides again. | ||
* | ||
* @see https://eslint.org/docs/user-guide/migrating-to-6.0.0#-overrides-in-an-extended-config-file-can-now-be-overridden-by-a-parent-config-file | ||
*/ | ||
overrides: require('@clark/eslint-config-ember').overrides | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters