@sxzz/eslint-config 3.0.0-beta.7 → 3.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,7 +13,7 @@ Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
13
13
  ## Install
14
14
 
15
15
  ```bash
16
- npm i @sxzz/eslint-config
16
+ npm i -D @sxzz/eslint-config
17
17
  ```
18
18
 
19
19
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0-beta.9",
4
4
  "packageManager": "pnpm@8.2.0",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",
package/src/js.js CHANGED
@@ -3,7 +3,7 @@ import jsConfig from '@eslint/js'
3
3
  import importPlugin from 'eslint-plugin-import'
4
4
  import unicornPlugin from 'eslint-plugin-unicorn'
5
5
  import antfuPlugin from 'eslint-plugin-antfu'
6
- import { GLOB_SRC, GLOB_SRC_EXT } from './shared.js'
6
+ import { GLOB_MARKDOWN, GLOB_SRC, GLOB_SRC_EXT } from './shared.js'
7
7
 
8
8
  export { importPlugin, unicornPlugin, antfuPlugin }
9
9
 
@@ -157,6 +157,8 @@ export const imports = [
157
157
  `**/views/${GLOB_SRC}`,
158
158
  `**/pages/${GLOB_SRC}`,
159
159
  `**/{index,vite,esbuild,rollup,webpack,rspack}.ts`,
160
+ '**/*.d.ts',
161
+ `${GLOB_MARKDOWN}/**`,
160
162
  ],
161
163
  plugins: {
162
164
  import: importPlugin,
package/src/markdown.js CHANGED
@@ -12,7 +12,7 @@ export const markdown = [
12
12
  processor: 'markdown/markdown',
13
13
  },
14
14
  {
15
- files: [`**/*.md/${GLOB_SRC}`, `**/*.md/${GLOB_VUE}`],
15
+ files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
16
16
  languageOptions: {
17
17
  parserOptions: {
18
18
  ecmaFeatures: {