-
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.
feat: add
@rightcapital/eslint-config
that supports ESLint v9
resolves #128
- Loading branch information
1 parent
11f0390
commit 614f250
Showing
55 changed files
with
8,768 additions
and
1,241 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-base-389da89d-18b6-4255-9590-31cd93841d81.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": "none", | ||
"comment": "feat: add `@rightcapital/eslint-config` that supports ESLint v9", | ||
"packageName": "@rightcapital/eslint-config-base", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@rightcapital-eslint-config-cd2767f8-32a2-475c-8110-9b14a87a3512.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" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@rightcapital-eslint-config-javascript-6511ef06-f36b-4d0e-8fcb-f2f72c4211b1.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": "none", | ||
"comment": "feat: add `@rightcapital/eslint-config` that supports ESLint v9", | ||
"packageName": "@rightcapital/eslint-config-javascript", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@rightcapital-eslint-config-typescript-78196c26-03c1-4058-9b64-fc290b95add3.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": "none", | ||
"comment": "feat: add `@rightcapital/eslint-config` that supports ESLint v9", | ||
"packageName": "@rightcapital/eslint-config-typescript", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
7 changes: 7 additions & 0 deletions
7
...ge/@rightcapital-eslint-config-typescript-react-1ed7f4c8-2328-47ef-b72a-f6f254cc2605.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": "none", | ||
"comment": "feat: add `@rightcapital/eslint-config` that supports ESLint v9", | ||
"packageName": "@rightcapital/eslint-config-typescript-react", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
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
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 |
---|---|---|
|
@@ -35,10 +35,12 @@ | |
"devDependencies": { | ||
"@rightcapital/tsconfig": "workspace:*", | ||
"@types/confusing-browser-globals": "1.0.3", | ||
"@types/semver": "7.5.8" | ||
"@types/eslint": "8.56.10", | ||
"@types/semver": "7.5.8", | ||
"eslint": "8.57.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^8.23.1 || ^9.0.0" | ||
"eslint": "^8.23.1" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
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
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,63 @@ | ||
{ | ||
"name": "@rightcapital/eslint-config", | ||
"version": "36.3.0", | ||
"description": "ESLint Config for RightCapital", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/RightCapitalHQ/frontend-style-guide.git", | ||
"directory": "packages/eslint-config" | ||
}, | ||
"license": "MIT", | ||
"type": "module", | ||
"exports": "./lib/index.js", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
"prebuild": "pnpm run clean", | ||
"build": "tsc --build", | ||
"clean": "tsc --build --clean", | ||
"prepack": "pnpm run build" | ||
}, | ||
"dependencies": { | ||
"@eslint-react/eslint-plugin": "1.9.0", | ||
"@rightcapital/eslint-plugin": "workspace:*", | ||
"@stylistic/eslint-plugin": "2.9.0", | ||
"@typescript-eslint/utils": "8.0.1", | ||
"confusing-browser-globals": "1.0.11", | ||
"eslint-import-resolver-typescript": "3.6.1", | ||
"eslint-plugin-import-x": "4.3.1", | ||
"eslint-plugin-jsx-a11y": "6.7.1", | ||
"eslint-plugin-lodash": "8.0.0", | ||
"eslint-plugin-n": "17.10.2", | ||
"eslint-plugin-react-hooks": "4.6.2", | ||
"eslint-plugin-simple-import-sort": "12.1.1", | ||
"eslint-plugin-unicorn": "55.0.0", | ||
"globals": "15.10.0", | ||
"typescript-eslint": "8.0.1" | ||
}, | ||
"devDependencies": { | ||
"@rightcapital/tsconfig": "workspace:*", | ||
"@types/confusing-browser-globals": "1.0.3", | ||
"@types/eslint-plugin-jsx-a11y": "6.9.0", | ||
"@types/semver": "7.5.8" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=9", | ||
"typescript": "^5.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"typescript": { | ||
"optional": true | ||
} | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
} | ||
} |
Oops, something went wrong.