Skip to content

Commit

Permalink
chore: Re-add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Jan 15, 2024
1 parent 590d39a commit d14aca0
Show file tree
Hide file tree
Showing 4 changed files with 675 additions and 80 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": "@ffflorian/eslint-config",
"overrides": [
{
"plugins": ["@typescript-eslint", "jsdoc", "no-unsanitized", "prettier", "sort-keys-fix", "typescript-sort-keys", "unused-imports", "oxlint"],
"files": "*.ts",
"rules": {
"@typescript-eslint/typedef": "off",
Expand Down
4 changes: 2 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pre-commit:
parallel: false
commands:
prettier:
format:
glob: '*.{json,md,yml,ts}'
run: npx prettier --write {staged_files} && git add {staged_files}
eslint:
lint:
glob: 'src/*.ts'
run: npx oxlint --fix {staged_files} && git add {staged_files}
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,24 @@
"@evilmartians/lefthook": "1.5.5",
"@ffflorian/eslint-config": "0.10.1",
"@ffflorian/prettier-config": "0.3.1",
"@types/eslint": "8.56.2",
"@types/fs-extra": "11.0.4",
"@types/jsonabc": "2.3.3",
"@types/lodash": "4.14.202",
"@types/node": "~20",
"@types/prettier": "3.0.0",
"@types/semver": "7.5.6",
"@typescript-eslint/eslint-plugin": "6.18.0",
"@typescript-eslint/parser": "6.18.0",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
"babel-eslint": "10.1.0",
"cross-env": "7.0.3",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jasmine": "4.1.3",
"eslint-plugin-jsdoc": "48.0.2",
"eslint-plugin-no-unsanitized": "4.0.2",
"eslint-plugin-oxlint": "0.2.0",
"eslint-plugin-prettier": "5.1.2",
"eslint-plugin-simple-import-sort": "10.0.0",
"eslint-plugin-sort-keys-fix": "1.1.2",
Expand All @@ -52,22 +55,21 @@
"packageManager": "[email protected]",
"prettier": "@ffflorian/prettier-config",
"repository": "https://github.com/ffflorian/schemastore-updater.git",
"resolutions": {
"minimatch": "^3"
},
"scripts": {
"build": "tsc",
"clear": "rimraf dist",
"check-disabled": "yarn start check-disabled",
"fix-lockfile": "yarn start fix-lockfile",
"dist": "yarn clear && yarn build",
"fix": "yarn fix:other && yarn fix:ts",
"fix:other": "yarn prettier --write",
"fix:other": "yarn format --write",
"fix:ts": "yarn lint:ts --fix",
"lint": "yarn lint:ts && yarn lint:other",
"lint:other": "yarn prettier --list-different",
"lint:ts": "oxlint --ignore-path .gitignore src/",
"prettier": "prettier \"*.{json,md,yml}\"",
"lint:other": "yarn format --list-different",
"lint:ts": "yarn lint:oxlint && yarn lint:eslint",
"lint:oxlint": "oxlint --ignore-path .gitignore src/",
"lint:eslint": "eslint --ignore-path .gitignore --ext .ts src/",
"format": "prettier \"*.{json,md,yml}\"",
"start": "cross-env NODE_DEBUG='schemastore-updater/*' ts-node src/cli.ts",
"test": "exit 0",
"update": "yarn start update"
Expand Down
Loading

0 comments on commit d14aca0

Please sign in to comment.