-
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.
add eslint, remove tslint, enable eslint with prettier
- Loading branch information
Showing
12 changed files
with
15,934 additions
and
111 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules | ||
dist | ||
coverage | ||
storybook-static | ||
|
||
jest.config.js | ||
jest.setup.js | ||
next.config.js |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"google", | ||
"eslint:recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["eslint-plugin", "@typescript-eslint", "jest", "prettier", "react"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"@typescript-eslint/indent": ["error", 2] | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,6 +1,6 @@ | ||
import { IThemeInterface } from "../theme/types" | ||
import { ThemeInterface } from '../theme/types'; | ||
|
||
export type LayoutProps = { | ||
export interface LayoutProps { | ||
title?: string; | ||
theme?: IThemeInterface; | ||
theme?: ThemeInterface; | ||
} |
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,15 +1,15 @@ | ||
import * as styledComponents from "styled-components"; | ||
import { ThemedStyledComponentsModule } from "styled-components"; | ||
import * as styledComponents from 'styled-components'; | ||
import { ThemedStyledComponentsModule } from 'styled-components'; | ||
|
||
import { IThemeInterface } from "./types"; | ||
import { ThemeInterface } from './types'; | ||
|
||
const { | ||
default: styled, | ||
css, | ||
createGlobalStyle, | ||
keyframes, | ||
ThemeProvider | ||
} = styledComponents as ThemedStyledComponentsModule<IThemeInterface>; | ||
default: styled, | ||
css, | ||
createGlobalStyle, | ||
keyframes, | ||
ThemeProvider, | ||
} = styledComponents as ThemedStyledComponentsModule<ThemeInterface>; | ||
|
||
export { css, createGlobalStyle, keyframes, ThemeProvider }; | ||
export default styled; |
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,5 @@ | ||
import { IThemeInterface } from "./types"; | ||
import { ThemeInterface } from './types'; | ||
|
||
export const defaultTheme: IThemeInterface = { | ||
primaryColor: "#000" | ||
export const defaultTheme: ThemeInterface = { | ||
primaryColor: '#000', | ||
}; |
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,3 +1,3 @@ | ||
export interface IThemeInterface { | ||
export interface ThemeInterface { | ||
primaryColor: string; | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.