Fix eslint trying to look at `node_modules/`

Previously:

```sh
$ npm run lint

> matrix-public-archive@0.1.0 lint
> eslint **/*.js

Oops! Something went wrong! :(

ESLint: 8.37.0

You are linting "node_modules/ipaddr.js", but all of the files matching the glob pattern "node_modules/ipaddr.js" are ignored.

If you don't want to lint these files, remove the pattern "node_modules/ipaddr.js" from the list of arguments passed to ESLint.

If you do want to lint these files, try the following solutions:

* Check your .eslintignore file, or the eslintIgnore property in package.json, to ensure that the files are not configured to be ignored.
* Explicitly list the files from this glob that you'd like to lint on the command-line, rather than providing a glob as an argument.
```
This commit is contained in:
Eric Eastwood 2023-06-27 17:00:29 -05:00
parent 1d3e930fbd
commit 32d09a7fb0
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
"url": "https://github.com/matrix-org/matrix-public-archive" "url": "https://github.com/matrix-org/matrix-public-archive"
}, },
"scripts": { "scripts": {
"lint": "eslint **/*.js", "lint": "eslint \"**/*.js\"",
"build": "node ./build-scripts/do-client-build.js", "build": "node ./build-scripts/do-client-build.js",
"start": "node server/server.js", "start": "node server/server.js",
"start-dev": "node server/start-dev.js", "start-dev": "node server/start-dev.js",