From 264343509e2f499128ba41f80811b968b3d8decb Mon Sep 17 00:00:00 2001 From: crab85193 Date: Mon, 16 Dec 2024 00:43:39 +0900 Subject: [PATCH] =?UTF-8?q?test:=20ESLint=E3=81=AEnpm-scripts=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.mjs | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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": [