mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
35 lines
674 B
JavaScript
35 lines
674 B
JavaScript
import baseConfig from '@modrinth/tooling-config/eslint/nuxt.mjs'
|
|
import storybook from 'eslint-plugin-storybook'
|
|
|
|
export default baseConfig.append([
|
|
{
|
|
name: 'storybook',
|
|
files: ['**/*.stories.@(js|jsx|ts|tsx)', '**/.storybook/**/*.@(js|ts)'],
|
|
plugins: {
|
|
storybook,
|
|
},
|
|
rules: {
|
|
...storybook.configs.recommended.rules,
|
|
},
|
|
},
|
|
{
|
|
name: 'modrinth/restrict-comark-vue',
|
|
files: ['**/*.{ts,vue}'],
|
|
ignores: ['src/components/base/MarkdownBody.vue'],
|
|
rules: {
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
paths: [
|
|
{
|
|
name: '@comark/vue',
|
|
message:
|
|
"Use <MarkdownBody> instead",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
])
|