Blame view

.eslintrc.js 1.17 KB
93a68cfa1   Jatinder Singh   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  // https://eslint.org/docs/user-guide/configuring
  // eslint-disable-next-line 
  /* eslint-disable */
  module.exports = {
      root: true,
      parserOptions: {
        parser: 'babel-eslint',
        ecmaVersion: 2017,
        sourceType: 'module'
      },    
      extends: [
          'eslint-config-alloy/vue',
      ],
      globals: {
          // 这里填入你的项目需要的全局变量
          // 这里值为 false 表示这个全局变量不允许被重新赋值,比如:
          //
          // Vue: false
      },
      rules: {
          // 这里填入你的项目需要的个性化配置,比如:
          //
          // // @fixable 一个缩进必须用两个空格替代
          'indent': [
              'error',
              2,
              {
                  SwitchCase: 1,
                  flatTernaryExpressions: true
              }
          ],
          'no-undef-init': 1,
          'no-trailing-spaces': 0,
          'no-undefined': 0,
          'no-void': 0,
          'no-unused-vars': 0,
          'no-param-reassign': 0,
          "space-before-function-paren": ["error", {
              "anonymous": "always",
              "named": "always",
              "asyncArrow": "always"
          }],        
      },
      
  };