-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use TSLint for JS files too #334
Conversation
mostly alphabetizing objects.
// synchronously read and return string content of file. | ||
fromFile: (filepath) => fs.readFileSync(filepath, "utf8"), | ||
|
||
highlight: highlight, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be flagged as a failure by object-literal-shorthand
... what's going on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh that rule had to be explicitly enabled here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird, it's enabled in the recommended config: https://github.com/palantir/tslint/blob/47212df6d3e97eb1e2da6ed0d1fb43cda4e32126/src/configs/recommended.ts#L79
@@ -91,16 +91,16 @@ module.exports = (gulp, plugins, blueprint) => { | |||
|
|||
gulp.task(`karma-unit-${project.id}`, (done) => { | |||
const config = Object.assign(createConfig(project), { | |||
reporters: [ "mocha" ], | |||
singleRun: false, | |||
browsers: ["Chrome"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: inconsistent spacing inside [ ]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
* use TSLint 4.x to lint JS files too! mostly alphabetizing objects. * remove eslint * fix `check` task alias * spacing, object shorthand
Changes proposed in this pull request: