mirror of
https://github.com/duhanbalci/dreport.git
synced 2026-07-01 18:39:16 +00:00
49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
import js from "@eslint/js";
|
||
import tseslint from "typescript-eslint";
|
||
import pluginVue from "eslint-plugin-vue";
|
||
import vueParser from "vue-eslint-parser";
|
||
|
||
export default [
|
||
{
|
||
ignores: [
|
||
"dist/",
|
||
"node_modules/",
|
||
"public/",
|
||
"src/core/wasm-layout/",
|
||
"src/core/wasm-pkg-layout/",
|
||
"src/core/wasm/",
|
||
"src/core/wasm-pkg/",
|
||
],
|
||
},
|
||
js.configs.recommended,
|
||
...tseslint.configs.recommended,
|
||
...pluginVue.configs["flat/essential"],
|
||
{
|
||
files: ["**/*.vue"],
|
||
languageOptions: {
|
||
parser: vueParser,
|
||
parserOptions: {
|
||
parser: tseslint.parser,
|
||
sourceType: "module",
|
||
},
|
||
},
|
||
},
|
||
{
|
||
files: ["**/*.ts", "**/*.vue"],
|
||
rules: {
|
||
// TypeScript zaten undefined globals'ı yakalar, no-undef gereksiz
|
||
"no-undef": "off",
|
||
},
|
||
},
|
||
{
|
||
rules: {
|
||
"vue/multi-word-component-names": "off",
|
||
"@typescript-eslint/no-unused-vars": [
|
||
"warn",
|
||
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
||
],
|
||
"@typescript-eslint/no-explicit-any": "warn",
|
||
},
|
||
},
|
||
];
|