Improve linting

master
Joe Biellik 4 years ago
parent a1fceed8a6
commit 6785800aae

@ -1,6 +1,7 @@
{
"env": {
"node": true
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 11
@ -20,6 +21,6 @@
"no-useless-backreference": ["error"],
"quotes": ["error", "single", "avoid-escape"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}]
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }]
}
}

@ -0,0 +1,30 @@
{
"disallowAttributeInterpolation": true,
"disallowAttributeTemplateString": "all",
"disallowBlockExpansion": true,
"disallowClassAttributeWithStaticValue": true,
"disallowClassLiteralsBeforeIdLiterals": true,
"disallowDuplicateAttributes": true,
"disallowHtmlText": true,
"disallowIdAttributeWithStaticValue": true,
"disallowLegacyMixinCall": true,
"disallowMultipleLineBreaks": true,
"disallowSpacesInsideAttributeBrackets": true,
"disallowStringConcatenation": "aggressive",
"disallowTemplateString": "all",
"disallowTrailingSpaces": true,
"requireClassLiteralsBeforeAttributes": true,
"requireIdLiteralsBeforeAttributes": true,
"requireLineFeedAtFileEnd": true,
"requireLowerCaseAttributes": true,
"requireLowerCaseTags": true,
"requireSpaceAfterCodeOperator": true,
"requireStrictEqualityOperators": true,
"validateAttributeQuoteMarks": "'",
"validateAttributeSeparator": " ",
"validateDivTags": true,
"validateIndentation": 2,
"validateLineBreaks": "LF",
"validateSelfClosingTags": true,
"validateTemplateString": true
}
Loading…
Cancel
Save