Skip to content

Commit a479e35

Browse files
committed
Use 'eslint-config-airbnb' instead of 'eslint-config-defaults'
1 parent 12b8af8 commit a479e35

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.eslintrc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
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"],
8+
"comma-dangle": 0,
9+
"func-names": 0,
10+
"guard-for-in": 0,
1011
"one-var": [2, { "initialized": "never" }],
1112
"no-console": 0,
12-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
13-
"no-var": 2,
14-
"quotes": [2, "single", "avoid-escape"],
15-
"strict": 0
13+
"no-eq-null": 0,
14+
"no-param-reassign": 0,
15+
"no-undef": 2,
16+
"no-use-before-define": 0
1617
}
1718
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"babel": "^5.6.14",
4242
"babel-eslint": "^4.0.5",
4343
"eslint": "^1.0.0",
44-
"eslint-config-defaults": "^4.0.1",
44+
"eslint-config-airbnb": "0.0.8",
45+
"eslint-plugin-react": "^3.3.2",
4546
"mt-changelog": "^0.6.1"
4647
},
4748
"dependencies": {

src/release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function safeRun(command) {
125125
function getOwnerAndRepo(url) {
126126
let match = url.match(/^git@github\.com:(.*)\.git$/);
127127
match = match || url.match(/^git\+https:\/\/github\.com\/(.*)\.git$/);
128-
let gitUrlBase = match && match[1];
128+
const gitUrlBase = match && match[1];
129129
return (gitUrlBase || url).split('/');
130130
}
131131

@@ -236,7 +236,7 @@ function release({ type, preid }) {
236236
'Authorization': `token ${githubToken}`,
237237
'User-Agent': 'release-script (https://github.com/alexkval/release-script)'
238238
}
239-
}, function (err, res, body) {
239+
}, function(err, res, body) {
240240
if (err) {
241241
console.log('API request to GitHub, error has occured:'.red);
242242
console.log(err);

0 commit comments

Comments
 (0)