Skip to content

Commit

Permalink
Flow to Typescript (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
piglovesyou committed Apr 5, 2019
1 parent dced0fa commit 33716d9
Show file tree
Hide file tree
Showing 211 changed files with 1,433 additions and 30,478 deletions.
11 changes: 7 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@
// ESLint configuration
// http://eslint.org/docs/user-guide/configuring
module.exports = {
parser: 'babel-eslint',
parser: '@typescript-eslint/parser',

extends: [
'airbnb',
'plugin:flowtype/recommended',
'plugin:css-modules/recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
],

plugins: ['flowtype', 'css-modules', 'prettier'],
plugins: ['@typescript-eslint/eslint-plugin', 'css-modules', 'prettier'],

parserOptions: {
sourceType: 'module',
project: './tsconfig.json',
},

globals: {
__DEV__: true,
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ addons:
- g++-4.8
cache: yarn
script:
- yarn codegen
- yarn lint
- yarn test
- yarn build --release
16 changes: 0 additions & 16 deletions apollo.config.js

This file was deleted.

13 changes: 1 addition & 12 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/

// Babel configuration
// https://babeljs.io/docs/usage/api/
module.exports = {
presets: [
[
Expand All @@ -19,8 +8,8 @@ module.exports = {
},
},
],
'@babel/preset-flow',
'@babel/preset-react',
'@babel/preset-typescript',
],
plugins: [
'@babel/plugin-proposal-class-properties',
Expand Down
5 changes: 2 additions & 3 deletions docs/react-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,13 @@ Navigation.propTypes = { items: PropTypes.array.isRequired };

```jsx
// Navigation.js
// @flow
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Navigation.scss';

type PropTypes = {|
type PropTypes = {
className: string,
|};
};

function Navigation(props: PropTypes) {
return (
Expand Down
3 changes: 0 additions & 3 deletions flow-typed/global.js

This file was deleted.

Loading

0 comments on commit 33716d9

Please sign in to comment.