This requires a switch to the configuration file format described at https://eslint.org/docs/latest/use/configure/configuration-files. I used the automatic tool to generate the new file, with some simplifications around defaults. - Removed no-cond-assign override, it is no longer needed. - Fixed `catch (e)` where `e` is not used. This seems a little pedantic to me, but seems like a relatively easy fix to just remove it, and I believe the syntax without the variable has been supported for quite some time. Alternatively it could also be `_e`, or explicitly allowed. - Added `--no-warn-ignored` to the script since it was very noisy.
10 lines
314 B
JSON
10 lines
314 B
JSON
{
|
|
"dependencies": {
|
|
"browser-ui-test": "0.21.1",
|
|
"eslint": "^9.34.0"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint --no-warn-ignored crates/mdbook-html/front-end/*js crates/mdbook-html/front-end/**/*js",
|
|
"lint-fix": "eslint --fix crates/mdbook-html/front-end/*js crates/mdbook-html/front-end/**/*js"
|
|
}
|
|
}
|