-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
16 changed files
with
4,375 additions
and
3,805 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,60 +1,75 @@ | ||
{ | ||
"presets": [ | ||
"presets":[ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"loose": true | ||
"loose":true | ||
} | ||
], | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-flow-strip-types", | ||
"@babel/plugin-transform-spread", | ||
"@babel/plugin-proposal-class-properties" | ||
[ | ||
"@babel/preset-react", | ||
{ | ||
"runtime":"automatic" | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"env": { | ||
"next": { | ||
"presets": [ | ||
"env":{ | ||
"next":{ | ||
"presets":[ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false, | ||
"loose": true | ||
"modules":false, | ||
"loose":true | ||
} | ||
], | ||
[ | ||
"@babel/preset-react", | ||
{ | ||
"runtime":"automatic" | ||
} | ||
], | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
"@babel/preset-typescript" | ||
] | ||
}, | ||
"es": { | ||
"presets": [ | ||
"es":{ | ||
"presets":[ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"esmodules": true | ||
"targets":{ | ||
"esmodules":true | ||
}, | ||
"loose": true | ||
"loose":true | ||
} | ||
], | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
[ | ||
"@babel/preset-react", | ||
{ | ||
"runtime":"automatic" | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
] | ||
}, | ||
"umd": { | ||
"presets": [ | ||
"umd":{ | ||
"presets":[ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": "umd", | ||
"loose": true | ||
"modules":"umd", | ||
"loose":true | ||
} | ||
], | ||
[ | ||
"@babel/preset-react", | ||
{ | ||
"runtime":"automatic" | ||
} | ||
], | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
"@babel/preset-typescript" | ||
] | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -38,5 +38,5 @@ jobs: | |
|
||
# run tests! | ||
- run: yarn test:ci | ||
- run: yarn flow | ||
- run: yarn tsc --noEmit | ||
- run: yarn bundlesize |
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,39 +1,47 @@ | ||
{ | ||
"extends": [ | ||
"airbnb", | ||
"plugin:flowtype/recommended" | ||
"airbnb-typescript", | ||
], | ||
"plugins": [ | ||
"flowtype" | ||
"@typescript-eslint" | ||
], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"experimentalObjectRestSpread": true | ||
}, | ||
"project": "./tsconfig.json" | ||
}, | ||
"rules": { | ||
# We use _ to define private variables and methods in clases | ||
"no-underscore-dangle": 0, | ||
# This seems to be buggy we don't want eslint to check this | ||
"import/no-extraneous-dependencies": 0, | ||
# This is a depricated rule. So we turned off it. | ||
"react/require-extension": 0, | ||
# We can write JSX in anyfile we want. | ||
"react/jsx-filename-extension": 0, | ||
"react/destructuring-assignment": 0, | ||
"react/default-props-match-prop-types": 0, | ||
"react/jsx-props-no-spreading": 0, | ||
"react/static-property-placement": 0, | ||
# We don't like this rule. | ||
"react/jsx-uses-react": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"arrow-body-style": 0, | ||
# We don't like this rule. We write arrow functions only when we needed. | ||
"prefer-arrow-callback": 0, | ||
# We don't need to write function names always. | ||
"func-names": 0, | ||
# propTypes can be object | ||
"react/forbid-prop-types": 0, | ||
# trailing comma | ||
"comma-dangle": 0, | ||
"react/sort-comp": 0, | ||
"react/prop-types": 0, | ||
"arrow-parens": 0 | ||
"arrow-parens": 0, | ||
"import/extensions": [ | ||
"error", "always", { | ||
"js": "never", | ||
"jsx": "never", | ||
"ts": "never", | ||
"tsx": "never" | ||
} | ||
], | ||
}, | ||
"env": { | ||
"jest": true | ||
} | ||
}, | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
transform: { | ||
'^.+\\.jsx?$': 'babel-jest' | ||
'^.+\\.(jsx|tsx|js|ts)?$': 'babel-jest' | ||
}, | ||
reporters: ['default', 'jest-junit'] | ||
}; |
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.