mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +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:
@@ -5,7 +5,8 @@
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:flowtype/recommended"
|
||||
"plugin:flowtype/recommended",
|
||||
"plugin:actions/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"arrow-spacing": 2,
|
||||
@@ -101,6 +102,11 @@
|
||||
"rules": {
|
||||
"react/prop-types": 0
|
||||
}
|
||||
}, {
|
||||
"files": [".github/workflows/*.{yaml,yml}/**/*.js"],
|
||||
"rules": {
|
||||
"indent-legacy": [2, 4, {"SwitchCase": 1, "outerIIFEBody": 0}],
|
||||
}
|
||||
}],
|
||||
"root": true
|
||||
}
|
||||
|
Reference in New Issue
Block a user