Skip to content

Commit

Permalink
🔧 Clamp down on codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg committed Jul 31, 2018
1 parent 528aba1 commit 23aca61
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"contributors": "node ./tools/contributors.js",
"less": "node ./tools/lessc.js",
"lint:style": "stylelint ./src/less/*.less --fix",
"lint:ts": "tslint -c tslint.json -p tsconfig.json -e \"node_modules/**/*.ts\"",
"lint:ts": "tslint -c tslint.json -p tsconfig.json -e \"node_modules/**/*.ts\" --fix",
"lint": "npm-run-all lint:*",
"make": "electron-forge make",
"package": "electron-forge package",
Expand Down
34 changes: 19 additions & 15 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
{
"extends": ["tslint:latest", "tslint-react", "tslint:recommended"],
"rules": {
"curly": false,
"eofline": false,
"align": [true, "parameters"],
"array-type": [true, "generic"],
"arrow-parens": true,
"class-name": true,
"comment-format": [false],
"comment-format": [true, "check-space"],
"curly": [true, "ignore-same-line"],
"eofline": true,
"indent": [true, "spaces"],
"max-line-length": [true, 150],
"no-angle-bracket-type-assertion": true,
"no-bitwise": false,
"no-consecutive-blank-lines": [true, 2],
"no-trailing-whitespace": true,
"no-console": false,
"no-construct": true,
"no-default-export": true,
"no-duplicate-variable": true,
"no-bitwise": false,
"no-var-keyword": true,
"no-var-requires": false,
"no-empty": true,
"no-console": false,
"no-empty-interface": false,
"no-unused-expression": true,
"no-empty": true,
"no-eval": true,
"no-floating-promises": false,
"no-implicit-dependencies": false,
"no-reference": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-implicit-dependencies": false,
"no-var-keyword": true,
"no-var-requires": false,
"prefer-const": true,
"interface-name": [
false
],
"jsx-no-lambda": false,
"object-literal-sort-keys": false,
"object-literal-key-quotes": [true, "as-needed"],
"only-arrow-functions": [false],
"ordered-imports": [false],
"one-variable-per-declaration": [false],
"ordered-imports": [true],
"one-variable-per-declaration": [true],
"one-line": [false,
"check-else",
"check-whitespace",
Expand All @@ -46,7 +50,7 @@
],
"max-classes-per-file": [false],
"semicolon": [true, "always"],
"switch-default": false,
"switch-default": true,
"trailing-comma": [false],
"typedef": [
true,
Expand All @@ -73,6 +77,6 @@
]
},
"rulesDirectory": [
"node_modules/tslint-microsoft-contrib"
"node_modules/tslint-microsoft-contrib"
]
}

0 comments on commit 23aca61

Please sign in to comment.