Skip to content

Commit

Permalink
Remove flowtype entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Nov 27, 2021
1 parent 5b59c2e commit 92a4840
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
presets: [['@babel/preset-env', { targets: { node: '12' } }]],
plugins: [
'./resources/load-statically-from-npm.js',
'@babel/plugin-transform-flow-strip-types',
],
overrides: [
{
Expand Down
6 changes: 1 addition & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# Copied from '.gitignore', please keep it in sync.
dist
node_modules
coverage

# Ingore flow files
flow-typed
resources/interfaces
coverage
1 change: 0 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"node_modules",
"coverage",
"dist",
"flow-typed",
"__tests__",

// Excluded from spelling check
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@
"prettier": "prettier --write --list-different .",
"prettier:check": "prettier --check .",
"check:spelling": "cspell '**/*'",
"check": "flow check",
"build": "rm -rf dist/* && babel src --ignore __tests__ --out-dir dist && npm run build:flow",
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
"build": "rm -rf dist/* && babel src --ignore __tests__ --out-dir dist",
"watch": "node resources/watch.js",
"preversion": "npm test",
"start": "node -r ./resources/register.js examples/index.ts"
Expand All @@ -67,7 +65,6 @@
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.14.8",
"@babel/plugin-transform-flow-strip-types": "^7.14.5",
"@babel/preset-env": "^7.14.9",
"@babel/register": "^7.14.5",
"@types/chai": "^4.2.21",
Expand All @@ -89,13 +86,11 @@
"cspell": "^4.2.2",
"downlevel-dts": "^0.7.0",
"eslint": "^7.31.0",
"eslint-plugin-flowtype": "^5.9.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-internal-rules": "file:./resources/eslint-internal-rules",
"eslint-plugin-istanbul": "^0.1.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"flow-bin": "^0.123.0",
"graphiql": "^1.4.2",
"graphql": "^15.7.2",
"koa": "^2.11.0",
Expand Down

0 comments on commit 92a4840

Please sign in to comment.