Blame view
.eslintrc.js
1.21 KB
|
7d6833f2c
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": [
'standard',
"eslint:recommended",
"plugin:vue/essential",
"plugin:@typescript-eslint/eslint-recommended",
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"uni": true,
|
|
5bca13074
|
16 |
"wx": true, |
|
7d6833f2c
|
17 18 19 20 21 22 23 24 25 26 27 28 29 |
"module": true
},
"parserOptions": {
"ecmaVersion": 11,
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": [
"vue",
"@typescript-eslint"
],
"rules": {
quotes: ['error', 'single'],
|
|
089dce19d
|
30 31 32 33 34 35 36 37 38 |
'space-before-function-paren': 0,
// 数组和对象键值对最后一个逗号, never参数:不能带末尾的逗号, always参数:必须带末尾的逗号,
// always-multiline:多行模式必须带逗号,单行模式不能带逗号
"comma-dangle": [2, "always-multiline"],
// 控制逗号前后的空格
"comma-spacing": [2, { "before": false, "after": true }],
// 控制逗号在行尾出现还是在行首出现
// http://eslint.org/docs/rules/comma-style
"comma-style": [2, "last"],
|
|
7d6833f2c
|
39 40 |
} }; |