Skip to content

Commit 331c6bf

Browse files
committed
Fix flowconfig, eslint
1 parent 32fb5c0 commit 331c6bf

File tree

4 files changed

+31
-17
lines changed

4 files changed

+31
-17
lines changed

.flowconfig

+28-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
11
[ignore]
2-
.*/node_modules/fbjs/.*
3-
.*/node_modules/babel-types/.*
4-
.*/node_modules/babel-traverse/.*
5-
.*/node_modules/babylon/.*
6-
.*/node_modules/babel-generator/.*
7-
.*/node_modules/babel-core/lib/.*
8-
.*/node_modules/babel-helper.*
9-
10-
[include]
2+
.*/coverage/.*
3+
.*/scripts/.*
4+
.*/node_modules/flow-bin/.*
5+
# .*/node_modules/fbjs/.*
6+
.*/node_modules/fbjs/lib/Deferred.js.flow
7+
.*/node_modules/.*/flow-bin.*/.*
8+
.*/node_modules/.*/fbjs.*/.*
9+
.*/node_modules/.*/broken.json
10+
.*/node_modules/fixed-data-table/*
11+
.*/node_modules/.*/fixtures/package.json
12+
# .*/node_modules/.*/*.json
13+
.*/node_modules/react-motion.*/*.js
14+
.*/build/**/*.json
1115

1216
[libs]
13-
src/typedefs
17+
./flowtypes
18+
19+
[include]
1420

1521
[options]
22+
module.system=haste
23+
esproposal.class_static_fields=enable
24+
esproposal.class_instance_fields=enable
25+
esproposal.decorators=ignore
26+
suppress_comment=.*\\$FlowIssue
27+
module.system.node.resolve_dirname=node_modules
28+
module.system.node.resolve_dirname=src
29+
module.system.node.resolve_dirname=app
30+
munge_underscores=true
31+
1632
suppress_type=$FlowIssue
1733
suppress_type=$FlowFixMe
1834
suppress_type=$FixMe
1935

20-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-6]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*www[a-z,_]*\\)?)\\)
21-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-6]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*www[a-z,_]*\\)?)\\)? #[0-9]+
36+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
37+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
2238
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
23-
24-
esproposal.class_instance_fields=ignore
25-
esproposal.class_static_fields=ignore
26-
module.name_mapper='react-babel-playground' -> '../src/playground'
27-
munge_underscores=true

test/components/GoogleMap.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
import './utils/jsdomInit.js';
23

34
import React, { PropTypes, Component } from 'react';

test/components/utils/jsdomInit.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
import jsdom from 'jsdom';
23

34
const doc = jsdom.jsdom('<!doctype html><html><body></body></html>');

webpack.config.prod.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
var webpack = require('webpack');
23
var baseConfig = require('./webpack.config.base');
34

0 commit comments

Comments
 (0)