Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
0.14.0
Browse files Browse the repository at this point in the history
Close #45
  • Loading branch information
MoOx committed Jun 15, 2015
1 parent d4e5df6 commit 565636e
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.14.0 - 2015-06-15

- Added: support for eslint 0.23.x

# 0.13.0 - 2015-06-14

- Changed: a file that should be ignored doesn't trigger a warning
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-loader",
"version": "0.13.0",
"version": "0.14.0",
"description": "eslint loader (for webpack)",
"keywords": [
"lint",
Expand All @@ -25,14 +25,14 @@
"index.js"
],
"peerDependencies": {
"eslint": "0.21 - 0.22"
"eslint": "0.21 - 0.23"
},
"dependencies": {
"loader-utils": "^0.2.7",
"object-assign": "^2.0.0"
},
"devDependencies": {
"eslint": "^0.22.1",
"eslint": "^0.23.0",
"eslint-friendly-formatter": "^1.0.3",
"tape": "^4.0.0",
"webpack": "^1.8.4"
Expand Down
1 change: 1 addition & 0 deletions test/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ test("eslint-loader can return error if file is bad", function(t) {
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.errors)
t.ok(stats.hasErrors(), "a file that contains eslint errors should return error")
t.end()
})
Expand Down
1 change: 1 addition & 0 deletions test/eslintignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test("eslint-loader ignores files present in .eslintignore", function(t) {
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.warnings)
t.notOk(stats.hasWarnings(), "an ignored doesn't give a warning")
t.end()
})
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/warn.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/*eslint no-unused-vars: 1*/
/* eslint no-unused-vars: 1 */
var foo = this
4 changes: 4 additions & 0 deletions test/force-emit.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ test("eslint-loader can force to emit error", function(t) {
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.errors)
t.ok(stats.hasErrors(), "a file should return error if asked")
// console.log(stats.compilation.warnings)
t.notOk(stats.hasWarnings(), "a file should return no warning if error asked")
t.end()
})
Expand All @@ -35,7 +37,9 @@ test("eslint-loader can force to emit warning", function(t) {
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.warnings)
t.ok(stats.hasWarnings(), "a file should return warning if asked")
// console.log(stats.compilation.errors)
t.notOk(stats.hasErrors(), "a file should return no error if error asked")
t.end()
})
Expand Down
2 changes: 2 additions & 0 deletions test/ok.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ test("eslint-loader don't throw error if file is ok", function(t) {
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.errors)
t.notOk(stats.hasErrors(), "a good file doesn't give any error")
// console.log(stats.compilation.warnings)
t.notOk(stats.hasWarnings(), "a good file doesn't give any warning")
t.end()
})
Expand Down
4 changes: 3 additions & 1 deletion test/parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test("eslint-loader supports query strings parameters", function(t) {
loaders: [
{
test: /\.js$/,
loader: "./index?{rules:[{semi:0}]}",
loader: "./index?{rules:{semi:0}}",
exclude: /node_modules/,
},
],
Expand All @@ -22,7 +22,9 @@ test("eslint-loader supports query strings parameters", function(t) {
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.errors)
t.notOk(stats.hasErrors(), "a good file doesn't give any error")
// console.log(stats.compilation.warnings)
t.notOk(stats.hasWarnings(), "a good file doesn't give any warning")
t.end()
})
Expand Down
2 changes: 2 additions & 0 deletions test/quiet.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ test("eslint-loader only returns errors and not warnings if quiet is set", funct
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.warnings)
t.notOk(stats.hasWarnings(), "a file that contains eslint warning should return nothing if quiet option is true")
// console.log(stats.compilation.errors)
t.notOk(stats.hasErrors(), "a file that contains eslint warning should return no error if it contains only warning in quiet mode")
t.end()
})
Expand Down
3 changes: 3 additions & 0 deletions test/warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ test("eslint-loader can return warning", function(t) {
function(err, stats) {
if (err) {throw err}

// console.log(stats.compilation.warnings)
t.ok(stats.hasWarnings(), "a file that contains eslint warning should return warning")

// console.log(stats.compilation.errors)
t.notOk(stats.hasErrors(), "a bad file should return no error if it contains only warning by default")
t.end()
})
Expand Down

0 comments on commit 565636e

Please sign in to comment.