Skip to content
Snippets Groups Projects
Verified Commit c9fbb7f7 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Dev] Add ESLint and Stylelint

parent 69a1be4c
No related branches found
No related tags found
1 merge request!1045Introduce Vuetify and GraphQL
Pipeline #79803 failed
module.exports = {
extends: [
'plugin:vue/strongly-recommended',
],
rules: {
// override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
}
}
{
"extends": "stylelint-config-standard"
}
const path = require('path');
const webpack = require('webpack');
const BundleTracker = require('webpack-bundle-tracker')
const { VueLoaderPlugin } = require('vue-loader')
const BundleTracker = require('webpack-bundle-tracker');
const { VueLoaderPlugin } = require('vue-loader');
const ESLintPlugin = require('eslint-webpack-plugin');
const StyleLintPlugin = require('stylelint-webpack-plugin');
module.exports = {
context: __dirname,
......@@ -19,6 +21,12 @@ module.exports = {
plugins: [
new BundleTracker({filename: './webpack-stats.json'}),
new VueLoaderPlugin(),
new ESLintPlugin({
extensions: ["js", "vue"],
}),
new StyleLintPlugin({
files: ['assets/**/*.{vue,htm,html,css,sss,less,scss,sass}'],
}),
],
module: {
rules: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment