diff --git a/eslint.config.mjs b/eslint.config.mjs index c7d2c05..199ae87 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -7,6 +7,7 @@ import eslintConfigPrettier from "eslint-config-prettier"; /** @type {import('eslint').Linter.Config[]} */ export default [ { files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] }, + { ignores: ["**/__test__/*"] }, { languageOptions: { globals: globals.browser } }, { rules: { "no-console": ["error"] } }, pluginJs.configs.recommended, diff --git a/package.json b/package.json index 841c5f7..bcbca48 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "jest", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "lint": "eslint ./src/" }, "eslintConfig": { "extends": [