Skip to content

Commit

Permalink
feat(workflow-plugin-react): added webpack config for eslint-config-a…
Browse files Browse the repository at this point in the history
…vaility
  • Loading branch information
GoPro16 committed Jan 29, 2019
1 parent 4136c9e commit 4454457
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/workflow-plugin-angular/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ const config = {
loaders.less.development,
loaders.scss.development,
loaders.fonts,
loaders.images
loaders.images,
loaders.eslint
]
},
plugins: [
Expand Down
2 changes: 2 additions & 0 deletions packages/workflow-plugin-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"cross-spawn": "^6.0.5",
"css-loader": "^2.0.1",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"eslint-config-availity": "^3.0.0",
"eslint-loader": "^2.1.1",
"file-loader": "^3.0.1",
"fs-extra": "^7.0.0",
"html-webpack-plugin": "^3.2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/workflow-settings/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = {
postcss: require('./loader-postcss'),
fonts: require('./rule-fonts'),
images: require('./rule-images'),
eslint: require('./loader-eslint'),
MiniCssExtractPlugin: require('mini-css-extract-plugin')
};
11 changes: 11 additions & 0 deletions packages/workflow-settings/webpack/loader-eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
loader: 'eslint-loader',
test: /\.js$/,
exclude: /node_modules/,

options: {
baseConfig: {
extends: 'eslint-config-availity'
}
}
};

0 comments on commit 4454457

Please sign in to comment.