Skip to content

Commit

Permalink
Update to Gatsby v2
Browse files Browse the repository at this point in the history
You now can use the source plugin with Gatsby v2. You need to update to use v3.0.0 as the peerDependency is aimed at that.

Also updated some packages and added ESLint/Prettier
  • Loading branch information
LekoArts committed Sep 22, 2018
1 parent 767f99c commit fdde90f
Show file tree
Hide file tree
Showing 8 changed files with 1,087 additions and 886 deletions.
13 changes: 3 additions & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"plugins": ["transform-object-rest-spread"],
"presets": [
[
"env",
{
"targets": {
"node": 6
}
}
]
"env",
"stage-0"
]
}
}
81 changes: 81 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true,
"classes": true
}
},
"env": {
"browser": true,
"node": true,
"jquery": true
},
"rules": {
"no-unused-vars": [
1,
{
"argsIgnorePattern": "res|next|^err"
}
],
"arrow-body-style": [
2,
"as-needed"
],
"no-param-reassign": [
2,
{
"props": false
}
],
"no-console": 0,
"linebreak-style": 0,
"no-use-before-define": 0,
"import/prefer-default-export": 0,
"import": 0,
"func-names": 0,
"space-before-function-paren": 0,
"import/extensions": 0,
"no-underscore-dangle": 0,
"consistent-return": 0,
"react/display-name": 1,
"react/react-in-jsx-scope": 0,
"react/forbid-prop-types": 0,
"react/no-unescaped-entities": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120
}
]
},
"plugins": [
"prettier"
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ typings/
# dotenv environment variables file
.env

.idea
gatsby-node.js
!/src/gatsby-node.js
35 changes: 35 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
*.un~
yarn.lock
package.lock
src
flow-typed
decls
.eslintrc
.idea
233 changes: 0 additions & 233 deletions gatsby-node.js

This file was deleted.

Loading

0 comments on commit fdde90f

Please sign in to comment.