Enable stylelint for the entire project
This commit is contained in:
Luigi Teschio 2021-12-03 10:07:51 +01:00 committed by GitHub
parent e8b4b3467c
commit c2ebf26c1c
2 changed files with 3 additions and 3 deletions

View File

@ -43,8 +43,8 @@
"fix-package-lock": "./bin/fix-package-lock.sh", "fix-package-lock": "./bin/fix-package-lock.sh",
"lint": "npm run lint:php && npm run lint:css && npm run lint:js", "lint": "npm run lint:php && npm run lint:css && npm run lint:js",
"lint:ci": "npm run lint:js && npm run lint:css", "lint:ci": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint 'assets/**/*.scss'", "lint:css": "stylelint '**/*.scss'",
"lint:css-fix": "stylelint 'assets/**/*.scss' --fix", "lint:css-fix": "stylelint '**/*.scss' --fix",
"lint:js": "wp-scripts lint-js --ext=js,ts,tsx", "lint:js": "wp-scripts lint-js --ext=js,ts,tsx",
"lint:js:report": "npm run lint:js -- --output-file eslint_report.json --ext=js,ts,tsx --format json", "lint:js:report": "npm run lint:js -- --output-file eslint_report.json --ext=js,ts,tsx --format json",
"lint:js-fix": "eslint assets/js --ext=js,jsx,ts,tsx --fix", "lint:js-fix": "eslint assets/js --ext=js,jsx,ts,tsx --fix",