Skip to content

Commit

Permalink
Greenkeeper eslint config airbnb 12.0.0 (#419)
Browse files Browse the repository at this point in the history
* chore(package): update eslint-config-airbnb to version 12.0.0

https://greenkeeper.io/

* update linter
  • Loading branch information
chentsulin authored Sep 25, 2016
1 parent 4bc924d commit 037ac78
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 23 deletions.
19 changes: 10 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
"node": true
},
"rules": {
"consistent-return": 0,
"comma-dangle": 0,
"no-use-before-define": 0,
"import/no-unresolved": [2, { "ignore": ["electron"] }],
"import/no-extraneous-dependencies": 0,
"react/jsx-no-bind": 0,
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": 0,
"arrow-parens": ["error", "as-needed"],
"consistent-return": "off",
"comma-dangle": "off",
"no-use-before-define": "off",
"import/no-unresolved": ["error", { "ignore": ["electron"] }],
"import/no-extraneous-dependencies": "off",
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "off",
# https://github.com/eslint/eslint/issues/6274
"generator-star-spacing": 0
"generator-star-spacing": "off"
},
"plugins": [
"import",
Expand Down
7 changes: 4 additions & 3 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint strict: 0, no-shadow: 0, no-unused-vars: 0, no-console: 0 */
/* eslint-disable strict, no-shadow, no-unused-vars, no-console */

'use strict';

require('babel-polyfill');
Expand Down Expand Up @@ -82,8 +83,8 @@ async function startPack() {
const archs = ['ia32', 'x64'];
const platforms = ['linux', 'win32', 'darwin'];

platforms.forEach((plat) => {
archs.forEach((arch) => {
platforms.forEach(plat => {
archs.forEach(arch => {
pack(plat, arch, log(plat, arch));
});
});
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
"electron-devtools-installer": "^2.0.1",
"electron-packager": "^7.7.0",
"electron-rebuild": "^1.2.1",
"eslint": "^3.3.1",
"eslint-config-airbnb": "^10.0.1",
"eslint": "^3.6.0",
"eslint-config-airbnb": "^12.0.0",
"eslint-import-resolver-webpack": "^0.6.0",
"eslint-plugin-import": "^1.14.0",
"eslint-plugin-jsx-a11y": "^2.1.0",
"eslint-plugin-react": "^6.1.2",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.2",
"eslint-plugin-react": "^6.3.0",
"express": "^4.14.0",
"extract-text-webpack-plugin": "^1.0.1",
"fbjs-scripts": "^0.7.1",
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint no-console: 0 */
/* eslint-disable no-console */

import express from 'express';
import webpack from 'webpack';
Expand Down
4 changes: 2 additions & 2 deletions test/actions/counter.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint no-unused-expressions: 0 */
/* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import { spy } from 'sinon';
import * as actions from '../../app/actions/counter';
Expand Down Expand Up @@ -31,7 +31,7 @@ describe('actions', () => {
});

// There's no nice way to test this at the moment...
it('incrementAsync', (done) => {
it('incrementAsync', done => {
const fn = actions.incrementAsync(1);
expect(fn).to.be.a('function');
const dispatch = spy();
Expand Down
2 changes: 1 addition & 1 deletion test/components/Counter.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint no-unused-expressions: 0 */
/* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion test/example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint func-names: 0 */
/* eslint-disable func-names */
import { expect } from 'chai';


Expand Down
2 changes: 1 addition & 1 deletion webpack.config.development.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint max-len: 0 */
/* eslint-disable max-len */
import webpack from 'webpack';
import validate from 'webpack-validator';
import merge from 'webpack-merge';
Expand Down

0 comments on commit 037ac78

Please sign in to comment.