Skip to content

Commit 35cc8cb

Browse files
authored
Merge pull request Bttstrp#636 from Bttstrp/switch-to-airbnb
switch to airbnb because JS requires semicolons.
2 parents 02721b7 + 61b3885 commit 35cc8cb

File tree

5 files changed

+844
-882
lines changed

5 files changed

+844
-882
lines changed

.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "airbnb-base",
3+
"env": { "browser": true },
4+
"rules": {
5+
"no-underscore-dangle": 0
6+
}
7+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"babel-preset-env": "^1.1.8",
3434
"babel-preset-stage-2": "^6.22.0",
3535
"bootstrap": "^3.3.7",
36+
"eslint": "^3.19.0",
37+
"eslint-config-airbnb-base": "^11.2.0",
38+
"eslint-plugin-import": "^2.2.0",
3639
"harp": "^0.23.0",
3740
"headr": "0.0.4",
3841
"jasmine": "^2.5.3",
@@ -47,11 +50,10 @@
4750
"less": "^2.7.2",
4851
"less-plugin-clean-css": "^1.5.0",
4952
"npm-run-all": "^4.0.1",
50-
"standard": "^8.6.0",
5153
"wintersmith": "^2.3.6"
5254
},
5355
"scripts": {
54-
"js:lint": "standard src/js/**/*.js",
56+
"js:lint": "eslint src/js/",
5557
"js:test": "mkdir -p test && babel -d test src/js && karma start karma.conf.js",
5658
"js:build:dir": "mkdir -p dist/js",
5759
"js:build:base": "babel -o dist/js/bootstrap-switch.js src/js/bootstrap-switch.js",

0 commit comments

Comments
 (0)