mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
190 lines
4.7 KiB
JSON
190 lines
4.7 KiB
JSON
{
|
|
"extends": [
|
|
"tslint-eslint-rules"
|
|
],
|
|
"rules": {
|
|
"align": [
|
|
true,
|
|
"parameters",
|
|
"statements"
|
|
],
|
|
"array-bracket-spacing": [true, "never"],
|
|
"ban": [
|
|
true,
|
|
[ "_", "forEach" ],
|
|
[ "_", "each" ],
|
|
[ "$", "each" ],
|
|
[ "angular", "forEach" ]
|
|
],
|
|
"block-spacing": [true, "always"],
|
|
"brace-style": [true, "1tbs"],
|
|
"class-name": true,
|
|
"comment-format": [
|
|
true,
|
|
"check-space",
|
|
"check-lowercase"
|
|
],
|
|
"curly": true,
|
|
"eofline": true,
|
|
"forin": true,
|
|
"indent": [
|
|
true,
|
|
"spaces"
|
|
],
|
|
"interface-name": [
|
|
true,
|
|
"always-prefix"
|
|
],
|
|
"import-spacing": true,
|
|
"jsdoc-format": true,
|
|
"label-position": true,
|
|
"max-line-length": false,
|
|
"member-access": true,
|
|
"member-ordering": [
|
|
true,
|
|
{ "order": "fields-first" }
|
|
],
|
|
"new-parens": false,
|
|
"no-angle-bracket-type-assertion": false,
|
|
"no-any": false,
|
|
"no-arg": true,
|
|
"no-bitwise": true,
|
|
"no-conditional-assignment": true,
|
|
"no-consecutive-blank-lines": true,
|
|
"no-console": [
|
|
true,
|
|
"debug",
|
|
"info",
|
|
"time",
|
|
"timeEnd",
|
|
"trace"
|
|
],
|
|
"no-constant-condition": true,
|
|
"no-construct": true,
|
|
"no-control-regex": true,
|
|
"no-debugger": true,
|
|
"no-default-export": true,
|
|
"no-duplicate-case": true,
|
|
"no-duplicate-variable": true,
|
|
"no-empty": false,
|
|
"no-empty-character-class": true,
|
|
"no-empty-interface": true,
|
|
"no-eval": false,
|
|
"no-ex-assign": true,
|
|
"no-extra-boolean-cast": true,
|
|
"no-extra-semi": true,
|
|
"no-inferrable-types": false,
|
|
"no-inner-declarations": [true, "both"],
|
|
"no-internal-module": true,
|
|
"no-invalid-regexp": true,
|
|
"no-invalid-this": true,
|
|
"no-misused-new": true,
|
|
"no-multi-spaces": [true],
|
|
"no-null-keyword": false,
|
|
"no-parameter-properties": true,
|
|
"no-reference": true,
|
|
"no-reference-import": true,
|
|
"no-regex-spaces": true,
|
|
"no-require-imports": false,
|
|
"no-shadowed-variable": true,
|
|
"no-string-literal": true,
|
|
"no-string-throw": true,
|
|
"no-switch-case-fall-through": false,
|
|
"no-trailing-whitespace": false,
|
|
"no-unnecessary-callback-wrapper": true,
|
|
"no-unexpected-multiline": true,
|
|
"no-unused-expression": true,
|
|
"no-use-before-declare": true,
|
|
"no-var-keyword": true,
|
|
"no-var-requires": false,
|
|
"object-curly-spacing": [true, "always"],
|
|
"object-literal-sort-keys": false,
|
|
"one-line": [
|
|
true,
|
|
"check-open-brace",
|
|
"check-catch",
|
|
"check-else",
|
|
"check-finally",
|
|
"check-whitespace"
|
|
],
|
|
"one-variable-per-declaration": false,
|
|
"only-arrow-functions": [true, "allow-declarations"],
|
|
"prefer-const": true,
|
|
"prefer-template": true,
|
|
"quotemark": false,
|
|
"radix": true,
|
|
"semicolon": [true, "always"],
|
|
"space-before-function-paren": true,
|
|
"space-in-parens": [true, "never"],
|
|
"switch-default": false,
|
|
"ter-arrow-parens": true,
|
|
"ter-func-call-spacing": [true, "never"],
|
|
"ter-indent": [
|
|
true,
|
|
4,
|
|
{
|
|
"ArrayExpression": 1,
|
|
"CallExpression": { "arguments": "first" },
|
|
"FunctionDeclaration": { "body": 1, "parameters": 1 },
|
|
"FunctionExpression": { "body": 1, "parameters": 1 },
|
|
"MemberExpression": 1,
|
|
"ObjectExpression": 1,
|
|
"outerIIFEBody": 1,
|
|
"SwitchCase": 1,
|
|
"VariableDeclarator": 1
|
|
}
|
|
],
|
|
"ter-no-irregular-whitespace": [true],
|
|
"ter-no-sparse-arrays": [true],
|
|
"trailing-comma": false,
|
|
"triple-equals": [
|
|
true,
|
|
"allow-null-check",
|
|
"allow-undefined-check"
|
|
],
|
|
"typedef": [
|
|
true,
|
|
"call-signature",
|
|
"parameter",
|
|
"arrow-parameter",
|
|
"property-declaration",
|
|
"variable-declaration",
|
|
"member-variable-declaration"
|
|
],
|
|
"typedef-whitespace": [
|
|
true,
|
|
{
|
|
"call-signature": "nospace",
|
|
"index-signature": "nospace",
|
|
"parameter": "nospace",
|
|
"property-declaration": "nospace",
|
|
"variable-declaration": "nospace"
|
|
},
|
|
{
|
|
"call-signature": "space",
|
|
"index-signature": "space",
|
|
"parameter": "space",
|
|
"property-declaration": "space",
|
|
"variable-declaration": "space"
|
|
}
|
|
],
|
|
"typeof-compare": true,
|
|
"unified-signatures": true,
|
|
"use-isnan": true,
|
|
"valid-jsdoc": [false, {
|
|
"requireReturn": false,
|
|
"requireParamDescription": false,
|
|
"requireReturnDescription": false
|
|
}],
|
|
"valid-typeof": true,
|
|
"variable-name": false,
|
|
"whitespace": [
|
|
true,
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-separator",
|
|
"check-type"
|
|
]
|
|
}
|
|
} |