Skip to content

Commit

Permalink
Merge pull request #55 from rstgroup/eslint-config-change
Browse files Browse the repository at this point in the history
Eslint config change
  • Loading branch information
mprzodala authored Jan 15, 2018
2 parents 1b8f5f6 + aaa627b commit e583508
Show file tree
Hide file tree
Showing 27 changed files with 596 additions and 786 deletions.
48 changes: 14 additions & 34 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,21 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"extends": ["airbnb"],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"react/display-name": [1]
"indent": [2, 4],
"complexity": [2, { "max": 6 }],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"no-use-before-define": [2, {
"functions": false,
"classes": false,
"variables": false
}],
"import/no-named-as-default": 0
},
"globals": {
"document": true
}
}
18 changes: 5 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
"author": "Mariusz Przodała",
"license": "MIT",
"dependencies": {
"classnames": "^2.2.5",
"lodash": "^4.17.4",
"prop-types": "^15.6.0",
"react": "^16.0.0",
"react-autosuggest": "^9.3.2",
"react-dom": "^16.0.0"
},
"devDependencies": {
Expand All @@ -49,7 +53,6 @@
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.22.0",
"babel-traverse": "^6.26.0",
"classnames": "^2.2.5",
"coveralls": "^2.13.1",
"css-loader": "^0.26.1",
"enzyme": "^3.1.0",
Expand All @@ -59,16 +62,14 @@
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.2.0",
"eslint-plugin-react": "^7.4.0",
"extract-text-webpack-plugin": "^1.0.1",
"form-schema-validation": "^1.11.1",
"jest": "^21.2.1",
"jsdom": "^9.11.0",
"lodash": "^4.17.4",
"pre-commit": "^1.2.2",
"raf": "^3.4.0",
"react-addons-test-utils": "^15.6.2",
"react-autosuggest": "^9.3.2",
"react-proptypes": "^1.0.0",
"react-test-renderer": "^15.4.1",
"style-loader": "^0.13.1",
Expand Down
Loading

0 comments on commit e583508

Please sign in to comment.