Skip to content

Commit

Permalink
fix cjs and esm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
reiroop committed May 10, 2024
1 parent 33f68d2 commit dca7e68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"extends": [
"eslint:recommended",
"./eslint-vue-ts-recommended.js",
"./eslint-vue-ts-recommended.cjs",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"prettier"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
*/

// eslint-disable-next-line @typescript-eslint/no-var-requires, no-undef
import typescriptEslintEslintRecommended, {
overrides as _overrides
} from '@/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended'
const typescriptEslintEslintRecommended = require('./node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended')

// eslint-disable-next-line no-undef
export default {
module.exports = {
...typescriptEslintEslintRecommended,
overrides: _overrides.map(override => {
overrides: typescriptEslintEslintRecommended.overrides.map(override => {
if (override.files.includes('*.ts')) {
return { ...override, files: [...override.files, '*.vue'] }
}
Expand Down

0 comments on commit dca7e68

Please sign in to comment.