Skip to content

Commit 67ce000

Browse files
committed
Update eslint-config-airbnb to latest
1 parent 120a71d commit 67ce000

File tree

9 files changed

+93
-46
lines changed

9 files changed

+93
-46
lines changed

.eslintrc

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
{
2-
"extends": "airbnb/legacy",
2+
"extends": "airbnb-base",
33
"env": {
44
"es6": true
55
},
66
"globals": {
7-
"Promise": true
7+
"Promise": true,
8+
"document": true
89
},
910
"rules": {
10-
"vars-on-top": 0,
11-
"no-console": 0,
1211
"comma-dangle": [2, "never"],
13-
"max-len": 0,
1412
"func-names": 0,
15-
"one-var": [2, { "uninitialized": "always", "initialized": "never" }],
13+
"global-require": 0,
14+
"max-len": 0,
15+
"no-console": 0,
1616
"no-param-reassign": [0],
1717
"no-use-before-define": [2, "nofunc"],
18-
"space-before-function-paren": 0,
1918
"object-curly-spacing": 0,
20-
"global-require": 0
19+
"one-var": [2, { "uninitialized": "always", "initialized": "never" }],
20+
"space-before-function-paren": 0,
21+
"vars-on-top": 0,
22+
23+
"import/no-dynamic-require": 0,
24+
25+
// Disable until using node 4 as base
26+
"no-var": 0,
27+
"prefer-arrow-callback": 0,
28+
"object-shorthand": 0,
29+
"prefer-template": 0
2130
}
2231
}

bin/suitcss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
var fs = require('fs-extra');
44
var assign = require('object-assign-deep');
5-
var exists = fs.existsSync;
65
var logger = require('./logger');
76
var suitcss = require('..');
87
var path = require('path');
9-
var resolve = path.resolve;
108
var program = require('commander');
119
var read = require('read-file-stdin');
1210
var chokidar = require('chokidar');
11+
12+
var exists = fs.existsSync;
13+
var resolve = path.resolve;
1314
var writeFileSync = fs.outputFileSync;
1415

