From cb7280d26b1bd7dedb9cc9ca2e2b0d687a18c98d Mon Sep 17 00:00:00 2001 From: nalsae Date: Thu, 28 Sep 2023 22:49:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Conf=20:=20ESLint=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=20=EC=84=A4=EC=A0=95=20=ED=8C=8C=EC=9D=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 3 +++ .eslintrc.json | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .eslintignore create mode 100644 .eslintrc.json diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..6cecb37 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules/ +.prettierrc.js +.eslintrc.js \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..9a51954 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,39 @@ +{ + "env": { + "browser": true, + "es2021": true, + "node": true + }, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:prettier/recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@next/next/recommended", + "next/core-web-vitals", + "prettier" + ], + "rules": { + "prettier/prettier": [ + "error", + { + "usePrettierrc": true + } + ], + "react/react-in-jsx-scope": "off", + "react/prop-types": "off", + "react/display-name": "off", + "no-unused-vars": "off", + "@typescript-eslint/no-var-requires": 0, + "@typescript-eslint/no-unused-vars": ["error"], + "@typescript-eslint/explicit-module-boundary-types": "off" + } +}