@dreipol/eslint-config-vue
Advanced tools
Comparing version 1.0.0 to 2.0.0
189
.eslintrc.js
module.exports = { | ||
'extends': [ | ||
'plugin:vue/recommended', | ||
'extends': [ | ||
'plugin:vue/recommended', | ||
], | ||
'rules': { | ||
'vue/attributes-order': [ | ||
'error', | ||
{ | ||
'order': [ | ||
'OTHER_ATTR', | ||
'DEFINITION', | ||
'LIST_RENDERING', | ||
'CONDITIONALS', | ||
'RENDER_MODIFIERS', | ||
'GLOBAL', | ||
'UNIQUE', | ||
'BINDING', | ||
'EVENTS', | ||
'CONTENT', | ||
], | ||
}, | ||
], | ||
'rules': { | ||
'vue/attributes-order': [ | ||
'error', | ||
{ | ||
'order': [ | ||
'OTHER_ATTR', | ||
'DEFINITION', | ||
'LIST_RENDERING', | ||
'CONDITIONALS', | ||
'RENDER_MODIFIERS', | ||
'GLOBAL', | ||
'UNIQUE', | ||
'BINDING', | ||
'EVENTS', | ||
'CONTENT', | ||
], | ||
}, | ||
'vue/html-closing-bracket-newline': [ | ||
'error', | ||
{ | ||
'singleline': 'never', | ||
'multiline': 'never', | ||
}, | ||
], | ||
'vue/html-closing-bracket-spacing': [ | ||
'warn', | ||
{ | ||
'startTag': 'never', | ||
'endTag': 'never', | ||
'selfClosingTag': 'never', | ||
}, | ||
], | ||
'vue/html-indent': [ | ||
'error', | ||
4, | ||
{ | ||
'attribute': 2, | ||
'alignAttributesVertically': false, | ||
}, | ||
], | ||
'vue/max-attributes-per-line': [ | ||
'error', | ||
{ | ||
'singleline': 3, | ||
'multiline': { | ||
'max': 1, | ||
'allowFirstLine': true, | ||
}, | ||
}, | ||
], | ||
'vue/order-in-components': [ | ||
'error', | ||
{ | ||
'order': [ | ||
'el', | ||
'name', | ||
'parent', | ||
'functional', | ||
'delimiters', | ||
'comments', | ||
'components', | ||
'directives', | ||
'filters', | ||
'extends', | ||
'mixins', | ||
'inheritAttrs', | ||
'provide', | ||
'inject', | ||
'model', | ||
'props', | ||
'propsData', | ||
'data', | ||
'computed', | ||
'methods', | ||
'watch', | ||
'LIFECYCLE_HOOKS', | ||
'events', | ||
'template', | ||
'render', | ||
'renderError', | ||
], | ||
'vue/html-indent': [ | ||
'error', | ||
4, | ||
{ | ||
'attribute': 2, | ||
'alignAttributesVertically': false, | ||
}, | ||
}, | ||
], | ||
}, | ||
'overrides': [ | ||
{ | ||
'files': [ | ||
'*.vue', | ||
], | ||
'rules': { | ||
'indent': 'off', | ||
'vue/script-indent': [ | ||
'error', | ||
4, | ||
{ | ||
'baseIndent': 1, | ||
'switchCase': 1, | ||
}, | ||
], | ||
'vue/max-attributes-per-line': [ | ||
'error', | ||
{ | ||
'singleline': 3, | ||
'multiline': { | ||
'max': 1, | ||
'allowFirstLine': true, | ||
}, | ||
}, | ||
], | ||
'vue/order-in-components': [ | ||
'error', | ||
{ | ||
'order': [ | ||
'el', | ||
'name', | ||
'parent', | ||
'functional', | ||
'delimiters', | ||
'comments', | ||
'components', | ||
'directives', | ||
'filters', | ||
'extends', | ||
'mixins', | ||
'inheritAttrs', | ||
'provide', | ||
'inject', | ||
'model', | ||
'props', | ||
'propsData', | ||
'data', | ||
'computed', | ||
'methods', | ||
'watch', | ||
'LIFECYCLE_HOOKS', | ||
'events', | ||
'template', | ||
'render', | ||
'renderError', | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
'overrides': [ | ||
{ | ||
'files': [ | ||
'*.vue', | ||
], | ||
'rules': { | ||
'indent': 'off', | ||
'vue/script-indent': [ | ||
'error', | ||
4, | ||
{ | ||
'baseIndent': 1, | ||
'switchCase': 1, | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
], | ||
}; |
{ | ||
"name": "@dreipol/eslint-config-vue", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Eslint configuration for our vue frontend", | ||
@@ -20,5 +20,5 @@ "main": ".eslintrc.js", | ||
"peerDependencies": { | ||
"eslint-plugin-vue": "^4.5.0" | ||
"eslint-plugin-vue": "^5.1.0" | ||
}, | ||
"homepage": "https://github.com/dreipol/eslint-config-vue#readme" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
108
4165