.eslintrc.jstemp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. module.exports = {
  2. // root: true,
  3. // parserOptions: {
  4. // parser: 'babel-eslint',
  5. // sourceType: 'module'
  6. // },
  7. // env: {
  8. // browser: true,
  9. // node: true,
  10. // es6: true,
  11. // },
  12. // extends: ['plugin:vue/recommended', 'eslint:recommended'],
  13. // add your custom rules here
  14. //it is base on https://github.com/vuejs/eslint-config-vue
  15. // rules: {
  16. // "vue/max-attributes-per-line": [2, {
  17. // "singleline": 10,
  18. // "multiline": {
  19. // "max": 1,
  20. // "allowFirstLine": false
  21. // }
  22. // }],
  23. // "vue/html-self-closing": ["error", {
  24. // "html": {
  25. // "void": "never",
  26. // "normal": "any",
  27. // "component": "any"
  28. // },
  29. // "svg": "always",
  30. // "math": "always"
  31. // }],
  32. // "vue/singleline-html-element-content-newline": "off",
  33. // "vue/multiline-html-element-content-newline":"off",
  34. // "vue/name-property-casing": ["error", "PascalCase"],
  35. // "vue/no-v-html": "off",
  36. // 'accessor-pairs': 2,
  37. // 'arrow-spacing': [2, {
  38. // 'before': true,
  39. // 'after': true
  40. // }],
  41. // 'block-spacing': [2, 'always'],
  42. // 'brace-style': [2, '1tbs', {
  43. // 'allowSingleLine': true
  44. // }],
  45. // 'camelcase': [0, {
  46. // 'properties': 'always'
  47. // }],
  48. // 'comma-dangle': [2, 'never'],
  49. // 'comma-spacing': [2, {
  50. // 'before': false,
  51. // 'after': true
  52. // }],
  53. // 'comma-style': [2, 'last'],
  54. // 'constructor-super': 2,
  55. // 'curly': [2, 'multi-line'],
  56. // 'dot-location': [2, 'property'],
  57. // 'eol-last': 2,
  58. // // 'eqeqeq': ["error", "always", {"null": "ignore"}],
  59. // 'generator-star-spacing': [2, {
  60. // 'before': true,
  61. // 'after': true
  62. // }],
  63. // 'handle-callback-err': [2, '^(err|error)$'],
  64. // 'indent': [2, 2, {
  65. // 'SwitchCase': 1
  66. // }],
  67. // 'jsx-quotes': [2, 'prefer-single'],
  68. // 'key-spacing': [2, {
  69. // 'beforeColon': false,
  70. // 'afterColon': true
  71. // }],
  72. // 'keyword-spacing': [2, {
  73. // 'before': true,
  74. // 'after': true
  75. // }],
  76. // 'new-cap': [2, {
  77. // 'newIsCap': true,
  78. // 'capIsNew': false
  79. // }],
  80. // 'new-parens': 2,
  81. // 'no-array-constructor': 2,
  82. // 'no-caller': 2,
  83. // 'no-console': 'off',
  84. // 'no-class-assign': 2,
  85. // 'no-cond-assign': 2,
  86. // 'no-const-assign': 2,
  87. // 'no-control-regex': 0,
  88. // 'no-delete-var': 2,
  89. // 'no-dupe-args': 2,
  90. // 'no-dupe-class-members': 2,
  91. // 'no-dupe-keys': 2,
  92. // 'no-duplicate-case': 2,
  93. // 'no-empty-character-class': 2,
  94. // 'no-empty-pattern': 2,
  95. // 'no-eval': 2,
  96. // 'no-ex-assign': 2,
  97. // 'no-extend-native': 2,
  98. // 'no-extra-bind': 2,
  99. // 'no-extra-boolean-cast': 2,
  100. // 'no-extra-parens': [2, 'functions'],
  101. // 'no-fallthrough': 2,
  102. // 'no-floating-decimal': 2,
  103. // 'no-func-assign': 2,
  104. // 'no-implied-eval': 2,
  105. // 'no-inner-declarations': [2, 'functions'],
  106. // 'no-invalid-regexp': 2,
  107. // 'no-irregular-whitespace': 2,
  108. // 'no-iterator': 2,
  109. // 'no-label-var': 2,
  110. // 'no-labels': [2, {
  111. // 'allowLoop': false,
  112. // 'allowSwitch': false
  113. // }],
  114. // 'no-lone-blocks': 2,
  115. // 'no-mixed-spaces-and-tabs': 2,
  116. // 'no-multi-spaces': 2,
  117. // 'no-multi-str': 2,
  118. // 'no-multiple-empty-lines': [2, {
  119. // 'max': 1
  120. // }],
  121. // 'no-native-reassign': 2,
  122. // 'no-negated-in-lhs': 2,
  123. // 'no-new-object': 2,
  124. // 'no-new-require': 2,
  125. // 'no-new-symbol': 2,
  126. // 'no-new-wrappers': 2,
  127. // 'no-obj-calls': 2,
  128. // 'no-octal': 2,
  129. // 'no-octal-escape': 2,
  130. // 'no-path-concat': 2,
  131. // 'no-proto': 2,
  132. // 'no-redeclare': 2,
  133. // 'no-regex-spaces': 2,
  134. // 'no-return-assign': [2, 'except-parens'],
  135. // 'no-self-assign': 2,
  136. // 'no-self-compare': 2,
  137. // // 'no-sequences': 2,
  138. // 'no-shadow-restricted-names': 2,
  139. // 'no-spaced-func': 2,
  140. // 'no-sparse-arrays': 2,
  141. // 'no-this-before-super': 2,
  142. // 'no-throw-literal': 2,
  143. // 'no-trailing-spaces': 2,
  144. // 'no-undef': 2,
  145. // 'no-undef-init': 2,
  146. // 'no-unexpected-multiline': 2,
  147. // 'no-unmodified-loop-condition': 2,
  148. // 'no-unneeded-ternary': [2, {
  149. // 'defaultAssignment': false
  150. // }],
  151. // 'no-unreachable': 2,
  152. // 'no-unsafe-finally': 2,
  153. // 'no-unused-vars': [2, {
  154. // 'vars': 'all',
  155. // 'args': 'none'
  156. // }],
  157. // 'no-useless-call': 2,
  158. // 'no-useless-computed-key': 2,
  159. // 'no-useless-constructor': 2,
  160. // 'no-useless-escape': 0,
  161. // 'no-whitespace-before-property': 2,
  162. // 'no-with': 2,
  163. // 'one-var': [2, {
  164. // 'initialized': 'never'
  165. // }],
  166. // 'operator-linebreak': [2, 'after', {
  167. // 'overrides': {
  168. // '?': 'before',
  169. // ':': 'before'
  170. // }
  171. // }],
  172. // 'padded-blocks': [2, 'never'],
  173. // 'quotes': [2, 'single', {
  174. // 'avoidEscape': true,
  175. // 'allowTemplateLiterals': true
  176. // }],
  177. // 'semi': [2, 'never'],
  178. // 'semi-spacing': [2, {
  179. // 'before': false,
  180. // 'after': true
  181. // }],
  182. // 'space-before-blocks': [2, 'always'],
  183. // 'space-before-function-paren': [2, 'never'],
  184. // 'space-in-parens': [2, 'never'],
  185. // 'space-infix-ops': 2,
  186. // 'space-unary-ops': [2, {
  187. // 'words': true,
  188. // 'nonwords': false
  189. // }],
  190. // 'spaced-comment': [2, 'always', {
  191. // 'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
  192. // }],
  193. // 'template-curly-spacing': [2, 'never'],
  194. // 'use-isnan': 2,
  195. // 'valid-typeof': 2,
  196. // 'wrap-iife': [2, 'any'],
  197. // 'yield-star-spacing': [2, 'both'],
  198. // 'yoda': [2, 'never'],
  199. // 'prefer-const': 2,
  200. // 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
  201. // 'object-curly-spacing': [2, 'always', {
  202. // objectsInObjects: false
  203. // }],
  204. // 'array-bracket-spacing': [2, 'never']
  205. // }
  206. }