1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-26 21:02:28 +02:00

Always tscheck, ignore eslint in prod

This commit is contained in:
Dane Everitt 2020-07-12 10:43:37 -07:00
parent 0d35ab95fd
commit 85dcfd4cf5
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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,