Build: Fix the ESLint config for demos

The ESLint config for `demos` extends the one for the `ui` directory. However,
the `ui` one used to not be a root one, making the `demos` one effectively not
depend on the `jquery` preset. Fix that and fix lots of lint violations in
`demos/search.js`.

Closes gh-2303
This commit is contained in:
Michał Gołębiowski-Owczarek
2024-10-17 23:47:29 +02:00
committed by GitHub
parent 3934c68dee
commit 49bb397606
3 changed files with 586 additions and 578 deletions

View File

@@ -1,5 +1,9 @@
{
"root": true,
"extends": "../ui/.eslintrc.json"
"extends": "../ui/.eslintrc.json",
"globals": {
"require": true
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,8 @@
{
"root": true,
"extends": "jquery",
"parserOptions": {
"ecmaVersion": 5
},