123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- module.exports = {
- parserOptions: {
- ecmaVersion: 2017,
- sourceType: 'module',
- ecmaFeatures: {
- jsx: true,
- modules: true
- }
- },
- env: {
- browser: true,
- node: true,
- commonjs: true,
- es6: true
- },
-
- root: true,
- rules: {
-
-
-
-
-
-
-
-
-
- "vue/no-multi-spaces": ["error", {
- "ignoreProperties": false
- }],
-
- "vue/html-closing-bracket-spacing": ["error", {
- "startTag": "never",
- "endTag": "never",
- "selfClosingTag": "never"
- }],
-
- 'indent': [
- 'error',
- 2,
- {
- SwitchCase: 1
- }
- ],
-
- 'no-mixed-spaces-and-tabs': 'error',
-
- 'keyword-spacing': [
- 'error',
- {
- "after": true
- }
- ],
-
- 'space-before-function-paren': [
- 'error',
- 'never'
- ],
-
- 'func-call-spacing': [
- 'error',
- 'never'
- ],
-
- 'key-spacing': [
- 'error',
- {
- beforeColon: false,
- afterColon: true,
- mode: 'strict',
- }
- ],
-
- 'space-infix-ops': 'error',
-
- 'comma-spacing': [
- 'error',
- {
- 'before': false,
- 'after': true
- }
- ],
-
- 'block-spacing': [
- 'error',
- 'always'
- ],
-
- 'no-multi-spaces': [
- 'error',
- {
- ignoreEOLComments: true,
- exceptions: {
- Property: true,
- BinaryExpression: false,
- VariableDeclarator: true,
- ImportDeclaration: true
- }
- }
- ],
-
-
- 'no-tabs': 'off',
-
- 'no-trailing-spaces': [
- 'error',
- {
- skipBlankLines: true,
- ignoreComments: true
- }
- ],
-
- 'no-whitespace-before-property': 'error',
-
- 'semi-spacing': [
- 'error',
- {
- before: false,
- after: true
- }
- ],
-
- 'space-before-blocks': [
- 'error',
- 'always'
- ],
-
- 'space-in-parens': [
- 'error',
- 'never'
- ],
-
-
-
- 'space-unary-ops': [
- 'error',
- {
- words: true,
- nonwords: false
- }
- ],
-
- 'brace-style': 'error',
-
- 'operator-linebreak': 'off',
-
- 'dot-location': [
- 'error',
- 'property'
- ],
-
- 'eol-last': 'error',
-
- 'object-property-newline': [
- 'error',
- {
- 'allowMultiplePropertiesPerLine': true
- }
- ],
-
- 'curly': [
- 'error',
- 'multi-line',
- 'consistent'
- ],
-
- 'new-parens': 'error',
-
- 'no-extra-parens': [
- 'error',
- 'functions'
- ],
-
- 'no-cond-assign': [
- 'error',
- 'except-parens'
- ],
-
- 'no-return-assign': [
- 'error',
- 'always'
- ],
-
- 'quotes': [
- 'error',
- 'single',
- {
- avoidEscape: true,
- allowTemplateLiterals: true
- }
- ],
-
- 'comma-dangle': 'error',
-
- 'camelcase': 'off',
-
- 'one-var': [
- 'error',
- 'never'
- ],
-
- 'no-new': 'error',
-
- 'no-redeclare': 'error',
-
- 'no-undef-init': 'error',
-
- 'no-const-assign': 'error',
-
- 'no-dupe-args': 'error',
-
- 'no-dupe-keys': 'error',
-
- 'no-extend-native': 'error',
-
-
-
- 'no-func-assign': 'error',
-
- 'no-global-assign': 'error',
-
- 'no-inner-declarations': 'error',
-
- 'no-label-var': 'error',
-
- 'no-lone-blocks': 'error',
-
- 'no-new-func': 'error',
-
- 'no-new-object': 'error',
-
- 'no-new-require': 'error',
-
- 'no-new-symbol': 'error',
-
- 'no-new-wrappers': 'error',
-
- 'no-obj-calls': 'error',
-
- 'no-proto': 'error',
-
- 'no-self-assign': 'error',
-
- 'no-self-compare': 'error',
-
- 'no-shadow-restricted-names': 'error',
-
- 'no-sparse-arrays': 'error',
-
- 'no-throw-literal': 'error',
-
- 'no-unreachable': 'error',
-
- 'no-unsafe-finally': 'error',
-
- 'no-unsafe-negation': 'error',
-
- 'no-useless-escape': 'error',
-
- 'handle-callback-err': 'error',
-
- 'eqeqeq': [
- 'error',
- 'always',
- {
- 'null': 'ignore'
- }
- ],
-
- 'no-array-constructor': 'error',
-
- 'no-constant-condition': [
- 'error',
- {
- checkLoops: false
- }
- ],
-
- 'no-eval': 'error',
-
- 'no-implied-eval': 'error',
-
- 'no-extra-boolean-cast': 'error',
-
- 'no-floating-decimal': 'error',
-
- 'no-labels': 'error',
-
- 'no-multi-str': 'error',
-
- 'no-path-concat': 'error',
-
- 'no-unmodified-loop-condition': 'error',
-
- 'no-useless-computed-key': 'error',
-
- 'use-isnan': 'error',
-
- 'dot-notation': 'error',
-
- 'spaced-comment': [
- 'error',
- 'always',
- {
- block: {
- exceptions: [
- '*'
- ],
- balanced: true
- }
- }
- ],
-
- 'semi': ['error', 'never'],
-
-
-
- 'no-unexpected-multiline': 'error',
- }
- };
|