Skip to content

Commit fabc797

Browse files
committed
feat(eslint): apply rules to root with ignores
1 parent fd4def2 commit fabc797

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public/

config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
manifestThemeColor: '#34d12e',
99
manifestDisplay: 'standalone',
1010
manifestIcon: 'src/assets/img/website-icon.png',
11-
pathPrefix: `/`,
11+
pathPrefix: '/',
1212
heading: 'solinfra',
1313
subHeading: '... building the clouds of tomorrow, today',
1414

@@ -89,14 +89,14 @@ module.exports = {
8989
{
9090
icon: 'fa-twitter',
9191
name: 'Twitter',
92-
url: 'https://twitter.com/solinfra',
92+
url: 'https://twitter.com/solinfra'
9393
},
9494
{
9595
icon: 'fa-github',
9696
name: 'Github',
97-
url: 'https://github.com/solinfra',
98-
},
97+
url: 'https://github.com/solinfra'
98+
}
9999
],
100100
101-
address: 'Suite 1801 - 1 Yonge Street, Toronto, Canada, M5E 1W7',
102-
};
101+
address: 'Suite 1801 - 1 Yonge Street, Toronto, Canada, M5E 1W7'
102+
}

gatsby-config.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
const config = require('./config');
1+
const config = require('./config')
22

33
module.exports = {
44
pathPrefix: config.pathPrefix,
55
siteMetadata: {
6-
title: config.siteTitle,
6+
title: config.siteTitle
77
},
88
plugins: [
99
'gatsby-plugin-react-helmet',
1010
{
11-
resolve: `gatsby-plugin-manifest`,
11+
resolve: 'gatsby-plugin-manifest',
1212
options: {
1313
name: config.manifestName,
1414
short_name: config.manifestShortName,
1515
start_url: config.pathPrefix || config.manifestStartUrl,
1616
background_color: config.manifestBackgroundColor,
1717
theme_color: config.manifestThemeColor,
1818
display: config.manifestDisplay,
19-
icon: config.manifestIcon, // This path is relative to the root of the site.
20-
},
19+
icon: config.manifestIcon // This path is relative to the root of the site.
20+
}
2121
},
2222
'gatsby-plugin-sass',
2323
'gatsby-plugin-offline',
24-
{
25-
resolve: 'gatsby-plugin-svgr',
26-
options: {
27-
prettier: true, // use prettier to format JS code output (default)
28-
svgo: false, // use svgo to optimize SVGs (default)
29-
},
30-
},
31-
],
32-
};
24+
{
25+
resolve: 'gatsby-plugin-svgr',
26+
options: {
27+
prettier: true, // use prettier to format JS code output (default)
28+
svgo: false // use svgo to optimize SVGs (default)
29+
}
30+
}
31+
]
32+
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"deploy": "npm run clean && gatsby build && gh-pages -d public",
3636
"serve": "gatsby serve -H 0.0.0.0",
3737
"clean": "rimraf .cache public",
38-
"lint": "eslint 'src/**/*.js'",
39-
"lint:fix": "eslint 'src/**/*.js' --fix",
38+
"lint": "eslint '**/*.js'",
39+
"lint:fix": "eslint '**/*.js' --fix",
4040
"format": "prettier --write '**/*.js'"
4141
},
4242
"devDependencies": {

0 commit comments

Comments
 (0)