Skip to content

Commit

Permalink
init: lint - parser 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
joohaem committed Mar 19, 2022
1 parent 45d16cd commit 36daa3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
"ecmaVersion": "latest", // 사용할 ECMAScript 버전을 설정
"sourceType": "module" // parser의 export 형태를 설정
},
"plugins": [
"react",
Expand Down Expand Up @@ -61,13 +62,20 @@
"import/no-named-as-default": 0 // default로 정의되지 않은 아이들을 불러왔음을 알려줌
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
"import/parsers": { // 추가
"@typescript-eslint/parser": [
".ts",
".tsx",
".js"
]
}
}
}
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
};

module.exports = nextConfig
module.exports = nextConfig;

0 comments on commit 36daa3d

Please sign in to comment.