Created
December 11, 2023 11:26
-
-
Save liquidx/7868b49ee45d5b5e9f502e6d456ca986 to your computer and use it in GitHub Desktop.
eslint.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = [ | |
{ | |
root: true, | |
env: { | |
node: true, | |
browser: true, | |
es2017: true | |
}, | |
extends: [ | |
"eslint:recommended", | |
"plugin:import/errors", | |
"plugin:import/warnings", | |
"plugin:import/typescript", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:svelte/recommended", | |
"prettier" | |
], | |
parser: "@typescript-eslint/parser", | |
parserOptions: { | |
project: ["tsconfig.json"], | |
sourceType: "module" | |
}, | |
ignorePatterns: [ | |
"/dist/**/*", // Ignore built files. | |
"/node_modules/**/*", // Ignore dependencies. | |
"/postcss.config.js", | |
"/svelte.config.js", | |
"*.todo.js", | |
"*.todo.ts" | |
], | |
plugins: ["@typescript-eslint", "import"], | |
rules: { | |
quotes: ["error", "double"], | |
"import/no-unresolved": 0, | |
"@typescript-eslint/no-explicit-any": 0 | |
}, | |
overrides: [ | |
{ | |
files: ["*.svelte"], | |
parser: "svelte-eslint-parser", | |
parserOptions: { | |
parser: "@typescript-eslint/parser" | |
} | |
} | |
] | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment