-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
53 lines (53 loc) · 2.39 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* eslint-disable no-undef */
module.exports = {
plugins: [
"gatsby-plugin-material-ui",
"gatsby-plugin-resolve-src",
"gatsby-plugin-sass",
"gatsby-plugin-react-helmet",
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`,
},
},
"gatsby-plugin-react-leaflet",
{
resolve: "gatsby-plugin-prettier-eslint",
// this is the default configuration, override only what you need
options: {
cwd: process.cwd(), // path to a directory that should be considered as the current working directory
watch: true, // format/lint on save
initialScan: true, // if true, will format/lint the whole project on Gatsby startup
onChangeFullScanLint: false, // if true, on file save always perform full scan lint
onChangeFullScanFormat: false, // if true, on file save always perform full scan format
prettierLast: false, // if true, will run Prettier after ESLint
ignorePatterns: [
"**/node_modules/**/*",
"**/.git/**/*",
"**/dist/**/*",
".cache/**/*",
"public/**/*",
], // string or array of paths/files/globs to ignore
prettier: {
patterns: [],
// string or array of paths/files/globs to include related only to Prettier
ignorePatterns: [], // string or array of paths/files/globs to exclude related only to Prettier
customOptions: {}, // see: https://prettier.io/docs/en/options.html
},
eslint: {
patterns: "**/*.{js,jsx,ts,tsx}", // string or array of paths/files/globs to include related only to ESLint
ignorePatterns: [], // string or array of paths/files/globs to exclude related only to ESLint
formatter: "stylish", // set custom or third party formatter
maxWarnings: undefined, // number of max warnings allowed, when exceed it will fail Gatsby build
emitWarning: true, // if true, will emit lint warnings
failOnError: false, // if true, any lint error will fail the build, you may set true only in your prod config
failOnWarning: false, // same as failOnError but for warnings
plugins: [], // an array of plugins to load for ESLint
customOptions: {}, // see: https://eslint.org/docs/developer-guide/nodejs-api#cliengine
},
},
},
],
};