mirror of https://github.com/apache/superset.git
[Build] moves prettier check to separate script (#9591)
* [Build] moves prettier check to separate script * rename step: eslint -> lint
This commit is contained in:
parent
237ac59474
commit
cb51d7833f
|
@ -13,10 +13,11 @@ jobs:
|
||||||
uses: apache-superset/cached-dependencies@adc6f73
|
uses: apache-superset/cached-dependencies@adc6f73
|
||||||
with:
|
with:
|
||||||
run: npm-install
|
run: npm-install
|
||||||
- name: eslint
|
- name: lint
|
||||||
working-directory: ./superset-frontend
|
working-directory: ./superset-frontend
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
npm run lint
|
||||||
|
npm run prettier-check
|
||||||
- name: unit tests
|
- name: unit tests
|
||||||
working-directory: ./superset-frontend
|
working-directory: ./superset-frontend
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
"build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --colors --progress",
|
"build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --colors --progress",
|
||||||
"build-instrumented": "cross-env NODE_ENV=development BABEL_ENV=instrumented webpack --mode=development --colors --progress",
|
"build-instrumented": "cross-env NODE_ENV=development BABEL_ENV=instrumented webpack --mode=development --colors --progress",
|
||||||
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors --progress",
|
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors --progress",
|
||||||
"lint": "prettier --check '{src,stylesheets}/**/*.{css,less,sass,scss}' && eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,.tsx .",
|
"lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,.tsx .",
|
||||||
|
"prettier-check": "prettier --check '{src,stylesheets}/**/*.{css,less,sass,scss}'",
|
||||||
"lint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx . && npm run clean-css",
|
"lint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx . && npm run clean-css",
|
||||||
"clean-css": "prettier --write '{src,stylesheets}/**/*.{css,less,sass,scss}'"
|
"clean-css": "prettier --write '{src,stylesheets}/**/*.{css,less,sass,scss}'"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue