diff --git a/package.json b/package.json index f3d7e5f..6cebd41 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:ws": "npm run build && npm run build --workspaces --if-present", "clean:ws": "npm run clean --workspaces --if-present --include-workspace-root", "build": "tsc --build", - "lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/ --color", + "lint": "eslint . --fix --cache --cache-location .cache/eslint/ --color", "test": "vitest", "lint:ci": "eslint .", "clean": "rm -rf ./.cache ./tsconfig.tsbuildinfo" diff --git a/packages/eslint-config/README.md b/packages/eslint-config/README.md index 9588105..7aaadad 100644 --- a/packages/eslint-config/README.md +++ b/packages/eslint-config/README.md @@ -35,7 +35,7 @@ Add the following scripts to your `package.json`: ```json { "scripts": { - "lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/", + "lint": "eslint . --fix --cache --cache-location .cache/eslint/", "lint:ci": "eslint ." } } @@ -51,7 +51,16 @@ Add the following scripts to your `package.json`: > but not yet supported by all our plugins. - Use `eslint.config.mjs` instead of `eslint.config.js` -- Specify `--config eslint.config.mjs` in the `package.json` scripts. +- Specify `--config eslint.config.mjs` in the `package.json` scripts. For example: + +```json +{ + "scripts": { + "lint": "eslint . --fix --cache --cache-location .cache/eslint/ --config eslint.config.mjs", + "lint:ci": "eslint . --config eslint.config.mjs" + } +} +``` ## Default configuration and options