Skip to content

Commit

Permalink
Merge pull request #5 from moderntribe/eslint-packages-upgrade
Browse files Browse the repository at this point in the history
Eslint packages upgrade
  • Loading branch information
nealfennimore authored Apr 12, 2018
2 parents abe6e93 + c9fefe2 commit d7cf779
Show file tree
Hide file tree
Showing 4 changed files with 1,030 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Custom config that extends [wpcalypso](https://github.com/Automattic/eslint-conf

## Dependencies

* `eslint 3.19.0+`
* `eslint 4+`

## Installation

Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-products",
"version": "0.0.4",
"version": "0.1.0",
"description": "Products eslint config",
"main": "index.js",
"scripts": {
Expand All @@ -17,14 +17,15 @@
},
"homepage": "https://github.com/moderntribe/eslint-config-products#readme",
"dependencies": {
"eslint-config-wpcalypso": "^0.8.0",
"eslint-plugin-wpcalypso": "^3.2.0"
"eslint": "^4",
"eslint-config-wpcalypso": "^2.0.0",
"eslint-plugin-wpcalypso": "^4.0.1"
},
"optionalDependencies": {
"eslint-plugin-jsx-a11y": "^5.0.3",
"eslint-plugin-react": "^7.0.1"
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0"
},
"peerDependencies": {
"eslint": "^3.19.0"
"eslint": "^4"
}
}
6 changes: 5 additions & 1 deletion react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ module.exports = {
browser: true
},
extends: [
'wpcalypso/react-a11y',
'plugin:jsx-a11y/recommended',
'wpcalypso/react',
'../index.js'
],
plugins: [
'jsx-a11y'
],
rules: {
'react/jsx-filename-extension': 0,
'react/jsx-indent-props': [2, 'tab'],
Expand Down
Loading

0 comments on commit d7cf779

Please sign in to comment.