You've already forked vue-clamp
54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
'extends': [
|
|
'plugin:vue/essential',
|
|
'plugin:vue/strongly-recommended',
|
|
'plugin:vue/recommended',
|
|
'@vue/standard'
|
|
],
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'vue/name-property-casing': ['error', 'kebab-case'],
|
|
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
|
|
'vue/html-indent': [
|
|
'error',
|
|
2,
|
|
{
|
|
attribute: 1,
|
|
baseIndent: 0,
|
|
closeBracket: 0,
|
|
alignAttributesVertically: true
|
|
}
|
|
],
|
|
'vue/html-self-closing': [
|
|
'error',
|
|
{
|
|
html: {
|
|
void: 'never',
|
|
normal: 'always',
|
|
component: 'always'
|
|
},
|
|
svg: 'always',
|
|
math: 'always'
|
|
}
|
|
],
|
|
'vue/html-closing-bracket-spacing': [
|
|
'error',
|
|
{
|
|
startTag: 'never',
|
|
endTag: 'never',
|
|
selfClosingTag: 'never'
|
|
}
|
|
],
|
|
'vue/no-v-html': 0,
|
|
'vue/singleline-html-element-content-newline': 0
|
|
},
|
|
parserOptions: {
|
|
parser: 'babel-eslint'
|
|
}
|
|
}
|