test: lint all js files and inline scripts in workflow (#2442)

* Lint all js files

Closes #2414

* Lint inline scripts in workflow

* Upgrade eslint-plugin-actions to 1.0.1

Test plan:
1. Add `console` statement to the script in `.github/workflows/ci.yml`
2. Check `no-console` error is shown in `eslint`
This commit is contained in:
ylemkimon
2020-08-30 10:09:47 +09:00
committed by GitHub
parent a71d053df9
commit a82d4c44e0
4 changed files with 23 additions and 3 deletions

View File

@@ -39,6 +39,7 @@
"css-loader": "^4.0.0",
"cssnano": "^4.1.10",
"eslint": "^7.4.0",
"eslint-plugin-actions": "^1.0.1",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-react": "^7.20.3",
"file-loader": "^6.0.0",
@@ -83,7 +84,7 @@
"scripts": {
"test": "yarn test:lint && yarn test:flow && yarn test:jest",
"test:lint": "yarn test:lint:js && yarn test:lint:css",
"test:lint:js": "eslint *.js src static test contrib dockers website",
"test:lint:js": "eslint .",
"test:lint:css": "stylelint src/katex.less static/main.css contrib/**/*.css website/static/**/*.css",
"test:flow": "flow",
"test:jest": "jest",