-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #204 from RightCapitalHQ/feature/eslint-v9
Add support for ESLint v9
- Loading branch information
Showing
66 changed files
with
4,524 additions
and
7,480 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
change/@rightcapital-eslint-config-1bddfa0b-d66f-4645-bbaa-926e37d18d68.json
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,7 @@ | ||
{ | ||
"type": "major", | ||
"comment": "feat: add `@rightcapital/eslint-config` that supports ESLint v9", | ||
"packageName": "@rightcapital/eslint-config", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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,61 @@ | ||
import eslintConfigRightcapital from '@rightcapital/eslint-config'; | ||
import eslintPluginEslintPlugin from 'eslint-plugin-eslint-plugin'; | ||
|
||
const { config } = eslintConfigRightcapital.utils; | ||
|
||
export default config( | ||
{ | ||
/** | ||
* NOTE: | ||
* DO NOT put any other keys other than `ignores` in this object. | ||
* see: https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores | ||
*/ | ||
ignores: [ | ||
// build output | ||
'packages/*/lib', | ||
'.github/actions/*/dist', | ||
|
||
// E2E tests, they contains individual lint config and specific ESLint dependencies | ||
'specs', | ||
], | ||
}, | ||
...eslintConfigRightcapital.configs.recommended, | ||
|
||
// scripts | ||
{ | ||
files: [ | ||
'packages/*/*.{js,cjs,mjs,ts,cts,mts}', // each package's top-level directory files | ||
'scripts/**/*.{js,cjs,mjs}', | ||
'.github/actions/**/*.{js,cjs,mjs}', | ||
], | ||
extends: [ | ||
...eslintConfigRightcapital.configs.script, | ||
...eslintConfigRightcapital.configs.node, | ||
], | ||
}, | ||
|
||
// ----------------------- | ||
// package specific rules | ||
// ----------------------- | ||
|
||
// @rightcapital/eslint-plugin | ||
{ | ||
files: ['packages/eslint-plugin/**/*.ts'], | ||
extends: [eslintPluginEslintPlugin.configs['flat/recommended']], | ||
}, | ||
{ | ||
files: ['packages/eslint-plugin/src/helpers/test/*.ts'], | ||
rules: { | ||
'import-x/no-extraneous-dependencies': [ | ||
'error', | ||
{ devDependencies: true }, | ||
], | ||
}, | ||
}, | ||
|
||
// @rightcapital/lint-eslint-config-rules | ||
{ | ||
files: ['packages/lint-eslint-config-rules/**/*.ts'], | ||
extends: [...eslintConfigRightcapital.configs.script], | ||
}, | ||
); |
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.