Skip to content

Commit

Permalink
Lint linterconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
gb-beng committed Dec 5, 2024
1 parent d5d4b41 commit 7f324c6
Showing 1 changed file with 35 additions and 29 deletions.
64 changes: 35 additions & 29 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import { includeIgnoreFile } from "@eslint/compat";
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'
import { includeIgnoreFile } from '@eslint/compat'

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, ".gitignore");
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const gitignorePath = path.resolve(__dirname, '.gitignore')
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
includeIgnoreFile(gitignorePath),
{
files: ["**/*.ts", "**/*.js", , "**/*.vue"],
ignores: ["**/matomo-tracking-code.js"],
}, ...compat.extends(
"@nuxt/eslint-config",
"plugin:vue/vue3-recommended",
"plugin:vuetify/base",
"plugin:nuxt/recommended",
"plugin:prettier/recommended",
), {
includeIgnoreFile(gitignorePath),
{
files: ['**/*.ts', '**/*.js', '**/*.vue'],
ignores: ['**/matomo-tracking-code.js'],
},
...compat.extends(
'@nuxt/eslint-config',
'plugin:vue/vue3-recommended',
'plugin:vuetify/base',
'plugin:nuxt/recommended',
'plugin:prettier/recommended'
),
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
ecmaVersion: 2022,
sourceType: 'module',
},

rules: {
"vue/multi-word-component-names": ["error", {
ignores: ["default", "index", "error", "about", "[...slug]"],
}],
'vue/multi-word-component-names': [
'error',
{
ignores: ['default', 'index', 'error', 'about', '[...slug]'],
},
],
},
}];
},
]

0 comments on commit 7f324c6

Please sign in to comment.