-
Notifications
You must be signed in to change notification settings - Fork 4
Prettier Eslint Airbnb style
Yun Hwan, Kim edited this page Nov 11, 2019
·
3 revisions
.eslintrc
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"plugins": ["prettier"],
// airbnb๊ฐ ๋จผ์ ์์ผํ๋ค. ๊ทธ๋์ผ prettier์ ๋ฌธ์ ๊ฐ ๋๋ ์ธํ
์ ์ทจ์ํ๋๋ก ๋ฎ์ ์ ์๋ค.
"extends": ["airbnb", "prettier"],
"rules": {
"prettier/prettier": "error"
}
}
.prettierrc
{
"trailingComma": "es5",
"semi": true,
"singleQuote": false,
"tabWidth": 2
}
"devDependencies": {
"babel-eslint": "^10.0.3",
"eslint": "^6.6.0",
// airbnb style
"eslint-config-airbnb": "^18.0.1",
// prettier์ eslint๊ฐ์ ์ถฉ๋๋๋ ์ค์ ์ ๊บผ์ฃผ๋ ํจํค์ง
"eslint-config-prettier": "^6.5.0",
// eslint, airbnb์ ์์กด์ฑ์ด ๊ฑธ๋ฆฐ ํจํค์ง๋ค
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.16.0",
// eslint์์ prettier๋ฅผ ์ฌ์ฉํ ์ ์๋๋ก ๋์์ฃผ๋ ํจํค์ง
"eslint-plugin-prettier": "^3.1.1",
"prettier": "^1.19.0"
}