mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
chore(eslint): add rule to sort imports (#3715)
* chore(eslint): add plugin to sort imports * chore(eslint): sort imports * chore(eslint): add eslint-config-prettier
This commit is contained in:
parent
cf5056d9c0
commit
bba622a500
11 changed files with 172 additions and 283 deletions
|
@ -1,5 +1,4 @@
|
|||
const path = require('path');
|
||||
const pkg = require('../package.json');
|
||||
const { ProvidePlugin, IgnorePlugin, DefinePlugin } = require('webpack');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const WebpackBuildNotifierPlugin = require('webpack-build-notifier');
|
||||
|
@ -7,7 +6,7 @@ const CleanTerminalPlugin = require('clean-terminal-webpack-plugin');
|
|||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
|
||||
const npmPackage = require('../package.json');
|
||||
const pkg = require('../package.json');
|
||||
const projectRoot = path.resolve(__dirname, '..');
|
||||
|
||||
module.exports = {
|
||||
|
@ -60,8 +59,8 @@ module.exports = {
|
|||
new HtmlWebpackPlugin({
|
||||
template: './app/index.html',
|
||||
templateParameters: {
|
||||
name: npmPackage.name,
|
||||
author: npmPackage.author,
|
||||
name: pkg.name,
|
||||
author: pkg.author,
|
||||
},
|
||||
manifest: './assets/ico/manifest.json',
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue