Skip to content

Commit

Permalink
Merge pull request #5 from SKE-12/typescript
Browse files Browse the repository at this point in the history
Introduce TypeScript to project
  • Loading branch information
PNNutkung authored Aug 4, 2019
2 parents 3b34672 + ff13d9a commit a71bab3
Show file tree
Hide file tree
Showing 66 changed files with 6,760 additions and 3,809 deletions.
8 changes: 5 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
"@babel/env",
"@babel/typescript",
"@babel/react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"@babel/proposal-export-default",
"@babel/proposal-export-default-from",
"babel-plugin-styled-components"
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.js": [
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix",
"git add"
Expand Down
8 changes: 3 additions & 5 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { configure, setAddon } from '@storybook/react'
import { configure } from '@storybook/react'

import JSXAddon from 'storybook-addon-jsx'
const req = require.context('./stories', true, /\.tsx?$/)

function loadStories () {
require('stories')
req.keys().forEach(req)
}

setAddon(JSXAddon)

configure(loadStories, module)
5 changes: 0 additions & 5 deletions jsconfig.json

This file was deleted.

Loading

0 comments on commit a71bab3

Please sign in to comment.