mirror of
https://github.com/ivuorinen/sysvinit-service-generator.git
synced 2026-01-26 11:33:59 +00:00
35 lines
848 B
JavaScript
35 lines
848 B
JavaScript
import pluginVue from 'eslint-plugin-vue'
|
|
import {
|
|
defineConfigWithVueTs,
|
|
vueTsConfigs
|
|
} from '@vue/eslint-config-typescript'
|
|
import { includeIgnoreFile } from '@eslint/compat'
|
|
import path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = path.dirname(__filename)
|
|
const gitignorePath = path.resolve(__dirname, '.gitignore')
|
|
|
|
export default defineConfigWithVueTs([
|
|
includeIgnoreFile(gitignorePath),
|
|
{
|
|
// your overrides
|
|
},
|
|
...pluginVue.configs['flat/essential'],
|
|
vueTsConfigs.recommendedTypeChecked,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'script',
|
|
parserOptions: {
|
|
project: [
|
|
'./tsconfig.json',
|
|
'./tsconfig.node.json',
|
|
'./tsconfig.eslint.json'
|
|
]
|
|
}
|
|
}
|
|
}
|
|
])
|