Skip to content

Commit

Permalink
Update eslint rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
supnate committed Nov 1, 2017
1 parent 0366e65 commit ea586d0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 37 deletions.
52 changes: 27 additions & 25 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
{
'extends': './node_modules/eslint-config-airbnb/.eslintrc',
'parser': 'babel-eslint',
'globals': {
'document': true,
'window': true
"extends": "./node_modules/eslint-config-airbnb/.eslintrc",
"parser": "babel-eslint",
"globals": {
"document": true,
"window": true
},
'settings': {
'import/resolver': {
'babel-module': {}
"settings": {
"import/resolver": {
"babel-module": {}
}
},
'rules': {
'strict': 0,
'guard-for-in': 0,
'max-len': 0,
'no-nested-ternary': 0,
'no_underscore_dangle': 0,
'no-console': 0,
'global-require': 0,
'new-cap': 0,
'class-methods-use-this': 0,
'react/jsx-filename-extension': 0,
'react/prefer-stateless-function': 0,
'react/forbid-prop-types': 0,
'jsx-a11y/label-has-for': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'import/imports-first': 0
"rules": {
"strict": 0,
"guard-for-in": 0,
"max-len": 0,
"no-nested-ternary": 0,
"no_underscore_dangle": 0,
"no-console": 0,
"no-shadow": 0,
"object-curly-newline": 0,
"global-require": 0,
"new-cap": 0,
"class-methods-use-this": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,
"react/forbid-prop-types": 0,
"jsx-a11y/label-has-for": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"import/imports-first": 0
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rekit",
"version": "2.0.7",
"version": "2.1.0",
"description": "Toolkit for building scalable web applications with React, Redux and React-router.",
"license": "MIT",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions src/features/home/DefaultPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { RedditList } from './';
import * as actions from './redux/actions';
import { counterPlusOne, counterMinusOne, resetCounter, fetchRedditReactjsList } from './redux/actions';

export class DefaultPage extends Component {
static propTypes = {
Expand Down Expand Up @@ -68,7 +68,7 @@ function mapStateToProps(state) {
/* istanbul ignore next */
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({ ...actions }, dispatch)
actions: bindActionCreators({ counterPlusOne, counterMinusOne, resetCounter, fetchRedditReactjsList }, dispatch)
};
}

Expand Down
18 changes: 9 additions & 9 deletions tests/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
'globals': {
'describe': true,
'it': true,
'before': true,
'after': true,
'afterEach': true
"globals": {
"describe": true,
"it": true,
"before": true,
"after": true,
"afterEach": true
},
'rules': {
'no-unused-expressions': 0,
'import/no-extraneous-dependencies': 0
"rules": {
"no-unused-expressions": 0,
"import/no-extraneous-dependencies": 0
}
}

0 comments on commit ea586d0

Please sign in to comment.