Always tscheck, ignore eslint in prod
This commit is contained in:
parent
0d35ab95fd
commit
85dcfd4cf5
2 changed files with 8 additions and 5 deletions
|
@ -26,15 +26,18 @@ extends:
|
|||
- "plugin:react/recommended"
|
||||
- "plugin:@typescript-eslint/recommended"
|
||||
rules:
|
||||
quotes:
|
||||
- warn
|
||||
- single
|
||||
indent:
|
||||
- error
|
||||
- warn
|
||||
- 4
|
||||
- SwitchCase: 1
|
||||
semi:
|
||||
- error
|
||||
- warn
|
||||
- always
|
||||
comma-dangle:
|
||||
- error
|
||||
- warn
|
||||
- always-multiline
|
||||
array-bracket-spacing:
|
||||
- warn
|
||||
|
|
|
@ -76,11 +76,11 @@ module.exports = {
|
|||
plugins: [
|
||||
new webpack.ContextReplacementPlugin(/brace[/\\](mode|worker)/, new RegExp(`^\.\/(${modes.join('|')})$`)),
|
||||
new AssetsManifestPlugin({ writeToDisk: true, publicPath: true, integrity: true, integrityHashes: ['sha384'] }),
|
||||
!isProduction ? new ForkTsCheckerWebpackPlugin({
|
||||
new ForkTsCheckerWebpackPlugin(isProduction ? {} : {
|
||||
eslint: {
|
||||
files: `${path.join(__dirname, '/resources/scripts')}/**/*.{ts,tsx}`,
|
||||
},
|
||||
}) : null,
|
||||
}),
|
||||
process.env.ANALYZE_BUNDLE ? new BundleAnalyzerPlugin({
|
||||
analyzerHost: '0.0.0.0',
|
||||
analyzerPort: 8081,
|
||||
|
|
Loading…
Reference in a new issue