2018-07-27 17:48:12 +08:00
|
|
|
root: true
|
|
|
|
|
|
|
|
parser: vue-eslint-parser
|
|
|
|
parserOptions:
|
|
|
|
ecmaVersion: 2018
|
|
|
|
sourceType: module
|
|
|
|
parser: babel-eslint
|
|
|
|
|
|
|
|
env:
|
|
|
|
node: true
|
|
|
|
es6: true
|
|
|
|
browser: true
|
|
|
|
jest: true
|
|
|
|
jquery: true
|
|
|
|
|
|
|
|
extends:
|
|
|
|
- 'eslint:recommended'
|
|
|
|
- 'plugin:vue/essential'
|
|
|
|
|
|
|
|
rules:
|
|
|
|
linebreak-style:
|
|
|
|
- error
|
|
|
|
- unix
|
|
|
|
quotes:
|
|
|
|
- warn
|
|
|
|
- single
|
|
|
|
semi:
|
|
|
|
- error
|
|
|
|
- always
|
|
|
|
object-curly-spacing:
|
|
|
|
- error
|
|
|
|
- always
|
|
|
|
no-unused-vars: warn
|
|
|
|
no-console: 'off'
|
|
|
|
comma-style:
|
|
|
|
- warn
|
|
|
|
- last
|
|
|
|
prefer-const: warn
|
|
|
|
no-var: error
|
|
|
|
eqeqeq: error
|
2018-08-16 14:50:11 +08:00
|
|
|
block-spacing: error
|
|
|
|
brace-style:
|
|
|
|
- error
|
|
|
|
- 1tbs
|
|
|
|
- allowSingleLine: true
|
|
|
|
comma-spacing: error
|
2018-08-16 14:21:35 +08:00
|
|
|
indent:
|
|
|
|
- error
|
|
|
|
- 4
|
|
|
|
- SwitchCase: 1
|
2018-08-16 14:50:11 +08:00
|
|
|
key-spacing:
|
|
|
|
- error
|
|
|
|
- mode: minimum
|
|
|
|
keyword-spacing: error
|
|
|
|
space-before-blocks: error
|
|
|
|
space-infix-ops: error
|
|
|
|
no-unused-expressions:
|
|
|
|
- error
|
|
|
|
- allowShortCircuit: true
|
|
|
|
allowTernary: true
|
2018-08-05 09:47:29 +08:00
|
|
|
vue/html-closing-bracket-newline:
|
|
|
|
- error
|
|
|
|
- singleline: never
|
|
|
|
multiline: always
|
|
|
|
vue/html-indent:
|
|
|
|
- error
|
|
|
|
- 4
|
|
|
|
vue/max-attributes-per-line:
|
|
|
|
- error
|
|
|
|
- singleline: 3
|
|
|
|
multiline: 1
|
|
|
|
vue/mustache-interpolation-spacing: error
|
|
|
|
vue/no-multi-spaces: error
|
|
|
|
vue/v-bind-style: error
|
|
|
|
vue/v-on-style: error
|
|
|
|
vue/html-quotes: error
|
|
|
|
vue/order-in-components: warn
|
2018-07-27 17:48:12 +08:00
|
|
|
|
|
|
|
globals:
|
2018-07-29 15:32:10 +08:00
|
|
|
blessing: false
|
2018-08-02 17:29:43 +08:00
|
|
|
__bs_data__: false
|