Skip to content

Commit

Permalink
fix: use TSLint to lint:js
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Aug 23, 2018
1 parent 5a83fd0 commit 119266f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Idiomatically handle window and view resizes in Ember.js",
"scripts": {
"build": "ember build",
"lint:js": "eslint .",
"lint:js": "./node_modules/.bin/tslint --project .",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each",
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const resolver = Resolver.create();

resolver.namespace = {
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix
podModulePrefix: config.podModulePrefix,
};

export default resolver;
6 changes: 6 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"tests/dummy/**/*",
"node_modules/**/*"
]
},
"jsRules": {
"quotemark": [true, "single"],
"variable-name": [true, "allow-leading-underscore"]
Expand Down

0 comments on commit 119266f

Please sign in to comment.