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",
"*.{json,md}": "prettier --write"
"!(out/**/*)*.{js,jsx,ts,tsx}": "npm run eslint:base -- --fix",
"!(out/**/*)*.{js,json,jsx,md,ts,tsx}": "prettier --write"
}

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

Loading…
Cancel
Save