-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint): eslint v9 and shared flat config [KHCP-11627] (#301)
* feat(eslint): eslint v9 and shared flat config [KHCP-11627] * chore: remove comments
- Loading branch information
1 parent
0b6b393
commit 5c2e20b
Showing
7 changed files
with
7,002 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import eslintKongUiConfig from '@kong/eslint-config-kong-ui' | ||
import eslintKongUiConfigJson from '@kong/eslint-config-kong-ui/json' | ||
|
||
export default [ | ||
...eslintKongUiConfig, | ||
// Only apply the shared JSON config to files that match the given pattern | ||
...eslintKongUiConfigJson.map(config => ({ | ||
...config, | ||
files: ['tokens/**/*.json'], | ||
})), | ||
{ | ||
files: [ | ||
'**/*.{js,cjs,jsx}', | ||
], | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
}, | ||
}, | ||
// Ignore the sort order for the breakpoint tokens so they can be ordered from smallest to largest | ||
{ | ||
files: ['tokens/source/breakpoint/**/*.json'], | ||
rules: { | ||
'jsonc/sort-keys': 'off', | ||
}, | ||
}, | ||
] |
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
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
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
Oops, something went wrong.