Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkiesel committed Nov 4, 2024
1 parent 07359ba commit b670b54
Show file tree
Hide file tree
Showing 12 changed files with 1,277 additions and 1,879 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ node_modules
*.log
/.vscode
.DS_Store
coverage
.idea
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
33 changes: 0 additions & 33 deletions .huskyrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ packages/prettier-plugin-java/test-samples
packages/prettier-plugin-java/README.md
packages/prettier-plugin-java/dist
CHANGELOG*
.nyc_output
coverage
website/build
website/.docusaurus
75 changes: 75 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
{
ignores: [
"packages/java-parser/samples",
"packages/prettier-plugin-java/samples",
"packages/prettier-plugin-java/test-samples",
"**/node_modules",
"packages/prettier-plugin-java/dist",
"**/babel.config.js",
"website/.docusaurus"
]
},
...compat.extends("eslint:recommended"),
{
languageOptions: {
globals: {
...globals.node
},
ecmaVersion: 2020,
sourceType: "module"
},
rules: {
"no-fallthrough": "off",
curly: "error",
"no-else-return": "error",
"no-inner-declarations": "error",
"no-unneeded-ternary": "error",
"no-useless-return": "error",
"no-console": "error",
"no-var": "error",
"one-var": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"react/no-deprecated": "off",
strict: "error",
"symbol-description": "error",
yoda: [
"error",
"never",
{
exceptRange: true
}
]
}
},
{
files: ["packages/*/test/**/*.js"],
languageOptions: {
globals: {
context: true,
describe: true,
it: true,
before: true,
after: true
}
},
rules: {
strict: "off"
}
}
];
26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"benchmark/*"
],
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"lerna:version": "lerna version --exact --no-private",
"lerna:publish": "lerna publish from-git --yes",
"ci": "yarn build && yarn lint && yarn format:validate && yarn test",
Expand All @@ -31,19 +31,17 @@
]
},
"devDependencies": {
"chai": "^4.3.7",
"eslint": "8.28.0",
"chai": "5.1.2",
"eslint": "9.14.0",
"eslint-config-google": "0.14.0",
"eslint-config-prettier": "9.1.0",
"fs-extra": "^10.1.0",
"husky": "8.0.2",
"klaw-sync": "^6.0.0",
"lerna": "8.1.2",
"lint-staged": "13.0.4",
"mocha": "^10.1.0",
"nyc": "^15.1.0",
"prettier": "3.2.5",
"sinon": "^17.0.1"
},
"dependencies": {}
"fs-extra": "11.2.0",
"husky": "9.1.6",
"klaw-sync": "6.0.0",
"lerna": "8.1.9",
"lint-staged": "15.2.10",
"mocha": "10.8.2",
"prettier": "3.3.3",
"sinon": "19.0.2"
}
}
2 changes: 1 addition & 1 deletion packages/java-parser/scripts/unicode.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function readUnicodeData() {
let lines;
try {
lines = fs.readFileSync(args, "utf-8").split("\n");
} catch (err) {
} catch {
throw Error("Please specify the path of the UnicodeData.txt file");
}
let oldValue; // Algorithm purpose
Expand Down
2 changes: 0 additions & 2 deletions packages/prettier-plugin-java/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ scripts
test
test-samples
samples
coverage
.nyc_output
*.log
src
dist/test
Expand Down
19 changes: 9 additions & 10 deletions packages/prettier-plugin-java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@
},
"devDependencies": {
"@chevrotain/types": "11.0.3",
"@types/chai": "4.3.4",
"@types/fs-extra": "9.0.13",
"@types/jest": "29.2.3",
"@types/klaw-sync": "6.0.1",
"@types/lodash": "4.14.190",
"@types/node": "18.11.9",
"@types/sinon": "10.0.13",
"prettier": "3.2.5",
"ts-node": "10.9.1",
"typescript": "4.9.3"
"@types/chai": "5.0.1",
"@types/fs-extra": "11.0.4",
"@types/jest": "29.5.14",
"@types/klaw-sync": "6.0.5",
"@types/lodash": "4.17.13",
"@types/node": "18.19.64",
"@types/sinon": "17.0.3",
"ts-node": "10.9.2",
"typescript": "5.6.3"
},
"peerDependencies": {
"prettier": "^3.0.0"
Expand Down
Loading

0 comments on commit b670b54

Please sign in to comment.