generated from sovbiz/Cypher-Lightning-Edition
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
25 lines (23 loc) · 845 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginVue from "eslint-plugin-vue";
/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,vue}"]},
{files: ["**/*.js"], languageOptions: {sourceType: "script"}},
// Global ignore patterns
{
ignores: [
'**/node_modules/**', // Ignore node_modules
'**/dist/**', // Ignore build directory
'**/.nuxt/**', // Ignore Nuxt build directory
'**/public/**', // Ignore public assets
'**/*.min.js', // Ignore all minified files
'**/src/**/vendor.js', // Ignore specific files in subdirectories
'**/tailwind.config.js'
]
},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...pluginVue.configs["flat/essential"],
];