Skip to content

Commit

Permalink
chore: bump ESLint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic1048 authored and rainx committed Nov 1, 2024
1 parent 9cb8b5e commit 77e3b95
Show file tree
Hide file tree
Showing 6 changed files with 904 additions and 378 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

41 changes: 0 additions & 41 deletions .eslintrc.cjs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"comment": "chore: bump ESLint to v9",
"type": "none",
"packageName": "@rightcapital/php-parser",
"email": "[email protected]",
"dependentChangeType": "none"
}
14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import rcPreset from '@rightcapital/eslint-config';

const { config } = rcPreset.utils;

export default config(
{
ignores: [
'src/php-parser/types/node',
'src/php-parser/types/types.ts',
'dist',
],
},
...rcPreset.configs.recommended,
);
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"clean": "tsc --build --clean ./tsconfig.build.json",
"commit": "cz",
"fix": "pnpm run fix:eslint && pnpm run fix:prettier",
"fix:eslint": "eslint --report-unused-disable-directives --fix 'src/**/*.ts*'",
"fix:eslint": "eslint --report-unused-disable-directives --fix .",
"fix:prettier": "prettier --write .",
"generate:types": "tsx src/php-parser/generate-types.ts",
"preinstall": "npx only-allow pnpm",
"postinstall": "command -v composer >/dev/null 2>&1 && composer install || echo 'Composer not found, skipping.'",
"lint": "concurrently 'pnpm:lint:*'",
"lint:eslint": "eslint --report-unused-disable-directives 'src/**/*.ts*'",
"lint:eslint": "eslint --report-unused-disable-directives .",
"lint:prettier": "prettier --check .",
"prepare": "husky"
},
Expand All @@ -46,14 +46,14 @@
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@commitlint/cz-commitlint": "19.5.0",
"@rightcapital/eslint-config-javascript": "36.3.0",
"@rightcapital/eslint-config-typescript": "36.3.0",
"@rightcapital/eslint-config": "38.0.0",
"@rightcapital/prettier-config": "7.1.7",
"@types/lodash": "4.17.10",
"@types/mustache": "4.2.5",
"@types/node": "20.16.11",
"beachball": "2.47.1",
"concurrently": "9.0.1",
"eslint": "9.13.0",
"husky": "9.1.6",
"tsx": "4.19.1"
},
Expand Down
Loading

0 comments on commit 77e3b95

Please sign in to comment.