54 lines
1.8 KiB
JSON
54 lines
1.8 KiB
JSON
{
|
|
"extends": ["tslint:latest", "tslint-react", "tslint-eslint-rules"],
|
|
"rules": {
|
|
"no-default-export": true,
|
|
"no-unused-expression": true,
|
|
"no-unused-variable": [true, "react"],
|
|
"no-submodule-imports": false,
|
|
"space-before-function-paren": [true, {"anonymous": "always"}],
|
|
"trailing-comma": false,
|
|
"max-line-length": [true, 240],
|
|
"no-namespace": false,
|
|
"no-empty-interface": false,
|
|
"jsx-curly-spacing": [true, "always"],
|
|
"jsx-no-multiline-js": false,
|
|
"quotemark": [true, "single", "jsx-double"],
|
|
"object-literal-key-quotes": [true, "as-needed"],
|
|
"object-literal-sort-keys" : false,
|
|
"array-type": [true, "generic"],
|
|
"prefer-for-of": false,
|
|
"typedef-whitespace": [
|
|
true, {
|
|
"call-signature": "onespace",
|
|
"index-signature": "onespace",
|
|
"parameter": "onespace",
|
|
"property-declaration": "onespace",
|
|
"variable-declaration": "onespace"
|
|
}, {
|
|
"call-signature": "onespace",
|
|
"index-signature": "onespace",
|
|
"parameter": "onespace",
|
|
"property-declaration": "onespace",
|
|
"variable-declaration": "onespace"
|
|
}
|
|
],
|
|
"prefer-conditional-expression": false,
|
|
|
|
"jsx-attribute-spacing": true,
|
|
"jsx-expression-spacing": true,
|
|
"jsx-no-braces-for-string-attributes": true,
|
|
"no-braces-for-single-line-arrow-functions": true,
|
|
|
|
"object-curly-spacing": [true, "always"]
|
|
},
|
|
"defaultSeverity": "warning",
|
|
"rulesDirectory": [
|
|
"./node_modules/tslint-misc-rules/rules"
|
|
],
|
|
"linterOptions": {
|
|
"exclude": [
|
|
"./src/**/*.spec.*"
|
|
]
|
|
}
|
|
}
|