1
0
Fork 0
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:
Chaim Lev-Ari 2020-04-15 02:46:34 +03:00 committed by GitHub
parent cf5056d9c0
commit bba622a500
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 172 additions and 283 deletions

View file

@ -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',
}),