* chore(eslint): init & config eslint Signed-off-by: Stefan Dej <meteyou@gmail.com> * chore(eslint): fix eslint rules Signed-off-by: Stefan Dej <meteyou@gmail.com>
42 lines
794 B
JSON
42 lines
794 B
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": [
|
|
"plugin:vue/essential",
|
|
"eslint:recommended",
|
|
"@vue/typescript"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parser": "vue-eslint-parser",
|
|
"parserOptions": {
|
|
"parser": "@typescript-eslint/parser",
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"vue"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
4
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
]
|
|
}
|
|
} |