-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: partial migration to flat config (WIP)
- Loading branch information
1 parent
e044364
commit 7a78012
Showing
37 changed files
with
2,165 additions
and
7,160 deletions.
There are no files selected for viewing
File renamed without changes.
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 node from './packages/eslint-config-node/index.mjs' | ||
import optional from './packages/eslint-config-node/optional.mjs' | ||
import style from './packages/eslint-config-node/style.mjs' | ||
|
||
/** @type {import("eslint").Linter.FlatConfig} */ | ||
const common = { | ||
linterOptions: { | ||
reportUnusedDisableDirectives: true, | ||
}, | ||
ignores: [ | ||
'node_modules', | ||
'!.*.js', | ||
], | ||
} | ||
|
||
/** @type {Array<import("eslint").Linter.FlatConfig>} */ | ||
const configs = [ | ||
common, | ||
node, | ||
optional, | ||
style, | ||
{ files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } }, | ||
{ files: ['**/*.mjs', 'eslint.config.js'], languageOptions: { sourceType: 'module' } }, | ||
] | ||
|
||
export default configs |
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.