tslint-config-remitly
Version:
Base typescript tslint configuration.
75 lines (71 loc) • 2.56 kB
JavaScript
module.exports = {
extends: [
"tslint:latest",
"tslint-react",
"tslint-eslint-rules",
],
rules: {
"jsx-alignment": true,
"jsx-curly-spacing": [true, "never"],
"jsx-no-lambda": true,
"jsx-no-multiline-js": false,
"jsx-no-string-ref": true,
"jsx-self-close": true,
"jsx-wrap-multiline": true,
"arrow-parens": [true, "ban-single-arg-parens"],
"array-type": [true, "generic"],
"interface-name": false,
"max-classes-per-file": false,
"member-access": false,
"object-literal-sort-keys": false,
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"variable-name": false,
"member-ordering": [true, {
order: [
"public-static-field",
"public-static-method",
"public-instance-field",
"constructor",
"public-instance-method",
"protected-static-field",
"protected-static-method",
"protected-instance-field",
"protected-instance-method",
"private-static-field",
"private-static-method",
"private-instance-field",
"private-instance-method",
],
}],
// tslint-eslint-rules
"no-multi-spaces": true,
"no-constant-condition": true,
"no-control-regex": true,
"no-duplicate-case": true,
"no-empty-character-class": true,
"no-ex-assign": true,
"no-extra-boolean-cast": true,
"no-extra-semi": true,
"no-inner-declarations": true,
"no-invalid-regexp": true,
"no-irregular-whitespace": true,
"no-regex-spaces": true,
"no-sparse-arrays": true,
"no-unexpected-multiline": true,
"use-isnan": true,
"valid-jsdoc": false,
"valid-typeof": [true, { requireStringLiterals: true }],
"handle-callback-err": false,
"array-bracket-spacing": [true, "never"],
"block-spacing": [true, "always"],
"brace-style": [true, "1tbs", { allowSingleLine: true }],
"ter-indent": [true, 4],
"object-curly-spacing": [true, "always"],
"ter-arrow-body-style": [true, "as-needed", { requireReturnForObjectLiteral: false }],
"ter-arrow-parens": [true, "as-needed"],
"ter-arrow-spacing": [true, {
before: true,
after: true,
}],
},
};