Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded Gatsby v2 to v3 and Its Dependencies Also #1767

Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
143 changes: 72 additions & 71 deletions .eslintrc.js
@@ -1,77 +1,78 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"amd": true
},
"settings": {
"react": {
"version": "require('./package.json').dependencies.react"
}
"env": {
"browser": true,
"es6": true,
"node": true,
"amd": true
},
"settings": {
"react": {
"version": "require('./package.json').dependencies.react"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs"
],
"rules": {
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs"
],
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "React"
}
],
"react/display-name": [0],
"react/prop-types": [0],
"react/no-unescaped-entities": [0],
"react/jsx-no-duplicate-props": [0],
'indent': [
'error', 2, {
"FunctionExpression": {"parameters": "first"},
"FunctionDeclaration": {"parameters": "first"},
"MemberExpression": 1,
"SwitchCase": 1,
"outerIIFEBody": 0,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
ignoredNodes: ['TemplateLiteral']
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"strict": 0
}
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "React"
}
],
"react/display-name": [0],
"react/prop-types": [0],
"react/no-unescaped-entities": [0],
"react/jsx-no-duplicate-props": [0],
"indent": [
"error", 2, {
"FunctionExpression": {"parameters": "first"},
"FunctionDeclaration": {"parameters": "first"},
"MemberExpression": 1,
"SwitchCase": 1,
"outerIIFEBody": 0,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
ignoredNodes: ["TemplateLiteral"]
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"strict": 0
}
};

2 changes: 2 additions & 0 deletions gatsby-config.js
Expand Up @@ -200,6 +200,8 @@ module.exports = {
checkSupportedExtensions: false, // suppress warning about childImageSharp being null
},
},
"gatsby-plugin-image",
"gatsby-transformer-sharp", // Needed for dynamic images
adithyaakrishna marked this conversation as resolved.
Show resolved Hide resolved
{
resolve: "gatsby-plugin-manifest",
options: {
Expand Down