Skip to content

Commit 6644cec

Browse files
committed
add eslint plugin flowtype
1 parent 68ae003 commit 6644cec

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.eslintrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111

1212
"plugins": [
1313
"react",
14-
"mocha"
14+
"mocha",
15+
"flowtype"
1516
],
1617
"extends": [
17-
"plugin:react/recommended"
18+
"plugin:react/recommended",
19+
"plugin:flowtype/recommended"
1820
],
1921
// eslint > 2.x
2022
"parserOptions": {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"dirty-chai": "^1.2.2",
6969
"enzyme": "^2.9.1",
7070
"eslint": "^4.3.0",
71+
"eslint-plugin-flowtype": "^2.35.0",
7172
"eslint-plugin-react": "^7.1.0",
7273
"expose-loader": "^0.7.3",
7374
"extract-text-webpack-plugin": "^3.0.0",

yarn.lock

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2734,6 +2734,12 @@ escope@^3.6.0:
27342734
esrecurse "^4.1.0"
27352735
estraverse "^4.1.1"
27362736

2737+
eslint-plugin-flowtype@^2.35.0:
2738+
version "2.35.0"
2739+
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.35.0.tgz#d17494f0ae8b727c632d8b9d4b4a848e7e0c04af"
2740+
dependencies:
2741+
lodash "^4.15.0"
2742+
27372743
eslint-plugin-react@^7.1.0:
27382744
version "7.1.0"
27392745
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.1.0.tgz#27770acf39f5fd49cd0af4083ce58104eb390d4c"
@@ -4844,7 +4850,7 @@ lodash@^4.0.0, lodash@^4.17.2, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
48444850
version "4.17.2"
48454851
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.2.tgz#34a3055babe04ce42467b607d700072c7ff6bf42"
48464852

4847-
lodash@^4.1.0, lodash@^4.14.0, lodash@^4.17.4, lodash@^4.6.1:
4853+
lodash@^4.1.0, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.4, lodash@^4.6.1:
48484854
version "4.17.4"
48494855
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
48504856

0 commit comments

Comments
 (0)