Last active
February 23, 2021 12:42
-
-
Save ChoWonmin/287356739c98980202fc9b22836c2639 to your computer and use it in GitHub Desktop.
vue - eslintrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*.{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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// default | |
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
'extends': [ | |
'plugin:vue/essential', | |
'eslint:recommended' | |
], | |
rules: { | |
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | |
}, | |
parserOptions: { | |
parser: 'babel-eslint' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// airbnb | |
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', | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prettier | |
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"], | |
parserOptions: { | |
parser: "babel-eslint" | |
}, | |
rules: { | |
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off", | |
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off" | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prettier .vscode sttiong.json | |
{ | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
"editor.formatOnSave": true, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// airbnb .vscode sttiong.json | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prettier .vscode sttiong.json | |
{ | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
"editor.formatOnSave": true, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment