Skip to content

Commit

Permalink
Merge pull request #5 from TechSmith/tslint
Browse files Browse the repository at this point in the history
Add tslint rules
  • Loading branch information
Mike-Bell authored Mar 19, 2018
2 parents bc83dbc + cae074f commit 4f33c38
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"version": "1.1.0",
"peerDependencies": {
"eslint": ">=3.14.1"
},
"dependencies": {
"tslint-eslint-rules": "^4.1.1"
}
}
37 changes: 37 additions & 0 deletions tslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
(function () {
module.exports = {
"extends": [
"tslint:recommended",
"tslint-eslint-rules"
],
"rules": {
"quotemark": [true, "single", "jsx-double"],
"ordered-imports": false,
"eofline": false,
"interface-name": false,
"member-access": [true, "no-public"],
"object-literal-sort-keys": false,
"trailing-comma": [true, { "multiline": "never", "singleline": "never" }],
"arrow-parens": [true, "ban-single-arg-parens"],
"max-line-length": false,
"object-literal-shorthand": false,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-magic-numbers": false,
"no-unused-variable": true,
"ban": [true, ["alert", "prompt", "confirm"]],
"array-bracket-spacing": [true, "never"],
"brace-style": [true, "1tbs"],
"space-in-parens": [true, "never"],
"object-curly-spacing": [true, "never"],
"ter-indent": [true, 3, { "SwitchCase": 1 }],
"linebreak-style": false,
"no-multi-spaces": true,
"variable-name": [true, "ban-keywords", "check-format"],
"ter-func-call-spacing": true,
"object-literal-key-quotes": [true, "as-needed"],
"ter-arrow-parens": [true, "as-needed"],
"ter-arrow-spacing": true,
"ter-prefer-arrow-callback": true
}
};
}());

0 comments on commit 4f33c38

Please sign in to comment.