1516
/**

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
"chai": "^3.4.1",
4242
"chai-as-promised": "^6.0.0",
4343
"computed-style": "^0.3.0",
44-
"eslint": "^3.5.0",
45-
"eslint-config-airbnb": "^11.1.0",
44+
"eslint": "^3.16.1",
45+
"eslint-config-airbnb-base": "^11.1.0",
46+
"eslint-plugin-import": "^2.2.0",
4647
"mocha": "^3.2.0",
4748
"postcss-property-lookup": "^1.1.4",
4849
"rewire": "^2.5.1",
@@ -52,10 +53,11 @@
5253
"tape-run": "^2.1.4"
5354
},
5455
"scripts": {
55-
"test": "npm run mocha && npm run test:encapsulation && npm run lint",
56+
"test": "npm run mocha && npm run test:encapsulation",
5657
"test:encapsulation": "browserify -t [ browserify-css --autoInject=false ] test/encapsulation/browser.js | tape-run",
5758
"mocha": "mocha test/index.js --reporter spec --slow 400 --timeout 8000",
58-
"lint": "eslint lib/*.js test/**/*.js bin/suitcss",
59+
"posttest": "npm run lint",
60+
"lint": "eslint lib test bin/suitcss",
5961
"watch": "npm run mocha -- --watch"
6062
},
6163
"keywords": [

test/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var chai = require('chai');
22
var child = require('child_process');
33
var util = require('./util');
4+
45
var exec = child.exec;
56
var expect = chai.expect;
67

test/encapsulation/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var chai = require('chai');
22
var chaiAsPromised = require('chai-as-promised');
33
var suitcss = require('../../lib');
44
var util = require('../util');
5+
56
var expect = chai.expect;
67

78
chai.use(chaiAsPromised);

test/linting.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var chai = require('chai');
22
var chaiAsPromised = require('chai-as-promised');
33
var suitcss = require('../lib');
44
var util = require('./util');
5+
56
var expect = chai.expect;
67

78
chai.use(chaiAsPromised);

test/node.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var chai = require('chai');
22
var suitcss = require('../lib');
33
var util = require('./util');
4+
45
var expect = chai.expect;
56

67
describe('node API', function() {

test/options.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var sinon = require('sinon');
22
var rewire = require('rewire');
33
var chai = require('chai');
4+
45
var suitcss = rewire('../lib');
56
var expect = chai.expect;
67

yarn.lock

Lines changed: 62 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ buffer@^5.0.2:
656656
base64-js "^1.0.2"
657657
ieee754 "^1.1.4"
658658

659-
builtin-modules@^1.0.0:
659+
builtin-modules@^1.0.0, builtin-modules@^1.1.1:
660660
version "1.1.1"
661661
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
662662

@@ -929,7 +929,7 @@ [email protected]:
929929
version "0.0.1"
930930
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
931931

932-
[email protected], concat-stream@^1.4.6:
932+
933933
version "1.4.10"
934934
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.4.10.tgz#acc3bbf5602cb8cc980c6ac840fa7d8603e3ef36"
935935
dependencies:
@@ -945,18 +945,18 @@ [email protected]:
945945
readable-stream "~2.0.0"
946946
typedarray "~0.0.5"
947947

948-
concat-stream@~0.1.0:
949-
version "0.1.1"
950-
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-0.1.1.tgz#d7f4e278b90cfc4f0f3ef77fe4c03b40eb3f7900"
951-
952-
concat-stream@~1.5.0, concat-stream@~1.5.1:
948+
concat-stream@^1.4.6, concat-stream@~1.5.0, concat-stream@~1.5.1:
953949
version "1.5.2"
954950
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.5.2.tgz#708978624d856af41a5a741defdd261da752c266"
955951
dependencies:
956952
inherits "~2.0.1"
957953
readable-stream "~2.0.0"
958954
typedarray "~0.0.5"
959955

956+
concat-stream@~0.1.0:
957+
version "0.1.1"
958+
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-0.1.1.tgz#d7f4e278b90cfc4f0f3ef77fe4c03b40eb3f7900"
959+
960960
console-browserify@^1.1.0:
961961
version "1.1.0"
962962
resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"
@@ -971,6 +971,10 @@ constants-browserify@~1.0.0:
971971
version "1.0.0"
972972
resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
973973

974+
contains-path@^0.1.0:
975+
version "0.1.0"
976+
resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a"
977+
974978
convert-source-map@^1.1.0, convert-source-map@~1.1.0:
975979
version "1.1.3"
976980
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860"
@@ -1178,18 +1182,12 @@ [email protected], debug@~0.7.4:
11781182
version "0.7.4"
11791183
resolved "https://registry.yarnpkg.com/debug/-/debug-0.7.4.tgz#06e1ea8082c2cb14e39806e22e2f6f757f92af39"
11801184

1181-
[email protected], debug@~2.2.0:
1185+
[email protected], debug@^2.1.1, debug@^2.1.3, debug@^2.2.0, debug@~2.2.0:
11821186
version "2.2.0"
11831187
resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da"
11841188
dependencies:
11851189
ms "0.7.1"
11861190

1187-
debug@^2.1.1, debug@^2.1.3, debug@^2.2.0:
1188-
version "2.6.1"
1189-
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351"
1190-
dependencies:
1191-
ms "0.7.2"
1192-
11931191
decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
11941192
version "1.2.0"
11951193
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
@@ -1297,7 +1295,7 @@ diffie-hellman@^5.0.0:
12971295
miller-rabin "^4.0.0"
12981296
randombytes "^2.0.0"
12991297

1300-
doctrine@^1.2.2:
1298+
doctrine@1.5.0, doctrine@^1.2.2:
13011299
version "1.5.0"
13021300
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa"
13031301
dependencies:
@@ -1519,17 +1517,41 @@ escope@^3.6.0:
15191517
esrecurse "^4.1.0"
15201518
estraverse "^4.1.1"
15211519

1522-
eslint-config-airbnb-base@^7.2.0:
1523-
version "7.2.0"
1524-
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-7.2.0.tgz#1a2ff77cc5d4abc2e1c5daebe4106fce95ff7c2a"
1520+
eslint-config-airbnb-base@^11.1.0:
1521+
version "11.1.0"
1522+
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.0.tgz#dc9b3ec70b8c74dcbe6d6257c9da3992c39ca2ca"
1523+
1524+
eslint-import-resolver-node@^0.2.0:
1525+
version "0.2.3"
1526+
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c"
1527+
dependencies:
1528+
debug "^2.2.0"
1529+
object-assign "^4.0.1"
1530+
resolve "^1.1.6"
1531+
1532+
eslint-module-utils@^2.0.0:
1533+
version "2.0.0"
1534+
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce"
1535+
dependencies:
1536+
debug "2.2.0"
1537+
pkg-dir "^1.0.0"
15251538

1526-
eslint-config-airbnb@^11.1.0:
1527-
version "11.2.0"
1528-
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-11.2.0.tgz#a0930ed7891e824e1b3e436cdf9754c815a2920c"
1539+
eslint-plugin-import@^2.2.0:
1540+
version "2.2.0"
1541+
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e"
15291542
dependencies:
1530-
eslint-config-airbnb-base "^7.2.0"
1543+
builtin-modules "^1.1.1"
1544+
contains-path "^0.1.0"
1545+
debug "^2.2.0"
1546+
doctrine "1.5.0"
1547+
eslint-import-resolver-node "^0.2.0"
1548+
eslint-module-utils "^2.0.0"
1549+
has "^1.0.1"
1550+
lodash.cond "^4.3.0"
1551+
minimatch "^3.0.3"
1552+
pkg-up "^1.0.0"
15311553

1532-
eslint@^3.5.0:
1554+
eslint@^3.16.1:
15331555
version "3.16.1"
15341556
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.16.1.tgz#9bc31fc7341692cf772e80607508f67d711c5609"
15351557
dependencies:
@@ -2754,6 +2776,10 @@ lodash.assignwith@^4.0.7:
27542776
version "4.2.0"
27552777
resolved "https://registry.yarnpkg.com/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz#127a97f02adc41751a954d24b0de17e100e038eb"
27562778

2779+
lodash.cond@^4.3.0:
2780+
version "4.5.2"
2781+
resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5"
2782+
27572783
27582784
version "3.1.1"
27592785
resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7"
@@ -2929,11 +2955,7 @@ mime-types@^2.1.12, mime-types@~2.1.7:
29292955
dependencies:
29302956
mime-db "~1.26.0"
29312957

2932-
mime@^1.2.11:
2933-
version "1.3.4"
2934-
resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"
2935-
2936-
mime@~1.2.11:
2958+
mime@^1.2.11, mime@~1.2.11:
29372959
version "1.2.11"
29382960
resolved "https://registry.yarnpkg.com/mime/-/mime-1.2.11.tgz#58203eed86e3a5ef17aed2b7d9ebd47f0a60dd10"
29392961

@@ -3023,10 +3045,6 @@ [email protected]:
30233045
version "0.7.1"
30243046
resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098"
30253047

3026-
3027-
version "0.7.2"
3028-
resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765"
3029-
30303048
multimatch@^2.0.0:
30313049
version "2.1.0"
30323050
resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-2.1.0.tgz#9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b"
@@ -3369,13 +3387,25 @@ pipetteur@^2.0.0:
33693387
onecolor "^3.0.4"
33703388
synesthesia "^1.0.1"
33713389

3390+
pkg-dir@^1.0.0:
3391+
version "1.0.0"
3392+
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4"
3393+
dependencies:
3394+
find-up "^1.0.0"
3395+
33723396
pkg-resolve@^0.1.7:
33733397
version "0.1.14"
33743398
resolved "https://registry.yarnpkg.com/pkg-resolve/-/pkg-resolve-0.1.14.tgz#329b2e76ccbb372e22e6a3a41cb30ab0457836ba"
33753399
dependencies:
33763400
jspm "^0.17.0-beta.13"
33773401
resolve "^1.1.7"
33783402

3403+
pkg-up@^1.0.0:
3404+
version "1.0.0"
3405+
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26"
3406+
dependencies:
3407+
find-up "^1.0.0"
3408+
33793409
33803410
version "0.2.1"
33813411
resolved "https://registry.yarnpkg.com/plist/-/plist-0.2.1.tgz#f3a3de07885d773e66d8a96782f1bec28cf2b2d0"

0 commit comments

Comments
 (0)