init project
This commit is contained in:
41
.eslintrc.js
Normal file
41
.eslintrc.js
Normal file
@@ -0,0 +1,41 @@
|
||||
const eslintConfig = {
|
||||
"root": true,
|
||||
"parserOptions": {
|
||||
"parser": "babel-eslint",
|
||||
"ecmaVersion": 7,
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"globals":{
|
||||
"console": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"standard"
|
||||
],
|
||||
"plugins": [
|
||||
"vue"
|
||||
],
|
||||
"rules": {
|
||||
"no-var": 1,
|
||||
"no-alert": 1,
|
||||
"no-ternary": 0,
|
||||
"no-self-assign": 0,
|
||||
"standard/no-callback-literal": 0,
|
||||
"func-call-spacing": 0,
|
||||
"prefer-promise-reject-errors": 0,
|
||||
"no-unused-vars": 1,
|
||||
"no-debugger": 1,
|
||||
"no-console": 1,
|
||||
'no-useless-constructor': "off"
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = eslintConfig;
|
||||
Reference in New Issue
Block a user