Skip to content

Commit

Permalink
LITE-28705: Migrate component templates from Pug to plain HTML
Browse files Browse the repository at this point in the history
- Added more strict ESLint rules for vue
- Updated dependencies, major work on storybook migration
  • Loading branch information
arnaugiralt committed Oct 3, 2023
1 parent 8681507 commit 7b61f65
Show file tree
Hide file tree
Showing 12 changed files with 21,477 additions and 33,564 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.cjs

This file was deleted.

20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* eslint-env node */
module.exports = {
root: true,
ignorePatterns: ['*.config.js', '*.spec.js', 'tasks/*', 'dist/*'],
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'plugin:storybook/recommended',
],

plugins: ['vue'],

env: {
'vue/setup-compiler-macros': true,
},

rules: {
'vue/multi-word-component-names': 'off',
},
};
26 changes: 18 additions & 8 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
const path = require('path');

module.exports = {
stories:
["../src/**/*.stories.@(js|jsx|ts|tsx)",
"../src/**/*.stories.mdx",],
stories: [
"../src/**/*.stories.@(js|jsx|ts|tsx)",
"../src/stories/**/*.mdx",
],

staticDirs: ["../public"],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"storybook-addon-designs"
"@storybook/addon-designs",
],
framework: "@storybook/vue3",
core: {
builder: "@storybook/builder-webpack5",

framework: {
name: "@storybook/vue3-webpack5",
options: {},
},

features: {
interactionsDebugger: true,
},

webpackFinal: async (config) => {

config.module.rules.push({
Expand All @@ -29,7 +35,7 @@ module.exports = {
],
include: path.resolve(__dirname, '../'),
});

config.module.rules.push(
{
test: /\.pug$/,
Expand All @@ -41,4 +47,8 @@ module.exports = {

return config;
},

docs: {
autodocs: true,
},
};
Loading

0 comments on commit 7b61f65

Please sign in to comment.