-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
102 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,61 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"ecmaVersion": 2015, | ||
"env": { | ||
"es6": true, | ||
"mocha": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"array-bracket-spacing": 2, | ||
"brace-style": 2, | ||
"camelcase": 2, | ||
"comma-dangle": 0, | ||
"comma-spacing": 2, | ||
"comma-style": 2, | ||
"computed-property-spacing": 2, | ||
"curly": 2, | ||
"dot-location": [2, "property"], | ||
"dot-notation": 2, | ||
"eol-last": 2, | ||
"eqeqeq": 2, | ||
"guard-for-in": 2, | ||
"indent": [2, 4, { | ||
"array-bracket-spacing": "error", | ||
"arrow-body-style": ["error", "always"], | ||
"arrow-parens": "error", | ||
"brace-style": "error", | ||
"camelcase": "error", | ||
"comma-dangle": "off", | ||
"comma-spacing": "error", | ||
"comma-style": "error", | ||
"computed-property-spacing": "error", | ||
"curly": "error", | ||
"dot-location": ["error", "property"], | ||
"dot-notation": "error", | ||
"eol-last": "error", | ||
"eqeqeq": "error", | ||
"guard-for-in": "error", | ||
"indent": ["error", 4, { | ||
"SwitchCase": 1, | ||
"VariableDeclarator": 0 | ||
}], | ||
"key-spacing": 2, | ||
"keyword-spacing": [2, { | ||
"key-spacing": "error", | ||
"keyword-spacing": ["error", { | ||
"after": true, | ||
"before": true | ||
}], | ||
"newline-after-var": 2, | ||
"no-caller": 2, | ||
"no-console": 0, | ||
"no-else-return": 2, | ||
"no-eval": 2, | ||
"no-extend-native": 2, | ||
"no-lonely-if": 2, | ||
"no-loop-func": 2, | ||
"no-multi-spaces": 2, | ||
"no-trailing-spaces": 2, | ||
"one-var": [2, "never"], | ||
"quotes": [2, "single", "avoid-escape"], | ||
"semi": 2, | ||
"space-before-blocks": 2, | ||
"space-before-function-paren": 2, | ||
"space-in-parens": 2, | ||
"space-unary-ops": [2, { | ||
"no-bitwise": "error", | ||
"no-caller": "error", | ||
"no-console": "off", | ||
"no-const-assign": "error", | ||
"no-else-return": "error", | ||
"no-eval": "error", | ||
"no-extend-native": "error", | ||
"no-lonely-if": "error", | ||
"no-loop-func": "error", | ||
"no-multi-spaces": "error", | ||
"no-trailing-spaces": "error", | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"quotes": ["error", "single", "avoid-escape"], | ||
"semi": "error", | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": "error", | ||
"space-in-parens": "error", | ||
"space-infix-ops": "error", | ||
"space-unary-ops": ["error", { | ||
"nonwords": false, | ||
"words": true | ||
}], | ||
"strict": [2, "global"], | ||
"vars-on-top": 2, | ||
"yoda": 2 | ||
"strict": ["error", "global"], | ||
"template-curly-spacing": ["error", "always"], | ||
"yoda": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
coverage | ||
node_modules | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
const gulp = require('gulp'); | ||
const eslint = require('gulp-eslint'); | ||
const mocha = require('gulp-mocha'); | ||
|
||
gulp.task('lint', () => { | ||
return gulp.src(['./*.js']) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failAfterError()); | ||
}); | ||
|
||
gulp.task('test', ['lint'], () => { | ||
return gulp.src(['./test.js']) | ||
.pipe(mocha()); | ||
}); | ||
|
||
gulp.task('default', ['test']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
{ | ||
"name": "lesshint-reporter-teamcity", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "TeamCity reporter for lesshint.", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/lesshint/reporter-teamcity" | ||
"url": "git+https://github.com/lesshint/reporter-teamcity.git" | ||
}, | ||
"keywords": [ | ||
"reporter", | ||
"lesshint", | ||
"teamcity" | ||
], | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"gulp": "^3.9.0", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-mocha": "^4.1.0", | ||
"proxyquire": "^1.7.10", | ||
"sinon": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"pretest": "eslint *.js", | ||
"test": "mocha" | ||
"test": "gulp" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/lesshint/reporter-teamcity/issues" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"eslint": "^2.2.0", | ||
"mocha": "^2.4.5", | ||
"rewire": "^2.5.1", | ||
"sinon": "^1.17.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters