Search

프로젝트 세팅

ESlint, Prettier

/* eslint-env node */ require('@rushstack/eslint-patch/modern-module-resolution'); module.exports = { root: true, extends: [ 'plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier', ], env: { 'vue/setup-compiler-macros': true, }, parserOptions: { ecmaVersion: 'latest', sourceType: 'module', }, rules: { 'prettier/prettier': [ 'error', { singleQuote: true, semi: true, tabWidth: 2, trailingComma: 'all', printWidth: 80, bracketSpacing: true, arrowParens: 'avoid', endOfLine: 'auto', // 한줄 추가 }, ], }, };
JavaScript
복사

settings.json

"eslint.validate": [ "javascript", "javascriptreact", "typescript", "typescriptreact", // "html", // 삭제 "vue", "markdown" ], "editor.codeActionsOnSave": { "source.fixAll.eslint": true },
JavaScript
복사

jsconfig.json

{ "compilerOptions": { "baseUrl": ".", "jsx": "preserve", "paths": { "@/*": ["src/*"] } }, "exclude": ["node_modules", "dist"] }
JavaScript
복사

bootstrap 설치

npm install bootstrap bootstrap-icons
JavaScript
복사