Skip to content

Commit 77e3b95

Browse files
frantic1048rainx
authored andcommitted
chore: bump ESLint to v9
1 parent 9cb8b5e commit 77e3b95

6 files changed

+904
-378
lines changed

.eslintignore

-4
This file was deleted.

.eslintrc.cjs

-41
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"comment": "chore: bump ESLint to v9",
3+
"type": "none",
4+
"packageName": "@rightcapital/php-parser",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none"
7+
}

eslint.config.mjs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import rcPreset from '@rightcapital/eslint-config';
2+
3+
const { config } = rcPreset.utils;
4+
5+
export default config(
6+
{
7+
ignores: [
8+
'src/php-parser/types/node',
9+
'src/php-parser/types/types.ts',
10+
'dist',
11+
],
12+
},
13+
...rcPreset.configs.recommended,
14+
);

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"clean": "tsc --build --clean ./tsconfig.build.json",
2121
"commit": "cz",
2222
"fix": "pnpm run fix:eslint && pnpm run fix:prettier",
23-
"fix:eslint": "eslint --report-unused-disable-directives --fix 'src/**/*.ts*'",
23+
"fix:eslint": "eslint --report-unused-disable-directives --fix .",
2424
"fix:prettier": "prettier --write .",
2525
"generate:types": "tsx src/php-parser/generate-types.ts",
2626
"preinstall": "npx only-allow pnpm",
2727
"postinstall": "command -v composer >/dev/null 2>&1 && composer install || echo 'Composer not found, skipping.'",
2828
"lint": "concurrently 'pnpm:lint:*'",
29-
"lint:eslint": "eslint --report-unused-disable-directives 'src/**/*.ts*'",
29+
"lint:eslint": "eslint --report-unused-disable-directives .",
3030
"lint:prettier": "prettier --check .",
3131
"prepare": "husky"
3232
},
@@ -46,14 +46,14 @@
4646
"@commitlint/cli": "19.5.0",
4747
"@commitlint/config-conventional": "19.5.0",
4848
"@commitlint/cz-commitlint": "19.5.0",
49-
"@rightcapital/eslint-config-javascript": "36.3.0",
50-
"@rightcapital/eslint-config-typescript": "36.3.0",
49+
"@rightcapital/eslint-config": "38.0.0",
5150
"@rightcapital/prettier-config": "7.1.7",
5251
"@types/lodash": "4.17.10",
5352
"@types/mustache": "4.2.5",
5453
"@types/node": "20.16.11",
5554
"beachball": "2.47.1",
5655
"concurrently": "9.0.1",
56+
"eslint": "9.13.0",
5757
"husky": "9.1.6",
5858
"tsx": "4.19.1"
5959
},

0 commit comments

Comments
 (0)