mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user