mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-18 19:25:48 +00:00
74 lines
2.3 KiB
JSON
74 lines
2.3 KiB
JSON
{
|
|
"extends": [
|
|
"tslint-eslint-rules"
|
|
],
|
|
"rules": {
|
|
"ban": [true, ["alert"]],
|
|
"no-arg": true,
|
|
"no-conditional-assignment": true,
|
|
"no-console": false,
|
|
"no-constant-condition": true,
|
|
"no-control-regex": true,
|
|
"no-debugger": true,
|
|
"no-duplicate-case": true,
|
|
"no-empty": true,
|
|
"no-empty-character-class": true,
|
|
"no-eval": true,
|
|
"no-ex-assign": true,
|
|
"no-extra-boolean-cast": true,
|
|
"no-extra-semi": true,
|
|
"no-switch-case-fall-through": true,
|
|
"no-inner-declarations": [true, "functions"],
|
|
"no-invalid-regexp": true,
|
|
"no-invalid-this": false,
|
|
"no-irregular-whitespace": true,
|
|
"ter-no-irregular-whitespace": true,
|
|
"label-position": true,
|
|
"indent": [true, "spaces", 2],
|
|
"linebreak-style": [true, "unix"],
|
|
"no-multi-spaces": true,
|
|
"no-consecutive-blank-lines": [true, 2],
|
|
"no-unused-expression": true,
|
|
"no-construct": true,
|
|
"no-duplicate-variable": true,
|
|
"no-regex-spaces": true,
|
|
"no-shadowed-variable": true,
|
|
"ter-no-sparse-arrays": true,
|
|
"no-trailing-whitespace": true,
|
|
"no-string-throw": true,
|
|
"no-unexpected-multiline": true,
|
|
"no-var-keyword": true,
|
|
"no-magic-numbers": false,
|
|
"array-bracket-spacing": [true, "never"],
|
|
"ter-arrow-body-style": false,
|
|
"ter-arrow-parens": [true, "as-needed"],
|
|
"ter-arrow-spacing": true,
|
|
"block-spacing": true,
|
|
"brace-style": [true, "1tbs", {"allowSingleLine": true}],
|
|
"variable-name": false,
|
|
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
|
|
"cyclomatic-complexity": [false, 11],
|
|
"curly": [true, "all"],
|
|
"switch-default": false,
|
|
"eofline": true,
|
|
"triple-equals": true,
|
|
"forin": false,
|
|
"handle-callback-err": true,
|
|
"ter-max-len": [true, 120],
|
|
"new-parens": true,
|
|
"object-curly-spacing": [true, "never"],
|
|
"object-literal-shorthand": false,
|
|
"one-variable-per-declaration": [true, "ignore-for-loop"],
|
|
"ter-prefer-arrow-callback": false,
|
|
"prefer-const": true,
|
|
"object-literal-key-quotes": false,
|
|
"quotemark": [true, "single"],
|
|
"radix": true,
|
|
"semicolon": [true, "never"],
|
|
"space-in-parens": [true, "never"],
|
|
"comment-format": [true, "check-space"],
|
|
"use-isnan": true,
|
|
"valid-typeof": true
|
|
}
|
|
}
|