|
@@ -11,7 +11,7 @@ module.exports = {
|
|
extends: [
|
|
extends: [
|
|
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
|
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
|
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
|
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
|
- 'plugin:vue/essential',
|
|
|
|
|
|
+ 'plugin:vue/essential',
|
|
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
|
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
|
'standard'
|
|
'standard'
|
|
],
|
|
],
|
|
@@ -21,6 +21,24 @@ module.exports = {
|
|
],
|
|
],
|
|
// add your custom rules here
|
|
// add your custom rules here
|
|
rules: {
|
|
rules: {
|
|
|
|
+ 'max-len': [
|
|
|
|
+ 'warn',
|
|
|
|
+ {
|
|
|
|
+ code: 10000,
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ 'no-unused-vars': 'off',
|
|
|
|
+ 'no-console': 'off',
|
|
|
|
+ 'prettier/prettier': [
|
|
|
|
+ 'warn',
|
|
|
|
+ {
|
|
|
|
+ singleQuote: true,
|
|
|
|
+ trailingComma: 'es5',
|
|
|
|
+ bracketSpacing: true,
|
|
|
|
+ jsxBracketSameLine: true,
|
|
|
|
+ printWidth: 160,
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
// allow async-await
|
|
// allow async-await
|
|
'generator-star-spacing': 'off',
|
|
'generator-star-spacing': 'off',
|
|
// allow debugger during development
|
|
// allow debugger during development
|