mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
package updates
This commit is contained in:
parent
cae34acec2
commit
b86afe15c8
@ -3,10 +3,9 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:react/recommended",
|
"plugin:react/recommended",
|
||||||
"prettier",
|
"plugin:prettier/recommended"
|
||||||
"prettier/react"
|
|
||||||
],
|
],
|
||||||
"plugins": ["react", "graphql"],
|
"plugins": ["react", "graphql", "prettier", "compat"],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
@ -25,6 +24,8 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"quotes": ["error", "single"],
|
"quotes": ["error", "single"],
|
||||||
"semi": ["error", "never"],
|
"semi": ["error", "never"],
|
||||||
"object-curly-spacing": ["error", "always"]
|
"object-curly-spacing": ["error", "always"],
|
||||||
|
"prettier/prettier": "error",
|
||||||
|
"compat/compat": "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"semi": false,
|
"semi": false,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "es5"
|
"trailingComma": "none"
|
||||||
}
|
}
|
||||||
|
12
package.json
12
package.json
@ -21,12 +21,12 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"camel-case": "^3.0.0",
|
"camel-case": "^3.0.0",
|
||||||
"file-saver": "^1.3.8",
|
"file-saver": "^1.3.8",
|
||||||
"gatsby": "^1.9.260",
|
"gatsby": "^1.9.261",
|
||||||
"gatsby-image": "^1.0.51",
|
"gatsby-image": "^1.0.51",
|
||||||
"gatsby-link": "^1.6.44",
|
"gatsby-link": "^1.6.44",
|
||||||
"gatsby-plugin-favicon": "^2.1.1",
|
"gatsby-plugin-favicon": "^2.1.1",
|
||||||
"gatsby-plugin-google-analytics": "^1.0.31",
|
"gatsby-plugin-google-analytics": "^1.0.31",
|
||||||
"gatsby-plugin-matomo": "^0.3.0",
|
"gatsby-plugin-matomo": "^0.3.1",
|
||||||
"gatsby-plugin-offline": "^1.0.16",
|
"gatsby-plugin-offline": "^1.0.16",
|
||||||
"gatsby-plugin-react-helmet": "^2.0.11",
|
"gatsby-plugin-react-helmet": "^2.0.11",
|
||||||
"gatsby-plugin-react-next": "^1.0.11",
|
"gatsby-plugin-react-next": "^1.0.11",
|
||||||
@ -35,9 +35,9 @@
|
|||||||
"gatsby-plugin-sharp": "^1.6.44",
|
"gatsby-plugin-sharp": "^1.6.44",
|
||||||
"gatsby-plugin-sitemap": "^1.2.23",
|
"gatsby-plugin-sitemap": "^1.2.23",
|
||||||
"gatsby-plugin-svgr": "^1.0.0",
|
"gatsby-plugin-svgr": "^1.0.0",
|
||||||
"gatsby-source-filesystem": "^1.5.35",
|
"gatsby-source-filesystem": "^1.5.36",
|
||||||
"gatsby-transformer-sharp": "^1.6.24",
|
"gatsby-transformer-sharp": "^1.6.24",
|
||||||
"gatsby-transformer-yaml": "^1.5.16",
|
"gatsby-transformer-yaml": "^1.5.17",
|
||||||
"giphy-js-sdk-core": "^1.0.3",
|
"giphy-js-sdk-core": "^1.0.3",
|
||||||
"intersection-observer": "^0.5.0",
|
"intersection-observer": "^0.5.0",
|
||||||
"js-yaml": "^3.11.0",
|
"js-yaml": "^3.11.0",
|
||||||
@ -55,13 +55,13 @@
|
|||||||
"eslint-plugin-graphql": "^2.1.1",
|
"eslint-plugin-graphql": "^2.1.1",
|
||||||
"eslint-plugin-prettier": "^2.6.0",
|
"eslint-plugin-prettier": "^2.6.0",
|
||||||
"eslint-plugin-react": "^7.8.2",
|
"eslint-plugin-react": "^7.8.2",
|
||||||
"gatsby-transformer-json": "^1.0.17",
|
"gatsby-transformer-json": "^1.0.18",
|
||||||
"ora": "^2.1.0",
|
"ora": "^2.1.0",
|
||||||
"prepend": "^1.0.2",
|
"prepend": "^1.0.2",
|
||||||
"prettier": "^1.12.1",
|
"prettier": "^1.12.1",
|
||||||
"prettier-stylelint": "^0.4.2",
|
"prettier-stylelint": "^0.4.2",
|
||||||
"slugify": "^1.3.0",
|
"slugify": "^1.3.0",
|
||||||
"stylelint": "^9.2.0",
|
"stylelint": "^9.2.1",
|
||||||
"stylelint-config-standard": "^18.2.0"
|
"stylelint-config-standard": "^18.2.0"
|
||||||
},
|
},
|
||||||
"browserslist": ["defaults"]
|
"browserslist": ["defaults"]
|
||||||
|
@ -9,7 +9,7 @@ const Content = props => (
|
|||||||
)
|
)
|
||||||
|
|
||||||
Content.propTypes = {
|
Content.propTypes = {
|
||||||
children: PropTypes.node,
|
children: PropTypes.node
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Content
|
export default Content
|
||||||
|
@ -5,7 +5,7 @@ import './FullWidth.scss'
|
|||||||
const FullWidth = ({ children }) => <div className="full-width">{children}</div>
|
const FullWidth = ({ children }) => <div className="full-width">{children}</div>
|
||||||
|
|
||||||
FullWidth.propTypes = {
|
FullWidth.propTypes = {
|
||||||
children: PropTypes.node,
|
children: PropTypes.node
|
||||||
}
|
}
|
||||||
|
|
||||||
export default FullWidth
|
export default FullWidth
|
||||||
|
@ -20,7 +20,7 @@ const Head = ({ meta }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Head.propTypes = {
|
Head.propTypes = {
|
||||||
meta: PropTypes.object.isRequired,
|
meta: PropTypes.object.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Head
|
export default Head
|
||||||
|
@ -19,7 +19,7 @@ const LogoUnit = ({ meta, minimal }) => {
|
|||||||
|
|
||||||
LogoUnit.propTypes = {
|
LogoUnit.propTypes = {
|
||||||
meta: PropTypes.object.isRequired,
|
meta: PropTypes.object.isRequired,
|
||||||
minimal: PropTypes.bool,
|
minimal: PropTypes.bool
|
||||||
}
|
}
|
||||||
|
|
||||||
export default LogoUnit
|
export default LogoUnit
|
||||||
|
@ -16,7 +16,7 @@ const ProjectImage = ({ sizes, alt }) => (
|
|||||||
|
|
||||||
ProjectImage.propTypes = {
|
ProjectImage.propTypes = {
|
||||||
sizes: PropTypes.object.isRequired,
|
sizes: PropTypes.object.isRequired,
|
||||||
alt: PropTypes.string,
|
alt: PropTypes.string
|
||||||
}
|
}
|
||||||
|
|
||||||
export const projectImage = graphql`
|
export const projectImage = graphql`
|
||||||
|
@ -51,12 +51,12 @@ const SEO = ({ project, meta }) => {
|
|||||||
|
|
||||||
SEO.propTypes = {
|
SEO.propTypes = {
|
||||||
project: PropTypes.object,
|
project: PropTypes.object,
|
||||||
meta: PropTypes.object,
|
meta: PropTypes.object
|
||||||
}
|
}
|
||||||
|
|
||||||
SEO.defaultProps = {
|
SEO.defaultProps = {
|
||||||
project: {},
|
project: {},
|
||||||
meta: {},
|
meta: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SEO
|
export default SEO
|
||||||
|
@ -95,7 +95,7 @@ class Vcard extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Vcard.propTypes = {
|
Vcard.propTypes = {
|
||||||
meta: PropTypes.object,
|
meta: PropTypes.object
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Vcard
|
export default Vcard
|
||||||
|
@ -16,7 +16,7 @@ class Availability extends PureComponent {
|
|||||||
const opts = Object.defineProperty({}, 'passive', {
|
const opts = Object.defineProperty({}, 'passive', {
|
||||||
get: function() {
|
get: function() {
|
||||||
supportsPassive = true
|
supportsPassive = true
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
window.addEventListener('test', null, opts)
|
window.addEventListener('test', null, opts)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -69,7 +69,7 @@ class Availability extends PureComponent {
|
|||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: status ? available : unavailable,
|
__html: status ? available : unavailable
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</aside>
|
</aside>
|
||||||
@ -82,7 +82,7 @@ class Availability extends PureComponent {
|
|||||||
|
|
||||||
Availability.propTypes = {
|
Availability.propTypes = {
|
||||||
meta: PropTypes.object,
|
meta: PropTypes.object,
|
||||||
hide: PropTypes.bool,
|
hide: PropTypes.bool
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Availability
|
export default Availability
|
||||||
|
@ -34,7 +34,7 @@ class Network extends PureComponent {
|
|||||||
super(props)
|
super(props)
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
classes: 'networks',
|
classes: 'networks'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ class Network extends PureComponent {
|
|||||||
Network.propTypes = {
|
Network.propTypes = {
|
||||||
meta: PropTypes.object,
|
meta: PropTypes.object,
|
||||||
minimal: PropTypes.bool,
|
minimal: PropTypes.bool,
|
||||||
hide: PropTypes.bool,
|
hide: PropTypes.bool
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Network
|
export default Network
|
||||||
|
@ -55,7 +55,7 @@ const ProjectLinks = ({ links }) => (
|
|||||||
)
|
)
|
||||||
|
|
||||||
ProjectLinks.propTypes = {
|
ProjectLinks.propTypes = {
|
||||||
links: PropTypes.array,
|
links: PropTypes.array
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ProjectLinks
|
export default ProjectLinks
|
||||||
|
@ -48,7 +48,7 @@ const ProjectNav = ({ previous, next }) => (
|
|||||||
|
|
||||||
ProjectNav.propTypes = {
|
ProjectNav.propTypes = {
|
||||||
previous: PropTypes.object,
|
previous: PropTypes.object,
|
||||||
next: PropTypes.object,
|
next: PropTypes.object
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ProjectNav
|
export default ProjectNav
|
||||||
|
@ -12,7 +12,7 @@ const ProjectTechstack = ({ techstack }) => (
|
|||||||
)
|
)
|
||||||
|
|
||||||
ProjectTechstack.propTypes = {
|
ProjectTechstack.propTypes = {
|
||||||
techstack: PropTypes.array,
|
techstack: PropTypes.array
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ProjectTechstack
|
export default ProjectTechstack
|
||||||
|
@ -38,7 +38,7 @@ class Footer extends PureComponent {
|
|||||||
|
|
||||||
Footer.propTypes = {
|
Footer.propTypes = {
|
||||||
meta: PropTypes.object,
|
meta: PropTypes.object,
|
||||||
pkg: PropTypes.object,
|
pkg: PropTypes.object
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Footer
|
export default Footer
|
||||||
|
@ -57,7 +57,7 @@ class Header extends PureComponent {
|
|||||||
|
|
||||||
Header.propTypes = {
|
Header.propTypes = {
|
||||||
meta: PropTypes.object,
|
meta: PropTypes.object,
|
||||||
isHomepage: PropTypes.bool,
|
isHomepage: PropTypes.bool
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Header
|
export default Header
|
||||||
|
@ -49,17 +49,17 @@ const TemplateWrapper = ({ data, location, children }) => {
|
|||||||
|
|
||||||
TransitionHandler.propTypes = {
|
TransitionHandler.propTypes = {
|
||||||
children: PropTypes.any,
|
children: PropTypes.any,
|
||||||
location: PropTypes.object.isRequired,
|
location: PropTypes.object.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
Main.propTypes = {
|
Main.propTypes = {
|
||||||
children: PropTypes.any,
|
children: PropTypes.any
|
||||||
}
|
}
|
||||||
|
|
||||||
TemplateWrapper.propTypes = {
|
TemplateWrapper.propTypes = {
|
||||||
children: PropTypes.func,
|
children: PropTypes.func,
|
||||||
data: PropTypes.object.isRequired,
|
data: PropTypes.object.isRequired,
|
||||||
location: PropTypes.object.isRequired,
|
location: PropTypes.object.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
export default withRouter(TemplateWrapper)
|
export default withRouter(TemplateWrapper)
|
||||||
|
@ -27,7 +27,7 @@ const Home = ({ data }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Home.propTypes = {
|
Home.propTypes = {
|
||||||
data: PropTypes.object,
|
data: PropTypes.object
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Home
|
export default Home
|
||||||
|
@ -18,7 +18,7 @@ class Project extends Component {
|
|||||||
const description = this.props.data.projectsYaml.description
|
const description = this.props.data.projectsYaml.description
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
descriptionWithLineBreaks: description.split('\n').join('\n\n'),
|
descriptionWithLineBreaks: description.split('\n').join('\n\n')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ class Project extends Component {
|
|||||||
|
|
||||||
Project.propTypes = {
|
Project.propTypes = {
|
||||||
data: PropTypes.object.isRequired,
|
data: PropTypes.object.isRequired,
|
||||||
pathContext: PropTypes.object.isRequired,
|
pathContext: PropTypes.object.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Project
|
export default Project
|
||||||
|
Loading…
x
Reference in New Issue
Block a user