From 045ee5b8d249cce8b3f3e6baa017350c8c368c99 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Fri, 19 Aug 2016 07:17:46 +0200 Subject: [PATCH] Reorganize flow intefaces and skip linting them --- .flowconfig | 2 +- {interfaces => flow/interfaces}/globals.js | 0 {interfaces => flow/interfaces}/node-modules/chalk.js | 0 .../interfaces}/node-modules/classnames_v2.x.x.js | 2 +- {interfaces => flow/interfaces}/node-modules/debug.js | 0 {interfaces => flow/interfaces}/node-modules/find-cache-dir.js | 0 {interfaces => flow/interfaces}/node-modules/fs-extra.js | 0 {interfaces => flow/interfaces}/node-modules/fs-promise.js | 0 {interfaces => flow/interfaces}/node-modules/globby.js | 0 {interfaces => flow/interfaces}/node-modules/gray-matter.js | 0 {interfaces => flow/interfaces}/node-modules/js-beautify.js | 0 {interfaces => flow/interfaces}/node-modules/loader-utils.js | 0 {interfaces => flow/interfaces}/node-modules/lru-memoize.js | 0 {interfaces => flow/interfaces}/node-modules/offline-plugin.js | 0 {interfaces => flow/interfaces}/node-modules/pify.js | 0 {interfaces => flow/interfaces}/node-modules/react-helmet.js | 0 .../interfaces}/node-modules/react-redux_v4.x.x.js | 2 +- .../interfaces}/node-modules/react-router-scroll.js | 0 {interfaces => flow/interfaces}/node-modules/react-router.js | 0 {interfaces => flow/interfaces}/node-modules/redbox-react.js | 0 {interfaces => flow/interfaces}/node-modules/redux_v3.x.x.js | 2 +- .../interfaces}/node-modules/remark-autolink-headings.js | 0 .../interfaces}/node-modules/remark-highlight.js.js | 0 {interfaces => flow/interfaces}/node-modules/remark-html.js | 0 {interfaces => flow/interfaces}/node-modules/remark-slug.js | 0 {interfaces => flow/interfaces}/node-modules/remark.js | 0 .../interfaces}/node-modules/simple-json-fetch.js | 0 {interfaces => flow/interfaces}/node-modules/strip-markdown.js | 0 {interfaces => flow/interfaces}/node-modules/url-join.js | 0 {interfaces => flow/interfaces}/node-modules/webpack.js | 0 {interfaces => flow/interfaces}/phenomic.js | 0 {interfaces => flow/interfaces}/webpack.js | 0 package.json | 2 +- 33 files changed, 5 insertions(+), 5 deletions(-) rename {interfaces => flow/interfaces}/globals.js (100%) rename {interfaces => flow/interfaces}/node-modules/chalk.js (100%) rename {interfaces => flow/interfaces}/node-modules/classnames_v2.x.x.js (91%) rename {interfaces => flow/interfaces}/node-modules/debug.js (100%) rename {interfaces => flow/interfaces}/node-modules/find-cache-dir.js (100%) rename {interfaces => flow/interfaces}/node-modules/fs-extra.js (100%) rename {interfaces => flow/interfaces}/node-modules/fs-promise.js (100%) rename {interfaces => flow/interfaces}/node-modules/globby.js (100%) rename {interfaces => flow/interfaces}/node-modules/gray-matter.js (100%) rename {interfaces => flow/interfaces}/node-modules/js-beautify.js (100%) rename {interfaces => flow/interfaces}/node-modules/loader-utils.js (100%) rename {interfaces => flow/interfaces}/node-modules/lru-memoize.js (100%) rename {interfaces => flow/interfaces}/node-modules/offline-plugin.js (100%) rename {interfaces => flow/interfaces}/node-modules/pify.js (100%) rename {interfaces => flow/interfaces}/node-modules/react-helmet.js (100%) rename {interfaces => flow/interfaces}/node-modules/react-redux_v4.x.x.js (99%) rename {interfaces => flow/interfaces}/node-modules/react-router-scroll.js (100%) rename {interfaces => flow/interfaces}/node-modules/react-router.js (100%) rename {interfaces => flow/interfaces}/node-modules/redbox-react.js (100%) rename {interfaces => flow/interfaces}/node-modules/redux_v3.x.x.js (98%) rename {interfaces => flow/interfaces}/node-modules/remark-autolink-headings.js (100%) rename {interfaces => flow/interfaces}/node-modules/remark-highlight.js.js (100%) rename {interfaces => flow/interfaces}/node-modules/remark-html.js (100%) rename {interfaces => flow/interfaces}/node-modules/remark-slug.js (100%) rename {interfaces => flow/interfaces}/node-modules/remark.js (100%) rename {interfaces => flow/interfaces}/node-modules/simple-json-fetch.js (100%) rename {interfaces => flow/interfaces}/node-modules/strip-markdown.js (100%) rename {interfaces => flow/interfaces}/node-modules/url-join.js (100%) rename {interfaces => flow/interfaces}/node-modules/webpack.js (100%) rename {interfaces => flow/interfaces}/phenomic.js (100%) rename {interfaces => flow/interfaces}/webpack.js (100%) diff --git a/.flowconfig b/.flowconfig index 33d599f98..565988fc4 100644 --- a/.flowconfig +++ b/.flowconfig @@ -7,7 +7,7 @@ .*/.nyc_output/.* [libs] -./interfaces/ +./flow/interfaces/ [options] esproposal.class_instance_fields=enable diff --git a/interfaces/globals.js b/flow/interfaces/globals.js similarity index 100% rename from interfaces/globals.js rename to flow/interfaces/globals.js diff --git a/interfaces/node-modules/chalk.js b/flow/interfaces/node-modules/chalk.js similarity index 100% rename from interfaces/node-modules/chalk.js rename to flow/interfaces/node-modules/chalk.js diff --git a/interfaces/node-modules/classnames_v2.x.x.js b/flow/interfaces/node-modules/classnames_v2.x.x.js similarity index 91% rename from interfaces/node-modules/classnames_v2.x.x.js rename to flow/interfaces/node-modules/classnames_v2.x.x.js index 675f2a76a..456c6aeec 100644 --- a/interfaces/node-modules/classnames_v2.x.x.js +++ b/flow/interfaces/node-modules/classnames_v2.x.x.js @@ -8,7 +8,7 @@ type $npm$classnames$Classes = void | null -declare module 'classnames' { +declare module "classnames" { declare function exports( ...classes: Array<$npm$classnames$Classes> ): string; diff --git a/interfaces/node-modules/debug.js b/flow/interfaces/node-modules/debug.js similarity index 100% rename from interfaces/node-modules/debug.js rename to flow/interfaces/node-modules/debug.js diff --git a/interfaces/node-modules/find-cache-dir.js b/flow/interfaces/node-modules/find-cache-dir.js similarity index 100% rename from interfaces/node-modules/find-cache-dir.js rename to flow/interfaces/node-modules/find-cache-dir.js diff --git a/interfaces/node-modules/fs-extra.js b/flow/interfaces/node-modules/fs-extra.js similarity index 100% rename from interfaces/node-modules/fs-extra.js rename to flow/interfaces/node-modules/fs-extra.js diff --git a/interfaces/node-modules/fs-promise.js b/flow/interfaces/node-modules/fs-promise.js similarity index 100% rename from interfaces/node-modules/fs-promise.js rename to flow/interfaces/node-modules/fs-promise.js diff --git a/interfaces/node-modules/globby.js b/flow/interfaces/node-modules/globby.js similarity index 100% rename from interfaces/node-modules/globby.js rename to flow/interfaces/node-modules/globby.js diff --git a/interfaces/node-modules/gray-matter.js b/flow/interfaces/node-modules/gray-matter.js similarity index 100% rename from interfaces/node-modules/gray-matter.js rename to flow/interfaces/node-modules/gray-matter.js diff --git a/interfaces/node-modules/js-beautify.js b/flow/interfaces/node-modules/js-beautify.js similarity index 100% rename from interfaces/node-modules/js-beautify.js rename to flow/interfaces/node-modules/js-beautify.js diff --git a/interfaces/node-modules/loader-utils.js b/flow/interfaces/node-modules/loader-utils.js similarity index 100% rename from interfaces/node-modules/loader-utils.js rename to flow/interfaces/node-modules/loader-utils.js diff --git a/interfaces/node-modules/lru-memoize.js b/flow/interfaces/node-modules/lru-memoize.js similarity index 100% rename from interfaces/node-modules/lru-memoize.js rename to flow/interfaces/node-modules/lru-memoize.js diff --git a/interfaces/node-modules/offline-plugin.js b/flow/interfaces/node-modules/offline-plugin.js similarity index 100% rename from interfaces/node-modules/offline-plugin.js rename to flow/interfaces/node-modules/offline-plugin.js diff --git a/interfaces/node-modules/pify.js b/flow/interfaces/node-modules/pify.js similarity index 100% rename from interfaces/node-modules/pify.js rename to flow/interfaces/node-modules/pify.js diff --git a/interfaces/node-modules/react-helmet.js b/flow/interfaces/node-modules/react-helmet.js similarity index 100% rename from interfaces/node-modules/react-helmet.js rename to flow/interfaces/node-modules/react-helmet.js diff --git a/interfaces/node-modules/react-redux_v4.x.x.js b/flow/interfaces/node-modules/react-redux_v4.x.x.js similarity index 99% rename from interfaces/node-modules/react-redux_v4.x.x.js rename to flow/interfaces/node-modules/react-redux_v4.x.x.js index 40d4fa6b5..5066b30f1 100644 --- a/interfaces/node-modules/react-redux_v4.x.x.js +++ b/flow/interfaces/node-modules/react-redux_v4.x.x.js @@ -64,7 +64,7 @@ type ConnectDefault = , Dispatch: Function> type ConnectDefaultStateless = () =>

(component: (props: P) => any) => Class, void>>; -declare module 'react-redux' { +declare module "react-redux" { declare var exports: { connect: ConnectAll & ConnectAllStateless diff --git a/interfaces/node-modules/react-router-scroll.js b/flow/interfaces/node-modules/react-router-scroll.js similarity index 100% rename from interfaces/node-modules/react-router-scroll.js rename to flow/interfaces/node-modules/react-router-scroll.js diff --git a/interfaces/node-modules/react-router.js b/flow/interfaces/node-modules/react-router.js similarity index 100% rename from interfaces/node-modules/react-router.js rename to flow/interfaces/node-modules/react-router.js diff --git a/interfaces/node-modules/redbox-react.js b/flow/interfaces/node-modules/redbox-react.js similarity index 100% rename from interfaces/node-modules/redbox-react.js rename to flow/interfaces/node-modules/redbox-react.js diff --git a/interfaces/node-modules/redux_v3.x.x.js b/flow/interfaces/node-modules/redux_v3.x.x.js similarity index 98% rename from interfaces/node-modules/redux_v3.x.x.js rename to flow/interfaces/node-modules/redux_v3.x.x.js index f4c6d3359..ecc1b2bf1 100644 --- a/interfaces/node-modules/redux_v3.x.x.js +++ b/flow/interfaces/node-modules/redux_v3.x.x.js @@ -1,7 +1,7 @@ // flow-typed signature: 3b60d0484a561f2e7c43ac2a5eb28d87 // flow-typed version: f622abbe3e/redux_v3.x.x/flow_>=v0.23.x -declare module 'redux' { +declare module "redux" { declare type State = any; declare type Action = Object; declare type AsyncAction = any; diff --git a/interfaces/node-modules/remark-autolink-headings.js b/flow/interfaces/node-modules/remark-autolink-headings.js similarity index 100% rename from interfaces/node-modules/remark-autolink-headings.js rename to flow/interfaces/node-modules/remark-autolink-headings.js diff --git a/interfaces/node-modules/remark-highlight.js.js b/flow/interfaces/node-modules/remark-highlight.js.js similarity index 100% rename from interfaces/node-modules/remark-highlight.js.js rename to flow/interfaces/node-modules/remark-highlight.js.js diff --git a/interfaces/node-modules/remark-html.js b/flow/interfaces/node-modules/remark-html.js similarity index 100% rename from interfaces/node-modules/remark-html.js rename to flow/interfaces/node-modules/remark-html.js diff --git a/interfaces/node-modules/remark-slug.js b/flow/interfaces/node-modules/remark-slug.js similarity index 100% rename from interfaces/node-modules/remark-slug.js rename to flow/interfaces/node-modules/remark-slug.js diff --git a/interfaces/node-modules/remark.js b/flow/interfaces/node-modules/remark.js similarity index 100% rename from interfaces/node-modules/remark.js rename to flow/interfaces/node-modules/remark.js diff --git a/interfaces/node-modules/simple-json-fetch.js b/flow/interfaces/node-modules/simple-json-fetch.js similarity index 100% rename from interfaces/node-modules/simple-json-fetch.js rename to flow/interfaces/node-modules/simple-json-fetch.js diff --git a/interfaces/node-modules/strip-markdown.js b/flow/interfaces/node-modules/strip-markdown.js similarity index 100% rename from interfaces/node-modules/strip-markdown.js rename to flow/interfaces/node-modules/strip-markdown.js diff --git a/interfaces/node-modules/url-join.js b/flow/interfaces/node-modules/url-join.js similarity index 100% rename from interfaces/node-modules/url-join.js rename to flow/interfaces/node-modules/url-join.js diff --git a/interfaces/node-modules/webpack.js b/flow/interfaces/node-modules/webpack.js similarity index 100% rename from interfaces/node-modules/webpack.js rename to flow/interfaces/node-modules/webpack.js diff --git a/interfaces/phenomic.js b/flow/interfaces/phenomic.js similarity index 100% rename from interfaces/phenomic.js rename to flow/interfaces/phenomic.js diff --git a/interfaces/webpack.js b/flow/interfaces/webpack.js similarity index 100% rename from interfaces/webpack.js rename to flow/interfaces/webpack.js diff --git a/package.json b/package.json index b54ab5245..e20acd710 100644 --- a/package.json +++ b/package.json @@ -170,7 +170,7 @@ "transpile": "babel --ignore __tests__ --copy-files src --out-dir lib", "prepublish": "rimraf lib && npm run transpile", "#lint:js:eslint": "https://github.com/eslint/eslint/issues/5679", - "lint:js:eslint": "eslint --ignore-path .gitignore --fix src __tests__ scripts npm interfaces docs/scripts docs/src docs/web_modules boilerplate/scripts boilerplate/src boilerplate/web_modules", + "lint:js:eslint": "eslint --ignore-path .gitignore --fix src __tests__ scripts npm docs/scripts docs/src docs/web_modules boilerplate/scripts boilerplate/src boilerplate/web_modules", "lint:js:flow": "flow check", "lint:js": "npm-run-all --parallel lint:js:*", "lint:css": "stylelint \"+(boilerplate|docs)/web_modules/**/*.css\"",