Добавлены конфиги для линтеров
This commit is contained in:
parent
4ae7e1c6ba
commit
9f60399549
2 changed files with 48 additions and 0 deletions
31
.eslintrc.json
Normal file
31
.eslintrc.json
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"es6": true
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"indent": "error",
|
||||||
|
"space-before-blocks": "error",
|
||||||
|
"keyword-spacing": "error",
|
||||||
|
"space-infix-ops": "error",
|
||||||
|
"space-in-parens": "error",
|
||||||
|
"brace-style": "error",
|
||||||
|
"comma-spacing": "error",
|
||||||
|
"array-bracket-spacing": "error",
|
||||||
|
"no-multi-spaces": "error",
|
||||||
|
"no-multiple-empty-lines": "error",
|
||||||
|
"computed-property-spacing": "error",
|
||||||
|
"func-call-spacing": "error",
|
||||||
|
"max-len": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"code": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"semi": "error",
|
||||||
|
"no-use-before-define": "error",
|
||||||
|
"no-array-constructor": "error"
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 2017
|
||||||
|
}
|
||||||
|
}
|
||||||
17
.htmlhintrc
Normal file
17
.htmlhintrc
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"doctype-first": true,
|
||||||
|
"title-require": true,
|
||||||
|
"style-disabled": true,
|
||||||
|
"inline-style-disabled": true,
|
||||||
|
"tagname-lowercase": true,
|
||||||
|
"inline-script-disabled": true,
|
||||||
|
"attr-lowercase": true,
|
||||||
|
"attr-value-double-quotes": true,
|
||||||
|
"attr-no-duplication": true,
|
||||||
|
"attr-no-unnecessary-whitespace": true,
|
||||||
|
"tag-pair": true,
|
||||||
|
"spec-char-escape": true,
|
||||||
|
"id-unique": true,
|
||||||
|
"src-not-empty": true,
|
||||||
|
"space-tab-mixed-disabled": "space4"
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue