|
14 | 14 | "prod": "webpack --config webpack.config.js --mode=production",
|
15 | 15 | "build": "yarn prod",
|
16 | 16 | "start": "yarn dev --watch",
|
17 |
| - "lint:js": "eslint . --ext js", |
18 |
| - "lint:js-ci": "eslint . --ext js -f checkstyle -o target/eslint-warnings.xml", |
| 17 | + "lint:js": "eslint . --ext js && prettier --check ../", |
| 18 | + "lint:js-ci": "eslint . --ext js -f checkstyle -o target/eslint-warnings.xml && prettier --check ../", |
19 | 19 | "lint:css": "stylelint src/main/less",
|
20 | 20 | "lint:css-ci": "stylelint src/main/less --custom-formatter stylelint-formatter.js -o target/stylelint-warnings.xml",
|
21 |
| - "lint:css:fix": "stylelint src/main/less --fix", |
22 | 21 | "lint:ci": "yarn lint:js-ci && yarn lint:css-ci",
|
| 22 | + "lint:fix": "prettier --write ../ && stylelint src/main/less --fix", |
23 | 23 | "lint": "yarn lint:js && yarn lint:css"
|
24 | 24 | },
|
25 | 25 | "devDependencies": {
|
|
31 | 31 | "css-loader": "6.7.1",
|
32 | 32 | "css-minimizer-webpack-plugin": "4.0.0",
|
33 | 33 | "eslint": "8.22.0",
|
| 34 | + "eslint-config-prettier": "8.5.0", |
34 | 35 | "handlebars": "4.7.7",
|
35 | 36 | "handlebars-loader": "1.7.2",
|
36 | 37 | "less": "4.1.3",
|
37 | 38 | "less-loader": "11.0.0",
|
38 | 39 | "mini-css-extract-plugin": "2.6.1",
|
39 | 40 | "postcss": "8.4.16",
|
40 | 41 | "postcss-loader": "7.0.1",
|
| 42 | + "prettier": "2.7.1", |
41 | 43 | "style-loader": "3.3.1",
|
42 | 44 | "stylelint": "14.11.0",
|
43 | 45 | "stylelint-config-standard": "28.0.0",
|
|
0 commit comments