mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 23:27:20 +03:00
79 lines
2.0 KiB
JSON
79 lines
2.0 KiB
JSON
{
|
|
"linterOptions": {
|
|
"exclude": [
|
|
"src/mathjax/**/*"
|
|
]
|
|
},
|
|
"rules": {
|
|
"align": [true, "parameters", "statements"],
|
|
"array-type": [true, "array"],
|
|
"class-name": true,
|
|
"curly": true,
|
|
"eofline": true,
|
|
"indent": [true, "spaces"],
|
|
"label-position": true,
|
|
"no-angle-bracket-type-assertion": true,
|
|
"no-arg": true,
|
|
"no-conditional-assignment": true,
|
|
"no-consecutive-blank-lines": [true, 2],
|
|
"no-construct": true,
|
|
"no-default-export": true,
|
|
"no-duplicate-variable": true,
|
|
"no-eval": true,
|
|
"no-invalid-this": true,
|
|
"no-require-imports": true,
|
|
"no-shadowed-variable": true,
|
|
"no-trailing-whitespace": true,
|
|
"no-unused-expression": true,
|
|
"no-var-keyword": true,
|
|
"object-literal-shorthand": true,
|
|
"one-line": [
|
|
true,
|
|
"check-catch",
|
|
"check-else",
|
|
"check-finally",
|
|
"check-open-brace",
|
|
"check-whitespace"
|
|
],
|
|
"one-variable-per-declaration": [true, "ignore-for-loop"],
|
|
"only-arrow-functions": [true, "allow-declarations"],
|
|
"prefer-const": true,
|
|
"quotemark": [true, "avoid-escape", "single"],
|
|
"semicolon": [true, "never"],
|
|
"switch-default": true,
|
|
"triple-equals": true,
|
|
"typedef-whitespace": [
|
|
true,
|
|
{
|
|
"call-signature": "onespace",
|
|
"index-signature": "nospace",
|
|
"parameter": "nospace",
|
|
"property-declaration": "nospace",
|
|
"variable-declaration": "nospace"
|
|
},
|
|
{
|
|
"call-signature": "onespace",
|
|
"index-signature": "onespace",
|
|
"parameter": "onespace",
|
|
"property-declaration": "onespace",
|
|
"variable-declaration": "onespace"
|
|
}
|
|
],
|
|
"variable-name": [
|
|
true,
|
|
"allow-leading-underscore",
|
|
"ban-keywords",
|
|
"check-format"
|
|
],
|
|
"whitespace": [
|
|
true,
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-separator",
|
|
"check-type",
|
|
"check-typecast"
|
|
]
|
|
}
|
|
}
|