Skip to content

Commit

Permalink
Update eslint to extend airbnb
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin committed Jul 5, 2019
1 parent 52c0cc7 commit 0a1e9ea
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 40 deletions.
34 changes: 0 additions & 34 deletions .eslintrc

This file was deleted.

11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"airbnb"
],
"parser": "babel-eslint",
"plugins": ["react", "jsx-a11y", "import"],
"env": {
"browser": true,
"node": true
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ npm-debug.log
build/
example/example.js
example/example.js.map
package-lock.json
demo/
styles/css/
yarn.lock
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example/
static/
demo/
package-lock.json
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@
},
"homepage": "https://github.com/xiaolin/react-image-gallery",
"devDependencies": {
"babel-eslint": "^6.0.4",
"babel-eslint": "^10.0.2",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.16.0",
"babelify": "^7.3.0",
"browserify": "^13.1.1",
"eslint": "^2.10.2",
"eslint-plugin-react": "^5.1.1",
"eslint": "^6.0.1",
"eslint-config-airbnb": "^17.1.1",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.14.2",
"gulp": "^3.8.11",
"gulp-babel": "^6.1.2",
"gulp-clean-css": "^2.3.1",
Expand All @@ -55,13 +58,13 @@
"gulp-rename": "^1.2.0",
"gulp-sass": "^2.3.2",
"gulp-uglify": "^1.5.3",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"watchify": "^3.8.0"
},
"dependencies": {
"react": "^16.4.0",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"prop-types": "^15.5.8",
Expand Down
2 changes: 1 addition & 1 deletion src/ImageGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const screenChangeEvents = [
'fullscreenchange',
'MSFullscreenChange',
'mozfullscreenchange',
'webkitfullscreenchange'
'webkitfullscreenchange',
];

export default class ImageGallery extends React.Component {
Expand Down

0 comments on commit 0a1e9ea

Please sign in to comment.