-
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 5a2ec95
Showing
37 changed files
with
14,737 additions
and
22,213 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,29 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
// These deps are symlinked from ./packages/ to node_modules via npm's monorepo support | ||
import node from '@strv/eslint-config-node' | ||
import optional from '@strv/eslint-config-node/optional' | ||
import style from '@strv/eslint-config-node/style' | ||
|
||
/** @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'], languageOptions: { sourceType: 'module' } }, | ||
{ files: ['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.