Skip to content

Commit 832a766

Browse files
Merge pull request #25 from Permissionless-Software-Foundation/ct-unstable
Linting
2 parents 5bdd914 + dd0aea4 commit 832a766

37 files changed

+1453
-1234
lines changed

.eslintrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "standard",
3+
"env": {
4+
"node": true,
5+
"mocha": true
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 10
9+
}
10+
}

gatsby-browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import wrapWithProvider from "./wrap-with-provider"
2-
export const wrapRootElement = wrapWithProvider
1+
import wrapWithProvider from './wrap-with-provider'
2+
export const wrapRootElement = wrapWithProvider

gatsby-config.js

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
const ipfsPrefix = process.argv.find(val => val === "--prefix-paths")
2-
console.log("DEBUG >> IM HERE")
1+
const ipfsPrefix = process.argv.find(val => val === '--prefix-paths')
2+
console.log('DEBUG >> IM HERE')
33

44
const ipfsConfig = [
5-
"gatsby-plugin-ipfs",
6-
`gatsby-plugin-react-helmet`,
5+
'gatsby-plugin-ipfs',
6+
'gatsby-plugin-react-helmet',
77
{
8-
resolve: `gatsby-source-filesystem`,
8+
resolve: 'gatsby-source-filesystem',
99
options: {
10-
start_url: "__GATSBY_IPFS_PATH_PREFIX__",
11-
name: `images`,
12-
path: `${__dirname}/src/images`,
13-
},
10+
start_url: '__GATSBY_IPFS_PATH_PREFIX__',
11+
name: 'images',
12+
path: `${__dirname}/src/images`
13+
}
1414
},
15-
`gatsby-transformer-sharp`,
16-
`gatsby-plugin-sharp`,
15+
'gatsby-transformer-sharp',
16+
'gatsby-plugin-sharp',
1717
{
18-
resolve: `gatsby-plugin-manifest`,
18+
resolve: 'gatsby-plugin-manifest',
1919
options: {
20-
name: `gatsby-starter-default`,
21-
short_name: `starter`,
22-
start_url: "__GATSBY_IPFS_PATH_PREFIX__",
23-
background_color: `#663399`,
24-
theme_color: `#663399`,
25-
display: `minimal-ui`,
26-
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
27-
},
28-
},
20+
name: 'gatsby-starter-default',
21+
short_name: 'starter',
22+
start_url: '__GATSBY_IPFS_PATH_PREFIX__',
23+
background_color: '#663399',
24+
theme_color: '#663399',
25+
display: 'minimal-ui',
26+
icon: 'src/images/gatsby-icon.png' // This path is relative to the root of the site.
27+
}
28+
}
2929

3030
// this (optional) plugin enables Progressive Web App + Offline functionality
3131
// To learn more, visit: https://gatsby.dev/offline
3232
// `gatsby-plugin-offline`,
3333
]
3434

3535
const normalConfig = [
36-
`gatsby-plugin-react-helmet`,
36+
'gatsby-plugin-react-helmet',
3737
{
38-
resolve: `gatsby-source-filesystem`,
38+
resolve: 'gatsby-source-filesystem',
3939
options: {
40-
start_url: "/",
41-
name: `images`,
42-
path: `${__dirname}/src/images`,
43-
},
40+
start_url: '/',
41+
name: 'images',
42+
path: `${__dirname}/src/images`
43+
}
4444
},
45-
`gatsby-transformer-sharp`,
46-
`gatsby-plugin-sharp`,
45+
'gatsby-transformer-sharp',
46+
'gatsby-plugin-sharp',
4747
{
48-
resolve: `gatsby-plugin-manifest`,
48+
resolve: 'gatsby-plugin-manifest',
4949
options: {
50-
name: `gatsby-starter-default`,
51-
short_name: `starter`,
52-
start_url: "/",
53-
background_color: `#663399`,
54-
theme_color: `#663399`,
55-
display: `minimal-ui`,
56-
// icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
57-
},
58-
},
50+
name: 'gatsby-starter-default',
51+
short_name: 'starter',
52+
start_url: '/',
53+
background_color: '#663399',
54+
theme_color: '#663399',
55+
display: 'minimal-ui'
56+
// icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
57+
}
58+
}
5959

6060
// this (optional) plugin enables Progressive Web App + Offline functionality
6161
// To learn more, visit: https://gatsby.dev/offline
@@ -64,10 +64,10 @@ const normalConfig = [
6464

6565
module.exports = {
6666
siteMetadata: {
67-
title: `Gatsby IPFS Adminlte Starter`,
68-
description: `A gatsbyjs app with adminlte2 integration.`,
69-
author: `@gatsbyjs`,
67+
title: 'Gatsby IPFS Adminlte Starter',
68+
description: 'A gatsbyjs app with adminlte2 integration.',
69+
author: '@gatsbyjs'
7070
},
71-
pathPrefix: "__GATSBY_IPFS_PATH_PREFIX__",
72-
plugins: ipfsPrefix ? ipfsConfig : normalConfig,
71+
pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__',
72+
plugins: ipfsPrefix ? ipfsConfig : normalConfig
7373
}

gatsby-node.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
22
actions.setWebpackConfig({
33
node: {
4-
fs: "empty",
5-
},
4+
fs: 'empty'
5+
}
66
})
77

8-
//Ignore css order
9-
if (stage === "build-javascript") {
8+
// Ignore css order
9+
if (stage === 'build-javascript') {
1010
const config = getConfig()
1111
const miniCssExtractPlugin = config.plugins.find(
12-
plugin => plugin.constructor.name === "MiniCssExtractPlugin"
12+
plugin => plugin.constructor.name === 'MiniCssExtractPlugin'
1313
)
1414
if (miniCssExtractPlugin) {
1515
miniCssExtractPlugin.options.ignoreOrder = true
@@ -19,9 +19,9 @@ exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
1919
}
2020

2121
exports.createPages = async ({ actions }, themeOptions) => {
22-
const basePath = "/"
22+
const basePath = '/'
2323
actions.createPage({
2424
path: basePath,
25-
component: require.resolve("./src/pages/index.js"),
25+
component: require.resolve('./src/pages/index.js')
2626
})
2727
}

gatsby-ssr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import wrapWithProvider from "./wrap-with-provider"
2-
export const wrapRootElement = wrapWithProvider
1+
import wrapWithProvider from './wrap-with-provider'
2+
export const wrapRootElement = wrapWithProvider

0 commit comments

Comments
 (0)