mirror of
https://github.com/SoPat712/my-portfolio.git
synced 2025-08-21 18:28:46 -04:00
cleanup of any types, formatters
This commit is contained in:
34
eslint.config.js
Normal file
34
eslint.config.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import { defineConfig } from "eslint/config";
|
||||
import svelte from "eslint-plugin-svelte";
|
||||
import svelteParser from "svelte-eslint-parser";
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
files: ["**/*.svelte"],
|
||||
languageOptions: {
|
||||
parser: svelteParser,
|
||||
},
|
||||
plugins: {
|
||||
svelte,
|
||||
},
|
||||
rules: {
|
||||
// Add or override rules here
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["**/*.js"],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2021,
|
||||
sourceType: "module",
|
||||
},
|
||||
globals: {
|
||||
window: "readonly",
|
||||
document: "readonly",
|
||||
},
|
||||
rules: {
|
||||
semi: ["error", "always"],
|
||||
"no-unused-vars": "warn",
|
||||
"no-console": "off",
|
||||
},
|
||||
},
|
||||
]);
|
Reference in New Issue
Block a user