chore(striker-ui): revise scripts for lint and quick-fix

main
Tsu-ba-me 3 years ago
parent 9d4ab524a5
commit 8c60aaaf5f
  1. 4
      striker-ui/.lintstagedrc.json
  2. 9
      striker-ui/package.json

@ -1,4 +1,4 @@
{ {
"!(out/**/*)*.{js,jsx,ts,tsx}": "npm run lint -- --fix", "!(out/**/*)*.{js,jsx,ts,tsx}": "npm run eslint:base -- --fix",
"*.{json,md}": "prettier --write" "!(out/**/*)*.{js,json,jsx,md,ts,tsx}": "prettier --write"
} }

@ -5,11 +5,12 @@
"scripts": { "scripts": {
"build": "next build && next export", "build": "next build && next export",
"dev": "next dev", "dev": "next dev",
"lint": "eslint --config .eslintrc.json --ext js,jsx,ts,tsx --max-warnings=0", "eslint:base": "eslint --config .eslintrc.json --ext js,jsx,ts,tsx --max-warnings=0",
"lint_next": "next lint", "lint": "npm run eslint:base -- . && npm run prettier:base -- --check",
"lint:dryrun": "npm run lint -- .", "lint:next": "next lint",
"lint:fix": "npm run lint -- --fix .", "lint:fix": "npm run eslint:base -- --fix . && npm run prettier:base -- --write",
"postinstall": "cd .. && husky install striker-ui/.husky", "postinstall": "cd .. && husky install striker-ui/.husky",
"prettier:base": "prettier './!(out)/**/*.{js,json,jsx,md,ts,tsx}'",
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {

Loading…
Cancel
Save