diff --git a/package.json b/package.json index f779cbb0e..e0895b046 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "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-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", "start": "webpack-dev-server --open -d", "storybook": "start-storybook -p 3000 -c src/storybook/", diff --git a/src/storybook/webpack.config.js b/src/storybook/webpack.config.js index a36720f2e..9c94ff6cb 100644 --- a/src/storybook/webpack.config.js +++ b/src/storybook/webpack.config.js @@ -24,12 +24,6 @@ module.exports = ({ config }) => { configFile: "./tsconfig.json" }) ]; - config.plugins.push( - new CheckerPlugin({ - compilerOptions: { - skipLibCheck: true - } - }) - ); + config.plugins.push(new CheckerPlugin()); return config; }; diff --git a/tsconfig.json b/tsconfig.json index 305cc48b0..56464c40a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "esModuleInterop": true, "jsx": "react", "lib": ["es2017", "dom", "esnext"], + "skipLibCheck": true, "sourceMap": true, "target": "es5", "noUnusedLocals": true, diff --git a/webpack.config.js b/webpack.config.js index d2ccd8247..d68988963 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,7 @@ const path = require("path"); const webpack = require("webpack"); const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin"); -require('dotenv').config(); +require("dotenv").config(); const resolve = path.resolve.bind(path, __dirname);