Skip to content

Commit 77780fd

Browse files
committed
Update eslint and eslint-config-airbnb to latest
1 parent ba1399e commit 77780fd

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"comma-dangle": [2, "never"],
77
"max-len": 0,
88
"func-names": 0,
9-
"one-var": [2, { uninitialized: "always", initialized: "never" }],
9+
"one-var": [2, { "uninitialized": "always", "initialized": "never" }],
1010
"no-param-reassign": [0],
1111
"no-use-before-define": [2, "nofunc"],
1212
"space-before-function-paren": 0,
13-
"object-curly-spacing": 0
13+
"object-curly-spacing": 0,
14+
"global-require": 0
1415
}
1516
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"devDependencies": {
3636
"chai": "^3.4.1",
3737
"chai-as-promised": "^5.2.0",
38-
"eslint": "^1.10.3",
39-
"eslint-config-airbnb": "^5.0.0",
38+
"eslint": "^3.5.0",
39+
"eslint-config-airbnb": "^11.1.0",
4040
"mocha": "^2.3.4",
4141
"postcss-property-lookup": "^1.1.4",
4242
"rewire": "^2.5.1",

test/.eslintrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"extends": "../.eslintrc",
3-
"globals": {
4-
"it": true,
5-
"describe": true,
6-
"afterEach": true,
7-
"beforeEach": true
3+
"env": {
4+
"mocha": true
85
},
96
"rules": {
10-
"no-unused-expressions": 0
7+
"no-unused-expressions": 0,
8+
"no-underscore-dangle": 0,
9+
"consistent-return": 0,
10+
"one-var-declaration-per-line": 0
1111
}
1212
}

test/test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ describe('suitcss', function() {
2727
});
2828

2929
it('should handle invalid input', function() {
30-
expect(function() {suitcss(null);}).to.throw(TypeError);
30+
expect(function() {
31+
suitcss(null);
32+
}).to.throw(TypeError);
3133
});
3234

3335
describe('using options', function() {

0 commit comments

Comments
 (0)