Skip to content

Commit 85dcfd4

Browse files
committed
Always tscheck, ignore eslint in prod
1 parent 0d35ab9 commit 85dcfd4

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

resources/scripts/.eslintrc.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ extends:
2626
- "plugin:react/recommended"
2727
- "plugin:@typescript-eslint/recommended"
2828
rules:
29+
quotes:
30+
- warn
31+
- single
2932
indent:
30-
- error
33+
- warn
3134
- 4
3235
- SwitchCase: 1
3336
semi:
34-
- error
37+
- warn
3538
- always
3639
comma-dangle:
37-
- error
40+
- warn
3841
- always-multiline
3942
array-bracket-spacing:
4043
- warn

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ module.exports = {
7676
plugins: [
7777
new webpack.ContextReplacementPlugin(/brace[/\\](mode|worker)/, new RegExp(`^\.\/(${modes.join('|')})$`)),
7878
new AssetsManifestPlugin({ writeToDisk: true, publicPath: true, integrity: true, integrityHashes: ['sha384'] }),
79-
!isProduction ? new ForkTsCheckerWebpackPlugin({
79+
new ForkTsCheckerWebpackPlugin(isProduction ? {} : {
8080
eslint: {
8181
files: `${path.join(__dirname, '/resources/scripts')}/**/*.{ts,tsx}`,
8282
},
83-
}) : null,
83+
}),
8484
process.env.ANALYZE_BUNDLE ? new BundleAnalyzerPlugin({
8585
analyzerHost: '0.0.0.0',
8686
analyzerPort: 8081,

0 commit comments

Comments
 (0)