init
This commit is contained in:
parent
760a54efd1
commit
ef59d612c3
23 changed files with 2139 additions and 0 deletions
38
.eslintrc.cjs
Normal file
38
.eslintrc.cjs
Normal file
|
@ -0,0 +1,38 @@
|
|||
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",
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue