-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
8 changed files
with
1,087 additions
and
886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,6 @@ typings/ | |
# dotenv environment variables file | ||
.env | ||
|
||
.idea | ||
gatsby-node.js | ||
!/src/gatsby-node.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.