Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Aug 20, 2024
1 parent 9e35b80 commit ac45e0a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ import { vuepress } from 'eslint-config-vuepress'

const ROOT = path.resolve(fileURLToPath(import.meta.url), '..')
const E2E_DIR = path.resolve(ROOT, 'e2e')
const SCRIPTS_DIR = path.resolve(ROOT, 'scripts')
const PLUGINS_DIRS = fs
.readdirSync(path.resolve(ROOT, 'plugins'))
.map((item) => `./plugins/${item}`)
const THEME_DIRS = fs
.flatMap((category) =>
fs
.readdirSync(path.resolve(ROOT, `./plugins/${category}`))
.map((plugin) => path.resolve(ROOT, `./plugins/${category}/${plugin}`)),
)
const THEMES_DIRS = fs
.readdirSync(path.resolve(ROOT, 'themes'))
.map((item) => `./themes/${item}`)
.map((item) => path.resolve(ROOT, `./themes/${item}`))
const TOOLS_DIRS = fs
.readdirSync(path.resolve(ROOT, 'tools'))
.map((item) => `./tools/${item}`)
.map((item) => path.resolve(ROOT, `./tools/${item}`))

export default vuepress(
{
Expand All @@ -23,9 +26,8 @@ export default vuepress(
packageDir: [
ROOT,
E2E_DIR,
SCRIPTS_DIR,
...PLUGINS_DIRS,
...THEME_DIRS,
...THEMES_DIRS,
...TOOLS_DIRS,
],
},
Expand Down Expand Up @@ -112,8 +114,6 @@ export default vuepress(
},
],
'@typescript-eslint/promise-function-async': 'off',
// FIXME: Fail positives
'import/no-extraneous-dependencies': 'off',
'no-underscore-dangle': 'off',
'no-labels': 'off',
},
Expand Down

0 comments on commit ac45e0a

Please sign in to comment.