|
@@ -0,0 +1,48 @@
|
|
|
+module.exports = {
|
|
|
+ root: true,
|
|
|
+ parserOptions: {
|
|
|
+ parser: 'babel-eslint',
|
|
|
+ sourceType: 'module'
|
|
|
+ },
|
|
|
+ env: {
|
|
|
+ browser: true,
|
|
|
+ },
|
|
|
+ extends: [
|
|
|
+ 'plugin:vue/essential',
|
|
|
+ 'standard'
|
|
|
+ ],
|
|
|
+ plugins: [
|
|
|
+ 'html',
|
|
|
+ 'standard',
|
|
|
+ 'vue'
|
|
|
+ ],
|
|
|
+ rules: {
|
|
|
+ 'generator-star-spacing': 'off',
|
|
|
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
+ 'indent': [ 'error', 4, { 'SwitchCase': 1 } ],
|
|
|
+ 'brace-style': [ 'error', '1tbs' ],
|
|
|
+ 'semi': [ 'error', 'always' ],
|
|
|
+ 'no-console': 'error',
|
|
|
+ 'comma-dangle': [ 'error', {
|
|
|
+ 'arrays': 'never',
|
|
|
+ 'objects': 'always-multiline',
|
|
|
+ 'imports': 'never',
|
|
|
+ 'exports': 'never',
|
|
|
+ 'functions': 'never'
|
|
|
+ }],
|
|
|
+ 'no-multiple-empty-lines': [ 'error', { 'max': 2, 'maxBOF': 1 }],
|
|
|
+ 'no-undef': 'error',
|
|
|
+ 'space-in-parens': ['error', 'never'],
|
|
|
+ 'space-before-function-paren': [
|
|
|
+ 'error',
|
|
|
+ 'always'
|
|
|
+ ],
|
|
|
+ 'quotes': ['error', 'single'],
|
|
|
+ 'space-before-blocks': [
|
|
|
+ 'error',
|
|
|
+ 'always'
|
|
|
+ ],
|
|
|
+ 'no-empty': 'error',
|
|
|
+ 'no-duplicate-imports': 'error'
|
|
|
+ }
|
|
|
+}
|