web: lint root `*.js` files
Created by: valerybugakov
Context
Resolving the issue uncovered in this PR: https://github.com/sourcegraph/sourcegraph/pull/33979.
The error reported here means that the file .eslintrc.js
itself is both:
- Provided to ESLint as an input file to be checked.
- Doesn't match the list of files it's supposed to lint according to the
tsconfig.json
provided inparserOptions
.
Changes
- Root
.js
files are now linted byyarn lint:js:all
command. - The error is fixed by creating a separate
tsconfig.eslint.json
which includes.js
files to keep ESLint happy.
Test plan
yarn lint:js:all
should lint .js
files in the repo's root.
App preview:
Check out the client app preview documentation to learn more.