-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: settings eslint using tamplete airnb
- Loading branch information
1 parent
dcea613
commit c9b3911
Showing
12 changed files
with
192 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"extends": "airbnb", | ||
"parser": "babel-eslint", | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"paths": [ | ||
"src" | ||
] | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 80, | ||
"ignoreUrls": true, | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true | ||
} | ||
], | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ | ||
"extensions": [ | ||
".js", | ||
".jsx" | ||
] | ||
} | ||
], | ||
"react/require-default-props": "off", | ||
"react/forbid-prop-types": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"semi": false, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5" | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
module.exports = { | ||
siteMetadata: { | ||
title: `Francisco Júnior`, | ||
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, | ||
author: `@franciscojunior10`, | ||
siteUrl: `https://franciscojunior10.github.io/`, | ||
title: 'Francisco Júnior', | ||
description: 'Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.', | ||
author: '@franciscojunior10', | ||
siteUrl: 'https://franciscojunior10.github.io/', | ||
}, | ||
plugins: [ | ||
`gatsby-plugin-react-helmet`, | ||
`gatsby-plugin-sitemap`, | ||
'gatsby-plugin-react-helmet', | ||
'gatsby-plugin-sitemap', | ||
{ | ||
resolve: `gatsby-source-filesystem`, | ||
resolve: 'gatsby-source-filesystem', | ||
options: { | ||
name: `images`, | ||
name: 'images', | ||
path: `${__dirname}/src/images`, | ||
}, | ||
}, | ||
`gatsby-transformer-sharp`, | ||
`gatsby-plugin-sharp`, | ||
'gatsby-transformer-sharp', | ||
'gatsby-plugin-sharp', | ||
{ | ||
resolve: `gatsby-plugin-manifest`, | ||
resolve: 'gatsby-plugin-manifest', | ||
options: { | ||
name: `gatsby-starter-default`, | ||
short_name: `starter`, | ||
start_url: `/`, | ||
background_color: `#663399`, | ||
theme_color: `#663399`, | ||
display: `minimal-ui`, | ||
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. | ||
name: 'gatsby-starter-default', | ||
short_name: 'starter', | ||
start_url: '/', | ||
background_color: '#663399', | ||
theme_color: '#663399', | ||
display: 'minimal-ui', | ||
icon: 'src/images/gatsby-icon.png', // This path is relative to the root of the site. | ||
}, | ||
}, | ||
// this (optional) plugin enables Progressive Web App + Offline functionality | ||
// this (optional) plugin enables Progressive Web App + | ||
// Offline functionality | ||
// To learn more, visit: https://gatsby.dev/offline | ||
// `gatsby-plugin-offline`, | ||
], | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
import { Link } from "gatsby" | ||
import PropTypes from "prop-types" | ||
import React from "react" | ||
import { Link } from 'gatsby'; | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
|
||
const Header = ({ siteTitle }) => ( | ||
<header | ||
style={{ | ||
background: `rebeccapurple`, | ||
marginBottom: `1.45rem`, | ||
background: 'rebeccapurple', | ||
marginBottom: '1.45rem', | ||
}} | ||
> | ||
<div | ||
style={{ | ||
margin: `0 auto`, | ||
margin: '0 auto', | ||
maxWidth: 960, | ||
padding: `1.45rem 1.0875rem`, | ||
padding: '1.45rem 1.0875rem', | ||
}} | ||
> | ||
<h1 style={{ margin: 0 }}> | ||
<Link | ||
to="/" | ||
style={{ | ||
color: `white`, | ||
textDecoration: `none`, | ||
color: 'white', | ||
textDecoration: 'none', | ||
}} | ||
> | ||
{siteTitle} | ||
</Link> | ||
</h1> | ||
</div> | ||
</header> | ||
) | ||
); | ||
|
||
Header.propTypes = { | ||
siteTitle: PropTypes.string, | ||
} | ||
}; | ||
|
||
Header.defaultProps = { | ||
siteTitle: ``, | ||
} | ||
siteTitle: '', | ||
}; | ||
|
||
export default Header | ||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.