Skip to content

Commit f00e6d9

Browse files
committed
Merge pull request #4 from eslint-plugins/airbnb
Update dev.dependencies
2 parents 1ecc288 + 0234621 commit f00e6d9

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.eslintrc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
{
2-
"extends": ["defaults"],
2+
"extends": ["eslint-config-airbnb"],
33
"env": {
44
"node": true
55
},
66
"parser": "babel-eslint",
77
"rules": {
8-
"comma-spacing": 2,
9-
"comma-style": [2, "last"],
10-
"one-var": [2, { "initialized": "never" }],
8+
"comma-dangle": 0,
119
"key-spacing": 0,
12-
"no-underscore-dangle": 0,
13-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
14-
"no-var": 2,
15-
"quotes": [2, "single", "avoid-escape"],
16-
"strict": 0
10+
"no-underscore-dangle": 0
1711
}
1812
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
"babel": "^5.6.7",
3434
"babel-eslint": "^4.0.5",
3535
"eslint": "^1.0.0",
36-
"eslint-config-defaults": "^3.1.0",
36+
"eslint-config-airbnb": "0.0.8",
37+
"eslint-plugin-react": "^3.3.2",
3738
"is-my-json-valid": "^2.12.0",
3839
"mocha": "^2.2.5",
3940
"mt-changelog": "^0.6.1",
40-
"release-script": "^0.2.1"
41+
"release-script": "^0.3.0"
4142
},
4243
"keywords": [
4344
"eslint-plugin",

src/rules/import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
export default function(context) {
88
return {
9-
ImportDeclaration: function(node) {
9+
ImportDeclaration(node) {
1010
if (node.source.value === 'lodash') {
1111
context.report(node.source, 'Importing the entire lodash library is not permitted, please import the specific functions you need');
1212
}

0 commit comments

Comments
 (0)