mirror of
https://github.com/ivuorinen/sysvinit-service-generator.git
synced 2026-02-14 21:52:08 +00:00
chore: tweak eslint and tsconfig
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import pluginVue from 'eslint-plugin-vue'
|
||||
import vueTsEslintConfig from '@vue/eslint-config-typescript'
|
||||
import {
|
||||
defineConfigWithVueTs,
|
||||
vueTsConfigs,
|
||||
} from '@vue/eslint-config-typescript'
|
||||
import { includeIgnoreFile } from '@eslint/compat'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
@@ -8,19 +11,17 @@ const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
const gitignorePath = path.resolve(__dirname, '.gitignore')
|
||||
|
||||
export default [
|
||||
export default defineConfigWithVueTs([
|
||||
includeIgnoreFile(gitignorePath),
|
||||
{
|
||||
// your overrides
|
||||
},
|
||||
...pluginVue.configs['flat/essential'],
|
||||
...vueTsEslintConfig({
|
||||
extends: ['recommended']
|
||||
}),
|
||||
vueTsConfigs.recommended,
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'script'
|
||||
}
|
||||
}
|
||||
]
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user