Skip to content

Commit

Permalink
fix: ignore export default for markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 25, 2023
1 parent 9cfdb54 commit af3fd7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/js.js
Expand Up @@ -3,7 +3,7 @@ import jsConfig from '@eslint/js'
import importPlugin from 'eslint-plugin-import'
import unicornPlugin from 'eslint-plugin-unicorn'
import antfuPlugin from 'eslint-plugin-antfu'
import { GLOB_SRC, GLOB_SRC_EXT } from './shared.js'
import { GLOB_MARKDOWN, GLOB_SRC, GLOB_SRC_EXT } from './shared.js'

export { importPlugin, unicornPlugin, antfuPlugin }

Expand Down Expand Up @@ -158,6 +158,7 @@ export const imports = [
`**/pages/${GLOB_SRC}`,
`**/{index,vite,esbuild,rollup,webpack,rspack}.ts`,
'**/*.d.ts',
`${GLOB_MARKDOWN}/**`,
],
plugins: {
import: importPlugin,
Expand Down
2 changes: 1 addition & 1 deletion src/markdown.js
Expand Up @@ -12,7 +12,7 @@ export const markdown = [
processor: 'markdown/markdown',
},
{
files: [`**/*.md/${GLOB_SRC}`, `**/*.md/${GLOB_VUE}`],
files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
languageOptions: {
parserOptions: {
ecmaFeatures: {
Expand Down

0 comments on commit af3fd7b

Please sign in to comment.