personal-tracker/client/eslint.config.js

35 lines
880 B
JavaScript
Raw Permalink Normal View History

2024-05-10 01:37:48 +00:00
import pluginVue from 'eslint-plugin-vue'
2024-05-15 00:30:14 +00:00
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { FlatCompat } from '@eslint/eslintrc'
import js from '@eslint/js'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended
})
2024-05-10 01:37:48 +00:00
export default [
2024-05-15 00:30:14 +00:00
js.configs.recommended,
...pluginVue.configs["flat/essential"],
...compat.extends("@vue/eslint-config-typescript/recommended"),
2024-05-10 01:37:48 +00:00
{
2024-05-15 00:30:14 +00:00
files: [
"**/*.vue",
"**/*.js",
"**/*.jsx",
"**/*.cjs",
"**/*.mjs",
"**/*.ts",
"**/*.tsx",
"**/*.cts",
"**/*.mts",
],
languageOptions: {
ecmaVersion: "latest",
},
},
];