Skip to content

Commit

Permalink
chore: disable flow checks on generated/plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Sep 29, 2020
1 parent a4b335c commit 41a2d6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .flowconfig
Expand Up @@ -27,5 +27,7 @@ suppress_type=$FlowSubtype
esproposal.export_star_as=enable
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable
module.name_mapper='^@babel\/\([a-zA-Z0-9_\-]+\)$' -> '<PROJECT_ROOT>/packages/babel-\1/src/index'
module.name_mapper='^@babel/\([a-zA-Z0-9_-]+\)$' -> '<PROJECT_ROOT>/packages/babel-\1/src/index'
; Todo: can not make it works, 🤷‍♂️
; module.name_mapper='^@babel/plugin-syntax-import-meta$' -> '<PROJECT_ROOT>/packages/babel-standalone/node_modules/@babel/plugin-syntax-import-meta/lib/index'
module.ignore_non_literal_requires=true
2 changes: 1 addition & 1 deletion packages/babel-standalone/scripts/generate.js
Expand Up @@ -21,7 +21,7 @@ for (const plugin of pluginConfig) {
allList += `"${plugin}": ${camelPlugin},`;
}

const fileContent = `// @flow
const fileContent = `
/*
* This file is auto-generated! Do not modify it directly.
* To re-generate run 'make build'
Expand Down
1 change: 0 additions & 1 deletion packages/babel-standalone/src/generated/plugins.js
@@ -1,4 +1,3 @@
// @flow
/*
* This file is auto-generated! Do not modify it directly.
* To re-generate run 'make build'
Expand Down

0 comments on commit 41a2d6b

Please sign in to comment.