-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat: migrate to FlatConfig
#64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
e2ddf6a
4081284
8f8ca80
f7dce14
99f6137
c622c60
ebd3aae
56eedec
2de9ebd
8c14a72
eec30e9
47d7f34
40723c8
3194fff
53a002e
69f9bdb
0544bdd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,12 +21,13 @@ | |
| ], | ||
| "license": "MIT", | ||
| "peerDependencies": { | ||
| "eslint": ">= 8.23.0" | ||
| "eslint": ">= 9.10.0" | ||
| }, | ||
| "dependencies": { | ||
| "eslint-plugin-n": "^17.9.0", | ||
| "@typescript-eslint/eslint-plugin": "^7.15.0", | ||
| "@typescript-eslint/parser": "^7.15.0" | ||
| "@eslint/js": "^9.10.0", | ||
| "eslint-plugin-n": "^17.10.3", | ||
| "globals": "^15.9.0", | ||
| "typescript-eslint": "^8.6.0" | ||
|
||
| }, | ||
| "engines": { | ||
| "node": ">=18" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| module.exports = { | ||
| extends: './eslint.js', | ||
| import eslint from './eslint'; | ||
| import globals from 'globals'; | ||
|
|
||
| const testConfig = { | ||
| languageOptions: { | ||
| globals: { | ||
| ...globals.mocha | ||
| }, | ||
| }, | ||
| rules: { | ||
| 'no-unused-expressions': 'off' | ||
| }, | ||
| env: { | ||
| mocha: true | ||
| } | ||
| }; | ||
|
|
||
| export default [ | ||
| eslint, | ||
| testConfig, | ||
| ]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| module.exports = { | ||
| extends: './ts.js', | ||
| import tsJs from './tsts'; | ||
uiolee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| import globals from 'globals'; | ||
|
|
||
| const tsTestConfig = { | ||
| languageOptions: { | ||
| globals: { | ||
| ...globals.mocha | ||
| }, | ||
| }, | ||
| rules: { | ||
| 'no-unused-expressions': 'off' | ||
| }, | ||
| env: { | ||
| mocha: true | ||
| } | ||
| }; | ||
|
|
||
| export default [ | ||
| tsJs, | ||
| tsTestConfig, | ||
| ]; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,29 @@ | ||
| module.exports = { | ||
| parser: '@typescript-eslint/parser', | ||
| plugins: ['@typescript-eslint'], | ||
| extends: [ | ||
| './eslint.js', | ||
| 'plugin:@typescript-eslint/recommended' | ||
| ], | ||
| import tseslint from 'typescript-eslint'; | ||
| import nodePlugin from 'eslint-plugin-n'; | ||
| import eslint from './eslint'; | ||
|
|
||
| const nodeConfig = { | ||
| rules: { | ||
| 'n/no-unsupported-features/es-syntax': ['error', { 'ignores': ['modules'] }], | ||
| 'n/no-missing-import': ['error', { 'tryExtensions': ['.js', '.ts'] }] | ||
| } | ||
| }; | ||
| }, | ||
| } | ||
|
|
||
| const tslintConfig = tseslint.config({ | ||
| plugins: { | ||
| '@typescript-eslint': tseslint.plugin, | ||
| }, | ||
| languageOptions: { | ||
| parser: tseslint.parser, | ||
uiolee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| parserOptions: { | ||
| project: true, | ||
| }, | ||
| }, | ||
| }); | ||
|
|
||
| export default [ | ||
| eslint, | ||
| ...nodePlugin.configs["flat/mixed-esm-and-cjs"], | ||
| tslintConfig, | ||
uiolee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| nodeConfig, | ||
| ]; | ||
Uh oh!
There was an error while loading. Please reload this page.