✨ initial commit for setting up prettier + linter
This commit is contained in:
28
.eslintrc.js
Normal file
28
.eslintrc.js
Normal file
@@ -0,0 +1,28 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
browser: true,
|
||||
node: true
|
||||
},
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint'
|
||||
},
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
||||
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
||||
"plugin:vue/recommended",
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
// required to lint *.vue files
|
||||
plugins: [
|
||||
'vue'
|
||||
],
|
||||
// add your custom rules here
|
||||
rules: {
|
||||
"semi": [2, "never"],
|
||||
"no-console": "off",
|
||||
"vue/max-attributes-per-line": "off",
|
||||
"prettier/prettier": ["error", { "semi": false }]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user