style(editorconfig): Add json rule to editor config (#297)
We aggreed to use 2 indent size in json files. The reason is npm use 2 indent in package.json and this is the defacto
This commit is contained in:
committed by
László Monda
parent
85db54b00f
commit
8e823b57b4
@@ -9,3 +9,6 @@ indent_style = space
|
|||||||
endofline = lf
|
endofline = lf
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_size = 2
|
||||||
|
|||||||
@@ -9,5 +9,10 @@
|
|||||||
"removeComments": false,
|
"removeComments": false,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"suppressImplicitAnyIndexErrors": true
|
"suppressImplicitAnyIndexErrors": true
|
||||||
}
|
},
|
||||||
|
"exclude": [
|
||||||
|
"./node_modules",
|
||||||
|
".electron/dist",
|
||||||
|
"./dist"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
190
tslint.json
190
tslint.json
@@ -1,97 +1,97 @@
|
|||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
"member-ordering": [
|
"member-ordering": [
|
||||||
true,
|
true,
|
||||||
"public-before-private",
|
"public-before-private",
|
||||||
"static-before-instance",
|
"static-before-instance",
|
||||||
"variables-before-functions"
|
"variables-before-functions"
|
||||||
],
|
],
|
||||||
"no-internal-module": true,
|
"no-internal-module": true,
|
||||||
"class-name": true,
|
"class-name": true,
|
||||||
"curly": true,
|
"curly": true,
|
||||||
"no-construct": true,
|
"no-construct": true,
|
||||||
"no-duplicate-variable": true,
|
"no-duplicate-variable": true,
|
||||||
"no-eval": true,
|
"no-eval": true,
|
||||||
"no-shadowed-variable": true,
|
"no-shadowed-variable": true,
|
||||||
"no-switch-case-fall-through": true,
|
"no-switch-case-fall-through": true,
|
||||||
"no-unused-expression": true,
|
"no-unused-expression": true,
|
||||||
"no-use-before-declare": true,
|
"no-use-before-declare": true,
|
||||||
"no-var-keyword": true,
|
"no-var-keyword": true,
|
||||||
"space-before-function-paren": false,
|
"space-before-function-paren": false,
|
||||||
"import-spacing": true,
|
"import-spacing": true,
|
||||||
"prefer-const": true,
|
"prefer-const": true,
|
||||||
"arrow-parens": [
|
"arrow-parens": [
|
||||||
true,
|
true,
|
||||||
"ban-single-arg-parens"
|
"ban-single-arg-parens"
|
||||||
],
|
],
|
||||||
"radix": true,
|
"radix": true,
|
||||||
"switch-default": true,
|
"switch-default": true,
|
||||||
"triple-equals": true,
|
"triple-equals": true,
|
||||||
"eofline": true,
|
"eofline": true,
|
||||||
"indent": [
|
"indent": [
|
||||||
true,
|
true,
|
||||||
"spaces"
|
"spaces"
|
||||||
],
|
],
|
||||||
"max-line-length": [
|
"max-line-length": [
|
||||||
true,
|
true,
|
||||||
130
|
130
|
||||||
],
|
],
|
||||||
"no-trailing-whitespace": true,
|
"no-trailing-whitespace": true,
|
||||||
"trailing-comma": [
|
"trailing-comma": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
"multiline": "never",
|
"multiline": "never",
|
||||||
"singleline": "never"
|
"singleline": "never"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"align": [
|
"align": [
|
||||||
true,
|
true,
|
||||||
"parameters",
|
"parameters",
|
||||||
"arguments",
|
"arguments",
|
||||||
"statements"
|
"statements"
|
||||||
],
|
],
|
||||||
"comment-format": [
|
"comment-format": [
|
||||||
true,
|
true,
|
||||||
"check-space"
|
"check-space"
|
||||||
],
|
],
|
||||||
"no-consecutive-blank-lines": true,
|
"no-consecutive-blank-lines": true,
|
||||||
"one-line": [
|
"one-line": [
|
||||||
true,
|
true,
|
||||||
"check-open-brace",
|
"check-open-brace",
|
||||||
"check-whitespace"
|
"check-whitespace"
|
||||||
],
|
],
|
||||||
"quotemark": [
|
"quotemark": [
|
||||||
true,
|
true,
|
||||||
"single"
|
"single"
|
||||||
],
|
],
|
||||||
"semicolon": [
|
"semicolon": [
|
||||||
true,
|
true,
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
"typedef-whitespace": [
|
"typedef-whitespace": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
"call-signature": "nospace",
|
"call-signature": "nospace",
|
||||||
"index-signature": "nospace",
|
"index-signature": "nospace",
|
||||||
"parameter": "nospace",
|
"parameter": "nospace",
|
||||||
"property-declaration": "nospace",
|
"property-declaration": "nospace",
|
||||||
"variable-declaration": "nospace"
|
"variable-declaration": "nospace"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"variable-name": [
|
"variable-name": [
|
||||||
true,
|
true,
|
||||||
"ban-keywords",
|
"ban-keywords",
|
||||||
"check-format",
|
"check-format",
|
||||||
"allow-leading-underscore"
|
"allow-leading-underscore"
|
||||||
],
|
],
|
||||||
"whitespace": [
|
"whitespace": [
|
||||||
true,
|
true,
|
||||||
"check-branch",
|
"check-branch",
|
||||||
"check-decl",
|
"check-decl",
|
||||||
"check-operator",
|
"check-operator",
|
||||||
"check-module",
|
"check-module",
|
||||||
"check-separator",
|
"check-separator",
|
||||||
"check-type"
|
"check-type"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user