-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: The ruleset has been migrated to ESLint flat config format and is therefore not compatible with ESLint v7 and using it with v8 requires a feature flag (`ESLINT_USE_FLAT_CONFIG=true`). Project configuration will also need to be completely reworked to use the new ruleset.
- Loading branch information
1 parent
e044364
commit 8ca590a
Showing
37 changed files
with
2,179 additions
and
7,111 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.