diff --git a/.eslintrc b/.eslintrc index 5a7692b80..612fdaf40 100644 --- a/.eslintrc +++ b/.eslintrc @@ -19,6 +19,7 @@ "__DEV__": true, "__dirname": false, "__fbBatchedBridgeConfig": false, + "alert": false, "cancelAnimationFrame": false, "clearImmediate": true, "clearInterval": false, @@ -26,8 +27,11 @@ "console": false, "document": false, "escape": false, + "Event": false, + "EventTarget": false, "exports": false, "fetch": false, + "FormData": false, "global": false, "jest": false, "Map": true, @@ -43,7 +47,29 @@ "setTimeout": false, "window": false, "XMLHttpRequest": false, - "pit": false + "pit": false, + + // Flow global types. + "ReactComponent": false, + "ReactClass": false, + "ReactElement": false, + "ReactPropsCheckType": false, + "ReactPropsChainableTypeChecker": false, + "ReactPropTypes": false, + "SyntheticEvent": false, + "$Either": false, + "$All": false, + "$Tuple": false, + "$Supertype": false, + "$Subtype": false, + "$Shape": false, + "$Diff": false, + "$Keys": false, + "$Enum": false, + "$Exports": false, + "$FlowIssue": false, + "$FlowFixMe": false, + "$FixMe": false }, "rules": { diff --git a/Examples/.eslintrc b/Examples/.eslintrc new file mode 100644 index 000000000..8dc9d22c1 --- /dev/null +++ b/Examples/.eslintrc @@ -0,0 +1,5 @@ +{ + "rules": { + "no-alert": 0 + } +}