Skip to content

Commit

Permalink
added flowtyped config
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie committed Jan 12, 2018
1 parent 2e629e4 commit ff52cd0
Show file tree
Hide file tree
Showing 8 changed files with 268 additions and 27 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/coverage/
/lib/
/node_modules/
/flow-typed/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ typings/

# react-stylguidist build files
/styleguide/build/
/styleguide/index.html
/styleguide/index.html
/flow-typed
6 changes: 6 additions & 0 deletions __mocks__/execCommand.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// @flow

/* eslint flowtype-errors/enforce-min-coverage: 0 */

const execCommand = jest.fn();
global.document.execCommand = execCommand;
3 changes: 3 additions & 0 deletions __mocks__/styleMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// @flow

module.exports = {};
1 change: 0 additions & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

/* eslint flowtype-errors/enforce-min-coverage: 0 */

import 'raf/polyfill';
import Adapter from 'enzyme-adapter-react-16';
import Enzyme from 'enzyme';

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@
},
"scripts": {
"danger": "danger",
"flow": "flow",
"flow:check": "flow check ./",
"flow-typed": "flow-typed install --overwrite",
"flow": "yarn flow-typed && yarn check ./",
"jest": "jest --coverage --maxWorkers=6",
"jest-watch": "jest --watch --debug",
"lint": "eslint ./",
"lint-staged": "lint-staged",
"precommit": "lint-staged",
"styleguide": "styleguidist server",
"styleguide:build": "styleguidist build",
"test": "yarn lint && yarn jest",
"test": "yarn flow && yarn lint && yarn jest",
"test-debug": "jest --coverage --debug"
},
"dependencies": {
"raf": "^3.4.0",
"ramda": "^0.25.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
Expand Down Expand Up @@ -51,6 +52,7 @@
"eslint-plugin-prettier": "^2.4.0",
"eslint-plugin-react": "^7.4.0",
"flow-bin": "^0.62.0",
"flow-typed": "^2.2.3",
"husky": "^0.14.3",
"jest": "^22.0.6",
"jest-styled-components": "^4.9.0",
Expand Down
6 changes: 4 additions & 2 deletions styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @flow

module.exports = {
components: 'src/components/**/*.js'
};
components: 'src/components/**/*.js',
};
Loading

0 comments on commit ff52cd0

Please sign in to comment.