Skip to content

Commit

Permalink
test: ESLintのnpm-scriptsを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
crab85193 committed Dec 15, 2024
1 parent beec8e6 commit 2643435
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 2643435

Please sign in to comment.