mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
13659d036f
* ensure that eslint runs on all frontend code * remove tslint from `design-system` * enable prettier and eslint-prettier for `design-system` * Delete tslint.json * use a single editorconfig for the repo * enable prettier for all code in `design-system` * more linting fixes on design-system * ignore coverage for git and prettier * lintfix on editor-ui
57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
const path = require('path');
|
|
|
|
/**
|
|
* @type {import('@storybook/core-common').StorybookConfig}
|
|
*/
|
|
module.exports = {
|
|
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|ts)'],
|
|
addons: [
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-essentials',
|
|
{
|
|
name: '@storybook/addon-postcss',
|
|
options: {
|
|
postcssLoaderOptions: {
|
|
implementation: require('postcss'),
|
|
},
|
|
},
|
|
},
|
|
'storybook-addon-designs',
|
|
'storybook-addon-themes',
|
|
],
|
|
webpackFinal: async (config) => {
|
|
config.module.rules.push({
|
|
test: /\.scss$/,
|
|
oneOf: [
|
|
{
|
|
resourceQuery: /module/,
|
|
use: [
|
|
'vue-style-loader',
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
modules: {
|
|
localIdentName: '[path][name]__[local]--[hash:base64:5]',
|
|
},
|
|
},
|
|
},
|
|
'sass-loader',
|
|
],
|
|
include: path.resolve(__dirname, '../'),
|
|
},
|
|
{
|
|
use: ['vue-style-loader', 'css-loader', 'sass-loader'],
|
|
include: path.resolve(__dirname, '../'),
|
|
},
|
|
],
|
|
});
|
|
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
'@/': path.resolve(__dirname, '../src/'),
|
|
};
|
|
|
|
return config;
|
|
},
|
|
};
|