From 32d09a7fb071ca7a2527c9c46a87e1a630f8d627 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 27 Jun 2023 17:00:29 -0500 Subject: [PATCH] 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. ``` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 17e1bef..434c86a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/matrix-org/matrix-public-archive" }, "scripts": { - "lint": "eslint **/*.js", + "lint": "eslint \"**/*.js\"", "build": "node ./build-scripts/do-client-build.js", "start": "node server/server.js", "start-dev": "node server/start-dev.js",