mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
Added eslint to webpack config
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable */
|
||||
const path = require('path');
|
||||
const {
|
||||
ProvidePlugin
|
||||
} = require('webpack');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const WebpackManifestPlugin = require('webpack-manifest-plugin').WebpackManifestPlugin;
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
|
||||
const config = [{
|
||||
name: 'dashboard',
|
||||
@@ -60,6 +62,11 @@ const config = [{
|
||||
new WebpackManifestPlugin({
|
||||
publicPath: "",
|
||||
fileName: "dashboard.manifest.json"
|
||||
}),
|
||||
new ESLintPlugin({
|
||||
extensions: ['ts', 'tsx'],
|
||||
exclude: ['node_modules', 'dist'],
|
||||
emitWarning: false,
|
||||
})
|
||||
],
|
||||
devServer: {
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
const path = require('path');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const IgnoreDynamicRequire = require('webpack-ignore-dynamic-require');
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
|
||||
const config = [
|
||||
{
|
||||
@@ -58,7 +61,11 @@ const config = [
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new IgnoreDynamicRequire()
|
||||
new IgnoreDynamicRequire(),
|
||||
new ESLintPlugin({
|
||||
extensions: ['ts'],
|
||||
emitWarning: false,
|
||||
})
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable */
|
||||
const path = require('path');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const WebpackManifestPlugin = require('webpack-manifest-plugin').WebpackManifestPlugin;
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
|
||||
const config = [{
|
||||
name: 'panel',
|
||||
@@ -62,6 +64,11 @@ const config = [{
|
||||
new WebpackManifestPlugin({
|
||||
publicPath: "",
|
||||
fileName: "panel.manifest.json"
|
||||
}),
|
||||
new ESLintPlugin({
|
||||
extensions: ['ts', 'tsx'],
|
||||
exclude: ['node_modules', 'dist'],
|
||||
emitWarning: false,
|
||||
})
|
||||
],
|
||||
devServer: {
|
||||
|
||||
Reference in New Issue
Block a user