feat: Allow eslint-config to be externally consumable (#6694)

* feat: Allow `eslint-config` to be externally consumable

* refactor: Adjust import styles
This commit is contained in:
Iván Ovejero
2023-07-19 09:35:10 +02:00
committed by GitHub
parent 0a31b8e2b4
commit 3566c13afc
9 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
/**
* @type {(dir: string, mode: 'frontend' | undefined) => import('@types/eslint').ESLint.ConfigData}
*/
exports.sharedOptions = (tsconfigRootDir, mode) => {
module.exports = (tsconfigRootDir, mode) => {
const isFrontend = mode === 'frontend';
const parser = isFrontend ? 'vue-eslint-parser' : '@typescript-eslint/parser';
const extraParserOptions = isFrontend