Skip to content

Commit

Permalink
Merge pull request #18 from e-sites/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
remcotak authored Jun 23, 2020
2 parents e2388dc + 3af76a2 commit a757d82
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.2.0",
"eslint-config-wesbos": "0.0.19",
"eslint-loader": "^4.0.2",
"eslint-plugin-html": "^5.0.3",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-jsx-a11y": "^6.2.1",
Expand All @@ -43,6 +44,7 @@
"stylelint": "^10.0.1",
"stylelint-config-supple": "^2.1.0",
"stylelint-scss": "^3.6.1",
"stylelint-webpack-plugin": "^2.1.0",
"svg-sprite-loader": "^4.1.6",
"svg-spritemap-webpack-plugin": "^3.3.0",
"svgo-loader": "^2.2.0",
Expand Down
13 changes: 13 additions & 0 deletions app/templates/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const WebpackNotifierPlugin = require('webpack-notifier');
const SVGSpritemapPlugin = require('svg-spritemap-webpack-plugin');
const StylelintPlugin = require('stylelint-webpack-plugin');

// Get gonfig
const {
Expand All @@ -33,6 +34,12 @@ module.exports = {
module: {
rules: [
// javascript
{
enforce: 'pre',
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
},
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
Expand Down Expand Up @@ -130,6 +137,12 @@ module.exports = {
},
]),

// Style lint
new StylelintPlugin({
configFile: '.stylelintrc',
files: `${paths.source}/**/*.scss`,
}),

new WebpackNotifierPlugin({
title: 'Webpack',
excludeWarnings: true,
Expand Down

0 comments on commit a757d82

Please sign in to comment.