Unverified Commit 34a38d2e authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Linting should be strict (#9418)

This configures our linting to exit without a success status code when warnings are found
parent 332852bf
...@@ -14,7 +14,7 @@ export default props => ( ...@@ -14,7 +14,7 @@ export default props => (
<div <div
className={`${footerColumn.className} ${footerColumnFirst.className}`} className={`${footerColumn.className} ${footerColumnFirst.className}`}
> >
<a href="https://fauna.com" target="_blank"> <a href="https://fauna.com" target="_blank" rel="noopener noreferrer">
<img src="/static/fauna-logo-white.png" height="35px" width="auto" /> <img src="/static/fauna-logo-white.png" height="35px" width="auto" />
</a> </a>
<p> <p>
...@@ -39,6 +39,7 @@ export default props => ( ...@@ -39,6 +39,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://fauna.com/faunadb" href="https://fauna.com/faunadb"
> >
FaunaDB FaunaDB
...@@ -48,6 +49,7 @@ export default props => ( ...@@ -48,6 +49,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://fauna.com/pricing" href="https://fauna.com/pricing"
> >
Pricing Pricing
...@@ -57,6 +59,7 @@ export default props => ( ...@@ -57,6 +59,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://fauna.com/resources" href="https://fauna.com/resources"
> >
Resources Resources
...@@ -66,6 +69,7 @@ export default props => ( ...@@ -66,6 +69,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://fauna.com/blog" href="https://fauna.com/blog"
> >
Blog Blog
...@@ -80,6 +84,7 @@ export default props => ( ...@@ -80,6 +84,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://fauna.com/team" href="https://fauna.com/team"
> >
Company Company
...@@ -89,6 +94,7 @@ export default props => ( ...@@ -89,6 +94,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://fauna.com/press" href="https://fauna.com/press"
> >
Press Press
...@@ -98,6 +104,7 @@ export default props => ( ...@@ -98,6 +104,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://fauna.com/careers" href="https://fauna.com/careers"
> >
Careers Careers
...@@ -107,6 +114,7 @@ export default props => ( ...@@ -107,6 +114,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="http://www2.fauna.com/contact-us" href="http://www2.fauna.com/contact-us"
> >
Contact Contact
...@@ -121,6 +129,7 @@ export default props => ( ...@@ -121,6 +129,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://community-invite.fauna.com/" href="https://community-invite.fauna.com/"
> >
Community Slack Community Slack
...@@ -130,6 +139,7 @@ export default props => ( ...@@ -130,6 +139,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://support.fauna.com/" href="https://support.fauna.com/"
> >
Support Support
...@@ -139,6 +149,7 @@ export default props => ( ...@@ -139,6 +149,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://dashboard.fauna.com/" href="https://dashboard.fauna.com/"
> >
Login Login
...@@ -148,6 +159,7 @@ export default props => ( ...@@ -148,6 +159,7 @@ export default props => (
<a <a
className={footerColumnListURL.className} className={footerColumnListURL.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href="https://dashboard.fauna.com/accounts/register" href="https://dashboard.fauna.com/accounts/register"
> >
Signup Signup
......
...@@ -19,6 +19,7 @@ export default props => ( ...@@ -19,6 +19,7 @@ export default props => (
<div className={guestbookEntryUserDetailAvatar.className}> <div className={guestbookEntryUserDetailAvatar.className}>
<a <a
target="_blank" target="_blank"
rel="noopener noreferrer"
href={`https://twitter.com/${props.twitter_handle}/`} href={`https://twitter.com/${props.twitter_handle}/`}
> >
<img <img
...@@ -30,6 +31,7 @@ export default props => ( ...@@ -30,6 +31,7 @@ export default props => (
<a <a
className={guestbookEntryUserDetailBiolink.className} className={guestbookEntryUserDetailBiolink.className}
target="_blank" target="_blank"
rel="noopener noreferrer"
href={`https://twitter.com/${props.twitter_handle}/`} href={`https://twitter.com/${props.twitter_handle}/`}
> >
{props.twitter_handle} {props.twitter_handle}
...@@ -49,6 +51,7 @@ export default props => ( ...@@ -49,6 +51,7 @@ export default props => (
)}&hashtags=graphql,nextjs )}&hashtags=graphql,nextjs
`} `}
target="_blank" target="_blank"
rel="noopener noreferrer"
className={guestbookEntryShareTwitterButton.className} className={guestbookEntryShareTwitterButton.className}
> >
<img <img
......
...@@ -2,7 +2,7 @@ import { headerBanner, headerTitle } from '../styles/header' ...@@ -2,7 +2,7 @@ import { headerBanner, headerTitle } from '../styles/header'
export default props => ( export default props => (
<> <>
<a href="https://fauna.com" target="_blank"> <a href="https://fauna.com" target="_blank" rel="noopener noreferrer">
<img <img
className={headerBanner.className} className={headerBanner.className}
src="/static/fauna-logo-blue.png" src="/static/fauna-logo-blue.png"
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
"git-clean": "git clean -d -x -e node_modules -e packages -f", "git-clean": "git clean -d -x -e node_modules -e packages -f",
"test-take2": "yarn git-reset && yarn git-clean && yarn testall", "test-take2": "yarn git-reset && yarn git-clean && yarn testall",
"test": "yarn run testall || yarn run test-take2", "test": "yarn run testall || yarn run test-take2",
"lint": "lerna run typescript && yarn prettier-check && eslint . --ext js,jsx,ts,tsx", "lint": "lerna run typescript && yarn prettier-check && eslint . --ext js,jsx,ts,tsx --max-warnings=0",
"lint-fix": "yarn prettier-fix && eslint . --ext js,jsx,ts,tsx --fix", "lint-fix": "yarn prettier-fix && eslint . --ext js,jsx,ts,tsx --fix --max-warnings=0",
"prettier-check": "prettier --check \"**/*.{js,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,sass}\"", "prettier-check": "prettier --check \"**/*.{js,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,sass}\"",
"prettier-fix": "prettier --write \"**/*.{js,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,sass}\"", "prettier-fix": "prettier --write \"**/*.{js,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,sass}\"",
"types": "lerna run types --stream", "types": "lerna run types --stream",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment