65 строки
1.6 KiB
JSON
65 строки
1.6 KiB
JSON
{
|
|
"extends": ["tslint:latest", "tslint-react"],
|
|
"rules": {
|
|
// Since prettier is automatically handling formatting, these rules do not need to be enabled
|
|
"eofline": false,
|
|
"quotemark": false,
|
|
"semicolon": false,
|
|
"indent": false,
|
|
"trailing-comma": false,
|
|
"align": false,
|
|
"whitespace": false,
|
|
|
|
// Annoying rules, but may be worth re-enabling at some point
|
|
"ordered-imports": false,
|
|
|
|
// Ignoring this temporarily until we get the refactor up
|
|
"ban-types": false,
|
|
|
|
// This should only be enabled for test file (stories, specs, etc..)
|
|
"no-implicit-dependencies": [true, "dev"],
|
|
|
|
"ban": false,
|
|
"class-name": true,
|
|
"forin": true,
|
|
"arrow-parens": false,
|
|
"interface-name": [true, "never-prefix"],
|
|
"jsx-curly-spacing": false,
|
|
"jsdoc-format": true,
|
|
"jsx-no-lambda": false,
|
|
"jsx-no-multiline-js": false,
|
|
"jsx-wrap-multiline": false,
|
|
"label-position": true,
|
|
"object-literal-sort-keys": false,
|
|
"no-submodule-imports": false,
|
|
"no-var-requires": false,
|
|
"member-ordering": [
|
|
true,
|
|
"static-before-instance",
|
|
"variables-before-functions"
|
|
],
|
|
"no-arg": true,
|
|
"no-bitwise": true,
|
|
"no-console": true,
|
|
"no-construct": true,
|
|
"no-debugger": true,
|
|
"no-duplicate-variable": true,
|
|
"no-empty": true,
|
|
"no-eval": true,
|
|
"no-shadowed-variable": true,
|
|
"no-string-literal": true,
|
|
"no-switch-case-fall-through": true,
|
|
"radix": true,
|
|
"switch-default": true,
|
|
"triple-equals": [true, "allow-null-check"],
|
|
"typedef": [true, "parameter", "property-declaration"],
|
|
"variable-name": [
|
|
true,
|
|
"ban-keywords",
|
|
"check-format",
|
|
"allow-leading-underscore",
|
|
"allow-pascal-case"
|
|
]
|
|
}
|
|
}
|