Skip to content

Commit

Permalink
Sync eslint.config with other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinovantes committed Jun 20, 2024
1 parent 69c9c4f commit cf0880a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import tseslint from 'typescript-eslint'
import pluginVue from 'eslint-plugin-vue'
import stylistic from '@stylistic/eslint-plugin'
import nodePlugin from 'eslint-plugin-n'
import vueParser from 'vue-eslint-parser'

export default tseslint.config(
{
Expand Down Expand Up @@ -98,19 +99,22 @@ export default tseslint.config(

...tseslint.configs.recommendedTypeChecked.map((config) => ({
...config,
files: ['**/*.ts'],
files: ['**/*.ts', '**/*.vue'],
})),

{
files: ['**/*.ts'],
files: ['**/*.ts', '**/*.vue'],

languageOptions: {
parser: vueParser,
parserOptions: {
extraFileExtensions: ['.vue'],
parser: '@typescript-eslint/parser',
project: './tsconfig.json',
ecmaVersion: 'latest',
sourceType: 'module',
allowAutomaticSingleRunInference: false,
disallowAutomaticSingleRunInference: true,
},
},

Expand Down

0 comments on commit cf0880a

Please sign in to comment.