- npm: Add eslint-arg script to avoid lint-staged linting all
This commit is contained in:
@@ -52,6 +52,7 @@
|
|||||||
"install-offline": "npm install --prefer-offline --no-audit",
|
"install-offline": "npm install --prefer-offline --no-audit",
|
||||||
"eslint-fix": "eslint --fix --ext js,md,html src",
|
"eslint-fix": "eslint --fix --ext js,md,html src",
|
||||||
"eslint": "eslint --ext js,html,md .",
|
"eslint": "eslint --ext js,html,md .",
|
||||||
|
"eslint-arg": "eslint --ext js,html,md",
|
||||||
"rollup": "rollup -c",
|
"rollup": "rollup -c",
|
||||||
"build-by-config": "rollup -c rollup-config.config.js",
|
"build-by-config": "rollup -c rollup-config.config.js",
|
||||||
"prep-no-core-rollup": "run-s build-html build-by-config",
|
"prep-no-core-rollup": "run-s build-html build-by-config",
|
||||||
@@ -99,9 +100,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
".eslintignore": "npm run eslint --",
|
".eslintignore": "npm run eslint-arg --",
|
||||||
".eslintrc.js": "npm run eslint --",
|
".eslintrc.js": "npm run eslint-arg --",
|
||||||
"src/**/*.{js,md,html}": "npm run eslint --"
|
"src/**/*.{js,md,html}": "npm run eslint-arg --"
|
||||||
},
|
},
|
||||||
"run-if-changed": {
|
"run-if-changed": {
|
||||||
"src": "npm run prep-no-eslint",
|
"src": "npm run prep-no-eslint",
|
||||||
|
|||||||
Reference in New Issue
Block a user