mirror of
https://github.com/ivuorinen/sysvinit-service-generator.git
synced 2026-02-27 22:57:07 +00:00
chore(deps): update eslint, config and packages
This commit is contained in:
26
eslint.config.mjs
Normal file
26
eslint.config.mjs
Normal file
@@ -0,0 +1,26 @@
|
||||
import pluginVue from 'eslint-plugin-vue'
|
||||
import vueTsEslintConfig 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 [
|
||||
includeIgnoreFile(gitignorePath),
|
||||
{
|
||||
// your overrides
|
||||
},
|
||||
...pluginVue.configs['flat/essential'],
|
||||
...vueTsEslintConfig({
|
||||
extends: ['recommended']
|
||||
}),
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'script'
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user