-
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.
- Loading branch information
1 parent
364de97
commit 470851d
Showing
27 changed files
with
169 additions
and
170 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 |
---|---|---|
@@ -1,46 +1,43 @@ | ||
{ | ||
"env": { | ||
"jest": true, | ||
"browser": true, | ||
"es2021": true | ||
"env": { | ||
"jest": true, | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"extends": [ | ||
"airbnb", | ||
"prettier", | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true | ||
}, | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"extends": [ | ||
"airbnb", | ||
"prettier", | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true | ||
}, | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"react", | ||
"react-hooks" | ||
], | ||
"rules": { | ||
"react/function-component-definition": 0, | ||
"react/react-in-jsx-scope": "off", | ||
"no-unused-vars": "warn", | ||
"import/prefer-default-export": "off", | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"paths": ["src"] | ||
} | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["react", "react-hooks"], | ||
"rules": { | ||
"react/function-component-definition": 0, | ||
"react/react-in-jsx-scope": "off", | ||
"no-unused-vars": "warn", | ||
"import/prefer-default-export": "off", | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"paths": ["src"] | ||
} | ||
} | ||
} | ||
} |
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,5 +1,6 @@ | ||
{ | ||
"trailingComma": "none", | ||
"semi": false, | ||
"singleQuote": true | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"endOfLine": "auto" | ||
} |
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
}, | ||
"emmet.includeLanguages": { | ||
"javascript": "javascriptreact" | ||
}, | ||
} | ||
} |
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ yarn start | |
yarn test | ||
``` | ||
|
||
Made with 💜 by theandersonn | ||
Made with 💜 by theandersonn |
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,17 +1,17 @@ | ||
import { screen } from '@testing-library/react' | ||
import { render } from 'utils/test-utils' | ||
import { screen } from '@testing-library/react'; | ||
import { render } from 'utils/test-utils'; | ||
|
||
import Footer from '..' | ||
import Footer from '..'; | ||
|
||
describe('<Footer />', () => { | ||
it('should render correctly', () => { | ||
const { container } = render(<Footer />) | ||
const { container } = render(<Footer />); | ||
|
||
expect(screen.getByRole('link', { name: /theandersonn/i })).toHaveAttribute( | ||
'href', | ||
'https://github.com/theandersonn' | ||
) | ||
); | ||
|
||
expect(container.firstChild).toMatchSnapshot() | ||
}) | ||
}) | ||
expect(container.firstChild).toMatchSnapshot(); | ||
}); | ||
}); |
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
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,11 +1,11 @@ | ||
import * as S from './styles' | ||
import * as S from './styles'; | ||
|
||
const Header = () => { | ||
return ( | ||
<S.Wrapper> | ||
<h1>What Is My Screen Resolution?</h1> | ||
</S.Wrapper> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { render } from 'utils/test-utils' | ||
import { render } from 'utils/test-utils'; | ||
|
||
import Main from '..' | ||
import Main from '..'; | ||
|
||
describe('<Main />', () => { | ||
it('should render correctly', () => { | ||
const { container } = render(<Main>Children</Main>) | ||
const { container } = render(<Main>Children</Main>); | ||
|
||
expect(container.firstChild).toMatchInlineSnapshot(` | ||
<main | ||
class="sc-bczRLJ iRpuYl" | ||
> | ||
Children | ||
</main> | ||
`) | ||
}) | ||
}) | ||
`); | ||
}); | ||
}); |
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,13 +1,13 @@ | ||
import PropTypes from 'prop-types' | ||
import PropTypes from 'prop-types'; | ||
|
||
import * as S from './styles' | ||
import * as S from './styles'; | ||
|
||
const Main = ({ children }) => { | ||
return <S.Wrapper>{children}</S.Wrapper> | ||
} | ||
return <S.Wrapper>{children}</S.Wrapper>; | ||
}; | ||
|
||
Main.propTypes = { | ||
children: PropTypes.node.isRequired | ||
} | ||
children: PropTypes.node.isRequired, | ||
}; | ||
|
||
export default Main | ||
export default Main; |
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
Oops, something went wrong.