npm
대신 yarn
사용
modules/
에 있는 파일들 import해서 사용.editorconfig: vscode 설정 (프로젝트 최상위 폴더에 위치)
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
.eslintrc.js: airbnb style (프로젝트 최상위 폴더에 위치)
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
},
};
.env: (프로젝트 최상위 폴더에 위치)
.gitignore
에 추가)package.json (프로젝트 최상위 폴더에 위치)