-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
54 lines (53 loc) · 1.47 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
54
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
// Get paths of Gatsby's required rules, which as of writing is located at:
// https://github.com/gatsbyjs/gatsby/tree/fbfe3f63dec23d279a27b54b4057dd611dce74bb/packages/
// gatsby/src/utils/eslint-rules
const gatsbyRequiredRules = path.join(
process.cwd(),
'node_modules',
'gatsby',
'dist',
'utils',
'eslint-rules',
);
module.exports = {
siteMetadata: {
siteUrl: 'https://www.phuongviet.info',
title: 'Phuong Viet Portfolio',
},
plugins: [
'gatsby-plugin-sass',
'gatsby-plugin-gatsby-cloud',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-typescript',
options: {
isTSX: true, // defaults to false
jsxPragma: 'jsx', // defaults to "React"
allExtensions: true, // defaults to false
},
},
{
resolve: 'gatsby-plugin-eslint',
options: {
// Gatsby required rules directory
rulePaths: [gatsbyRequiredRules],
// Default settings that may be ommitted or customized
stages: ['develop'],
extensions: ['js', 'jsx', 'ts', 'tsx'],
exclude: ['node_modules', 'bower_components', '.cache', 'public'],
// Any additional eslint-webpack-plugin options below
// ...
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'file',
path: `${__dirname}/src/assets/`,
},
},
],
};