Skip to content

Commit 1ee4078

Browse files
committed
feat: Setup ESLint and Prettier.
1 parent 7b2a5bf commit 1ee4078

File tree

4 files changed

+681
-295
lines changed

4 files changed

+681
-295
lines changed

.eslintrc.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
es6: true,
6+
},
7+
extends: ['prettier', 'plugin:vue/essential', '@vue/prettier'],
8+
rules: {
9+
'prettier/prettier': 'error',
10+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
11+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12+
'func-call-spacing': 'warn',
13+
},
14+
parserOptions: {
15+
parser: 'babel-eslint',
16+
},
17+
}

.prettierrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
semi: false,
3+
tabs: false,
4+
tabWidth: 2,
5+
singleQuote: true,
6+
trailingComma: 'es5',
7+
bracketSpacing: true,
8+
}

0 commit comments

Comments
 (0)