Skip to content

Commit cb5ca1f

Browse files
committed
Organize lint scripts
1 parent c566ced commit cb5ca1f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ script:
5656
- find src/php/ \( -name '*.php' \) -exec php -lf {} \;
5757

5858
# Run tests
59-
- npm run test
59+
- npm run lint

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"test": "tests"
99
},
1010
"scripts": {
11-
"test": "npm run stylelint && eslint && npm run phpcs",
1211
"test:playwright": "playwright test -c tests/playwright/playwright.config.ts",
1312
"test:playwright:debug": "npm run test:playwright -- --debug",
1413
"test:playwright:ui": "npm run test:playwright -- --ui",
@@ -20,9 +19,13 @@
2019
"build": "webpack",
2120
"watch": "webpack --watch",
2221
"bundle": "ts-node scripts/bundle.ts",
23-
"phpcs": "src/vendor/bin/phpcs -s --colors ./src/phpcs.xml",
24-
"phpcbf": "src/vendor/bin/phpcbf ./src/phpcs.xml",
25-
"stylelint": "stylelint --fix 'src/css/**/*.scss'",
22+
"lint": "npm run lint-styles && npm run lint-js && npm run lint-php",
23+
"lint-styles": "stylelint 'src/css/**/*.scss'",
24+
"lint-styles-fix": "stylelint --fix 'src/css/**/*.scss'",
25+
"lint-js": "eslint",
26+
"lint-js-fix": "eslint --fix",
27+
"lint-php": "src/vendor/bin/phpcs -s --colors ./src/phpcs.xml",
28+
"lint-php-fix": "src/vendor/bin/phpcbf ./src/phpcs.xml",
2629
"version": "ts-node scripts/version.ts",
2730
"version-dev": "npm version --git-tag-version=false --preid=dev",
2831
"version-alpha": "npm version --git-tag-version=false --preid=alpha",

0 commit comments

Comments
 (0)