fixed eslint react version warning
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Arwed Mett 2019-02-24 09:38:42 +01:00
parent 5988bc8869
commit 1d3d24d1f7
Signed by: Pfeifenjoy
GPG Key ID: 86943827297DA9FC
7 changed files with 68 additions and 0 deletions

View File

@ -20,6 +20,11 @@
"plugin:react/recommended",
"plugin:flowtype/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"quotes": ["error", "double"],
"curly": ["error", "all"],

11
src/icon/circle-notch.js Normal file
View File

@ -0,0 +1,11 @@
//@flow
import React from "react"
import { library } from "@fortawesome/fontawesome-svg-core"
import { faCircleNotch } from "@fortawesome/free-solid-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
library.add(faCircleNotch)
export default (props: *) => <FontAwesomeIcon icon="circle-notch" { ...props } />

11
src/icon/github.js Normal file
View File

@ -0,0 +1,11 @@
//@flow
import React from "react"
import { library } from "@fortawesome/fontawesome-svg-core"
import { faGithub } from "@fortawesome/free-brands-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
library.add(faGithub)
export default (props: *) => <FontAwesomeIcon icon={ [ "fab", "github" ] } { ...props } />

7
src/icon/index.js Normal file
View File

@ -0,0 +1,7 @@
//@flow
export { default as CircleNotch } from "./circle-notch"
export { default as Key } from "./key"
export { default as Github } from "./github"
export { default as Linkedin } from "./linkedin"
export { default as StackOverflow } from "./stack-overflow"

11
src/icon/key.js Normal file
View File

@ -0,0 +1,11 @@
//@flow
import React from "react"
import { library } from "@fortawesome/fontawesome-svg-core"
import { faKey } from "@fortawesome/free-solid-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
library.add(faKey)
export default (props: *) => <FontAwesomeIcon icon="key" { ...props } />

11
src/icon/linkedin.js Normal file
View File

@ -0,0 +1,11 @@
//@flow
import React from "react"
import { library } from "@fortawesome/fontawesome-svg-core"
import { faLinkedin } from "@fortawesome/free-brands-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
library.add(faLinkedin)
export default (props: *) => <FontAwesomeIcon icon={ [ "fab", "linkedin" ] } { ...props } />

View File

@ -0,0 +1,12 @@
//@flow
import React from "react"
import { library } from "@fortawesome/fontawesome-svg-core"
import { faStackOverflow } from "@fortawesome/free-brands-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
library.add(faStackOverflow)
export default (props: *) =>
<FontAwesomeIcon icon={ [ "fab", "stack-overflow" ] } { ...props } />