Skip to content

Commit

Permalink
ci: improve lint script fp-52
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove committed Dec 5, 2023
1 parent b888a93 commit 97ad11a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'*': npm run lint:fs && npm run lint:editorconfig
'*.{json,md,yml,js,ts,d.ts}': prettier --write,
'*.ts': npm run lint:ts
'*.{json,md,yml,js}': prettier --write,
'*.js': npm run lint:js && npm run lint:type
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
},
"scripts": {
"postinstall": "npx simple-git-hooks",
"format": "prettier --write \"**/*.{json,md,yml,js,ts,d.ts}\"",
"format": "prettier --write \"**/*.{json,md,yml,js}\"",
"lint:fs": "ls-lint",
"lint:editorconfig": "editorconfig-checker",
"lint:format": "prettier --check \"**/*.{json,md,yml,js,ts,d.ts}\"",
"lint:editor": "editorconfig-checker",
"lint:format": "prettier --check \"**/*.{json,md,yml,js}\"",
"lint:js": "eslint \"**/*.js\"",
"lint:type": "tsc --noEmit",
"lint": "npm run lint:fs && npm run lint:editorconfig && npm run lint:format && npm run lint:ts",
"lint": "npm run lint:fs && npm run lint:editor && npm run lint:format && npm run lint:js && npm run lint:type",
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest",
"test:watch": "jest --watch",
"build:ts": "tsc && tscpaths -p tsconfig.json -s ./src -o ./build",
Expand Down

0 comments on commit 97ad11a

Please sign in to comment.