Skip to content

Commit

Permalink
Merge pull request #25 from nabeel-/neh_prettier-via-eslint
Browse files Browse the repository at this point in the history
Add prettier/prettier rules to .eslintrc.yml
  • Loading branch information
mmahalwy committed Jun 9, 2020
2 parents 4ff3b6c + 5297c65 commit 1c00ebd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .eslintrc.yml
Expand Up @@ -16,6 +16,21 @@ rules:
-
ts: never
tsx: never
prettier/prettier:
- 2
-
arrowParens: always
bracketSpacing: true
jsxBracketSameLine: false
printWidth: 100
proseWrap: always
requirePragma: false
semi: true
singleQuote: true
tabWidth: 2
trailingComma: all
useTabs: false

overrides:
-
extends:
Expand All @@ -34,4 +49,4 @@ overrides:
react/react-in-jsx-scope: 0

# allow ts-ignore comments
"@typescript-eslint/ban-ts-ignore": 0
"@typescript-eslint/ban-ts-ignore": 0
2 changes: 1 addition & 1 deletion src/api.ts
Expand Up @@ -10,7 +10,7 @@ import VerseType from '../types/VerseType';
// headers: {'X-Custom-Header': 'foobar'}
// });

export const fetcher = async function(input: RequestInfo, init?: RequestInit) {
export const fetcher = async function (input: RequestInfo, init?: RequestInit) {
const res = await fetch(input, init);
return res.json();
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/dls/Tabs/Tabs.tsx
Expand Up @@ -30,7 +30,7 @@ const Tabs = ({ initial, children }: TabsProps) => {
return (
<div>
<section role="tabpanel">
{/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role */}
{/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role */}
<nav role="tablist">
<TabNavList>
{React.Children.map(children, (child, i) => {
Expand Down

0 comments on commit 1c00ebd

Please sign in to comment.