Do not check internal lib types

This commit is contained in:
dominik-zeglen 2019-11-05 17:23:14 +01:00
parent 254d0714ad
commit 1aa3fb19f9
4 changed files with 4 additions and 9 deletions

View file

@ -180,7 +180,7 @@
"extract-messages": "npm run extract-json-messages && npm run extract-pot-messages", "extract-messages": "npm run extract-json-messages && npm run extract-pot-messages",
"build-messages": "rip po2json 'locale/**/*.po' -m 'build/locale/**/*.json' -o 'locale' -c 'description'", "build-messages": "rip po2json 'locale/**/*.po' -m 'build/locale/**/*.json' -o 'locale' -c 'description'",
"build-types": "apollo client:codegen --target=typescript types --globalTypesFile=src/types/globalTypes.ts", "build-types": "apollo client:codegen --target=typescript types --globalTypesFile=src/types/globalTypes.ts",
"check-types": "tsc --noEmit --skipLibCheck", "check-types": "tsc --noEmit",
"generate-component": "plop --plopfile .plop/plopfile.js", "generate-component": "plop --plopfile .plop/plopfile.js",
"start": "webpack-dev-server --open -d", "start": "webpack-dev-server --open -d",
"storybook": "start-storybook -p 3000 -c src/storybook/", "storybook": "start-storybook -p 3000 -c src/storybook/",

View file

@ -24,12 +24,6 @@ module.exports = ({ config }) => {
configFile: "./tsconfig.json" configFile: "./tsconfig.json"
}) })
]; ];
config.plugins.push( config.plugins.push(new CheckerPlugin());
new CheckerPlugin({
compilerOptions: {
skipLibCheck: true
}
})
);
return config; return config;
}; };

View file

@ -4,6 +4,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"jsx": "react", "jsx": "react",
"lib": ["es2017", "dom", "esnext"], "lib": ["es2017", "dom", "esnext"],
"skipLibCheck": true,
"sourceMap": true, "sourceMap": true,
"target": "es5", "target": "es5",
"noUnusedLocals": true, "noUnusedLocals": true,

View file

@ -3,7 +3,7 @@ const path = require("path");
const webpack = require("webpack"); const webpack = require("webpack");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin"); const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin");
require('dotenv').config(); require("dotenv").config();
const resolve = path.resolve.bind(path, __dirname); const resolve = path.resolve.bind(path, __dirname);