38 lines
1,007 B
JavaScript
38 lines
1,007 B
JavaScript
module.exports = {
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:svelte/recommended",
|
|
"turbo",
|
|
"prettier",
|
|
],
|
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
overrides: [
|
|
{
|
|
files: ["*.svelte"],
|
|
parser: "svelte-eslint-parser",
|
|
// Parse the script in `.svelte` as TypeScript by adding the following configuration.
|
|
parserOptions: {
|
|
parser: "@typescript-eslint/parser",
|
|
},
|
|
},
|
|
],
|
|
|
|
plugins: ["@typescript-eslint", "prettier"],
|
|
|
|
rules: {
|
|
// Note: you must disable the base rule as it can report incorrect errors
|
|
semi: "off",
|
|
quotes: "off",
|
|
"no-undef": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"turbo/no-undeclared-env-vars": "off",
|
|
"prettier/prettier": "error",
|
|
},
|
|
}
|