Skip to content

Commit

Permalink
⚒ tweak TS config
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Dec 15, 2018
1 parent 15ae4a6 commit 184e21c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/configs/_ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ module.exports = {
parser: require.resolve("typescript-eslint-parser"),
rules: {
// Enabled rules
"one-var": ["error", "never"],
"@mysticatea/ts/adjacent-overload-signatures": "error",
"@mysticatea/ts/class-name-casing": "error",
"@mysticatea/ts/explicit-function-return-type": [
"error",
{ allowExpressions: true },
],
"@mysticatea/ts/explicit-member-accessibility": "error",
"@mysticatea/ts/member-naming": "error",
"@mysticatea/ts/no-angle-bracket-type-assertion": "error",
Expand All @@ -28,8 +23,6 @@ module.exports = {
"@mysticatea/ts/no-inferrable-types": "error",
"@mysticatea/ts/no-parameter-properties": "error",
"@mysticatea/ts/no-triple-slash-reference": "error",
"@mysticatea/ts/no-unused-vars": "error",
"@mysticatea/ts/no-use-before-define": "error",
"@mysticatea/ts/no-var-requires": "error",
"@mysticatea/ts/prefer-namespace-keyword": "error",
"@mysticatea/prettier": [
Expand All @@ -49,20 +42,25 @@ module.exports = {
"func-style": "off",
"init-declarations": "off",
"lines-between-class-members": "off",
"no-dupe-class-members": "off",
"no-invalid-this": "off",
"no-loop-func": "off",
"no-redeclare": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"one-var": "off",
"valid-jsdoc": "off",
"@mysticatea/ts/explicit-function-return-type": "off", // I want but this is not so...
"@mysticatea/ts/interface-name-prefix": "off",
"@mysticatea/ts/member-delimiter-style": "off", // favor of Prettier.
"@mysticatea/ts/member-ordering": "off",
"@mysticatea/ts/no-explicit-any": "off",
"@mysticatea/ts/no-namespace": "off", // I like the namespace for interfaces (type only things).
"@mysticatea/ts/no-non-null-assertion": "off",
"@mysticatea/ts/no-type-alias": "off",
"@mysticatea/ts/no-unused-vars": "off", // tsc verifies it.
"@mysticatea/ts/no-use-before-define": "off", // tsc verifies it.
"@mysticatea/ts/type-annotation-spacing": "off", // favor of Prettier.
},
settings: {
Expand Down

0 comments on commit 184e21c

Please sign in to comment.