{"size": 1736, "ext": "js", "max_stars_repo_path": ".storybook/main.js", "max_stars_repo_name": "hinogi/storybook-quasar-starter", "max_stars_repo_stars_event_min_datetime": "2022-03-30T19:58:32.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T19:58:32.000Z", "max_issues_repo_path": ".storybook/main.js", "max_issues_repo_name": "hinogi/storybook-quasar-starter", "max_issues_repo_issues_event_min_datetime": "2022-03-30T20:02:58.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T13:49:26.000Z", "max_forks_repo_path": ".storybook/main.js", "max_forks_repo_name": "hinogi/storybook-quasar-starter", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 27.125, "max_line_length": 79, "alphanum_fraction": 0.5622119816}
const path = require('path');
const aliases = require('./aliases');
const tsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

module.exports = {
  stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
  addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
  framework: '@storybook/vue3',
  core: {
    builder: 'webpack5',
  },
  typescript: {
    check: false,
    checkOptions: {},
    reactDocgen: 'react-docgen-typescript',
    reactDocgenTypescriptOptions: {
      shouldExtractLiteralValuesFromEnum: true,
      propFilter: (prop) =>
        prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
    },
  },
  webpackFinal: async (config, { configType }) => {
    config.resolve.plugins = config.resolve.plugins || [];
    config.resolve.plugins.push(new tsconfigPathsPlugin({}));

    config.module.rules.push({
      enforce: 'pre',
      test: /\.(js|vue)$/,
      loader: 'eslint-loader',
      exclude: /node_modules/,
      options: {
        formatter: require('eslint').CLIEngine.getFormatter('stylish'),
      },
    });

    config.module.rules.push({
      test: /\.s(c|a)ss$/,
      use: [
        'style-loader',
        'css-loader',
        {
          loader: 'sass-loader',
          options: {
            // If you want to add global variables
            // additionalData: `@import 'src/css/quasar.variables.sass'`,
            sassOptions: {
              indentedSyntax: true,
            },
          },
        },
      ],
      include: path.resolve(__dirname, '../'),
    });

    config.module.rules.push({
      test: /\.ts$/,
      loader: 'ts-loader',
      options: { appendTsSuffixTo: [/\.vue$/] },
    });

    return config;
  },
};
