mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 06:14:18 -07:00
Adding Linting and Formatting (#77)
Addresses #11 item "Linting/formatting (eg eslnt, prettier)": * Adding eslint, prettier, and config targeting Google, typescript, and both nodejs and client builds * Addressing linter-found issues * Adding lint and lint:fix commands * Adding documentation * Renaming workflow and adding lint check * Adding documentation about VSCode linting/formatting, ran formatting on a few files, set up exclude list for gatsby develop, setup build to fail on error
This commit is contained in:
parent
16a9e67db0
commit
a432a0d8c9
16 changed files with 310 additions and 208 deletions
|
@ -1,25 +1,27 @@
|
|||
import React from 'react';
|
||||
import { GovBanner, Header, Title, PrimaryNav } from '@trussworks/react-uswds';
|
||||
import { useIntl, Link } from "gatsby-plugin-intl"
|
||||
import {GovBanner, Header, Title, PrimaryNav} from '@trussworks/react-uswds';
|
||||
import {useIntl, Link} from 'gatsby-plugin-intl';
|
||||
|
||||
const headerLinks = [
|
||||
<Link to="/">Home</Link>
|
||||
<Link to="/" key="/">Home</Link>,
|
||||
];
|
||||
|
||||
const J40Header = () => {
|
||||
const intl = useIntl()
|
||||
const title = intl.formatMessage({ id: "71L0pp", defaultMessage:"Justice40", description:"Title of the project" });
|
||||
return (
|
||||
<>
|
||||
<GovBanner />
|
||||
<Header>
|
||||
<Title>
|
||||
{title}
|
||||
</Title>
|
||||
<PrimaryNav items={headerLinks}/>
|
||||
</Header>
|
||||
</>
|
||||
);
|
||||
const intl = useIntl();
|
||||
const title = intl.formatMessage({id: '71L0pp',
|
||||
defaultMessage: 'Justice40',
|
||||
description: 'Title of the project'});
|
||||
return (
|
||||
<>
|
||||
<GovBanner />
|
||||
<Header>
|
||||
<Title>
|
||||
{title}
|
||||
</Title>
|
||||
<PrimaryNav items={headerLinks}/>
|
||||
</Header>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default J40Header;
|
||||
export default J40Header;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue