Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 41 additions & 26 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
{
"extends": [
"tui",
"prettier",
"next/core-web-vitals", // 기본
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:react/jsx-runtime"
],
"env": {
"browser": true,
"node": true,
"es2021": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"project": "./tsconfig.json",
"sourceType": "module"
},
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true
"extends": [
"tui",
"prettier",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:@next/next/recommended",
"plugin:tailwindcss/recommended"
],
"globals": {
"_": true
},
"globals": { "_": true },
"plugins": ["import", "html", "react"],
"plugins": ["import", "html", "react", "@typescript-eslint", "tailwindcss"],
"rules": {
"import/no-unresolved": 0,
"no-console": "warn",
"no-undefined": "warn",
"no-unused-expressions": [
"error",
{
"allowTernary": true, // a || b
"allowShortCircuit": true, // a ? b : 0
"allowTernary": true,
"allowShortCircuit": true,
"allowTaggedTemplates": true
}
],
Expand All @@ -49,7 +55,7 @@
"newlines-between": "always",
"pathGroups": [
{
"pattern": "{react,react-**,react-dom/**}",
"pattern": "react/**",
"group": "external",
"position": "before"
},
Expand All @@ -66,22 +72,31 @@
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"@typescript-eslint/no-unused-vars": ["warn"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

미국개발자님 보면 js, jsx, ts, tsx 모두 있는데,
저희가 거의 ts, tsx만 만들 것 같지만 혹시 모르니 js, jsx도 추가해둘까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추가하겠습니다 👌

"@typescript-eslint/no-shadow": ["warn"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"tailwindcss/classnames-order": "warn",
"tailwindcss/enforces-shorthand": "warn",
"tailwindcss/no-custom-classname": "warn"
},
"settings": {
"react": {
"version": "detect"
},
"import/extensions": [".js", ".jsx"],
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"tailwindcss": {
"callees": ["classnames", "clsx", "ctl"]
}
},
"overrides": [
{
"files": ["**/*.test.js", "**/*.test.jsx"],
"files": ["**/*.test.ts", "**/*.test.tsx"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"],
"rules": {
Expand Down