-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support ESLint flat config (#5270)
- Loading branch information
Showing
48 changed files
with
2,609 additions
and
33 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
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
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,13 @@ | ||
import type { Linter } from 'eslint'; | ||
|
||
import { plugin } from './cspell-eslint-plugin.cjs'; | ||
export * as recommended from './recommended.cjs'; | ||
|
||
export const debug: Linter.FlatConfig = { | ||
plugins: { | ||
'@cspell': plugin, | ||
}, | ||
rules: { | ||
'@cspell/spellchecker': ['warn', { debugMode: true }], | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export type { Options } from '../common/options.cjs'; | ||
export { configs, rules } from './cspell-eslint-plugin.cjs'; | ||
import { plugin } from './cspell-eslint-plugin.cjs'; | ||
export { configs, meta, rules } from './cspell-eslint-plugin.cjs'; | ||
export default plugin; |
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,15 @@ | ||
import type { Linter } from 'eslint'; | ||
|
||
import { plugin } from './cspell-eslint-plugin.cjs'; | ||
|
||
const config: Linter.FlatConfig = { | ||
plugins: { | ||
'@cspell': plugin, | ||
}, | ||
rules: { | ||
'@cspell/spellchecker': ['warn', {}], | ||
}, | ||
}; | ||
|
||
export const plugins = config.plugins; | ||
export const rules = config.rules; |
Oops, something went wrong.