-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b59b72e
commit b690542
Showing
2 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export default [ | ||
"/.svelte-kit/*", | ||
".DS_Store", | ||
"node_modules", | ||
"/build", | ||
"/.vscode", | ||
"/package", | ||
"/static", | ||
"/tests", | ||
"/test-results", | ||
"/lighthouse", | ||
"/.github", | ||
".env", | ||
".env.*", | ||
"!.env.example", | ||
"pnpm-lock.yaml", | ||
"package-lock.json", | ||
"bun.lockb", | ||
"yarn.lock", | ||
"svelte.config.js", | ||
"unlighthouse.config.ts", | ||
"vite.config.js", | ||
"playwright.config.ts", | ||
"postcss.config.cjs", | ||
"tailwind.config.cjs", | ||
"/.vscode" | ||
]; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
// export default { | ||
// root: true, | ||
// parser: "@typescript-eslint/parser", | ||
// extends: [ | ||
// "plugin:@typescript-eslint/recommended", | ||
// "plugin:svelte/recommended", | ||
// "plugin:unicorn/recommended" | ||
// ], | ||
// plugins: ["@typescript-eslint"], | ||
// ignorePatterns: ["*.cjs", "node_modules"], | ||
// overrides: [ | ||
// { | ||
// files: ["*.svelte"], | ||
// parser: "svelte-eslint-parser", | ||
// parserOptions: { | ||
// parser: "@typescript-eslint/parser" | ||
// } | ||
// }, | ||
// { files: ["*.ts", "*.svelte"], rules: { "no-undef": "off" } } | ||
// ], | ||
// settings: { | ||
// "svelte3/typescript": import("typescript") | ||
// }, | ||
// parserOptions: { | ||
// project: "tsconfig.json", | ||
// sourceType: "module", | ||
// ecmaVersion: 2020, | ||
// extraFileExtensions: [".svelte"] | ||
// }, | ||
// rules: { | ||
// // "@typescript-eslint/no-floating-promises": "error", | ||
// "@typescript-eslint/await-thenable": "error", | ||
// // "@typescript-eslint/indent": ["off"] // You can enable this rule if you want | ||
// "unicorn/filename-case": ["warn"], // You can disable this rule if you want | ||
// "unicorn/no-document-cookie": "error", | ||
// "unicorn/prefer-top-level-await": ["off"] // You can enable this rule if you want | ||
// }, | ||
// env: { | ||
// browser: true, | ||
// es2020: true, | ||
// es6: true, | ||
// node: true | ||
// } | ||
// }; | ||
|
||
import tsEslintPlugin from "@typescript-eslint/eslint-plugin"; | ||
import tsEslintParser from "@typescript-eslint/parser"; | ||
import svelteEslintPlugin from "eslint-plugin-svelte"; | ||
import unicornPlugin from "eslint-plugin-unicorn"; | ||
import typescript from "typescript"; | ||
import eslintIgnoresAsJs from "./eslint-ignores-as-js.js"; | ||
|
||
export default [ | ||
{ | ||
plugins: { | ||
"@typescript-eslint": tsEslintPlugin, | ||
unicorn: unicornPlugin, | ||
svelte: svelteEslintPlugin | ||
}, | ||
|
||
languageOptions: { | ||
parser: "svelte-eslint-parser", | ||
parserOptions: { | ||
parser: tsEslintParser | ||
} | ||
}, | ||
ignores: eslintIgnoresAsJs, | ||
settings: { | ||
"svelte3/typescript": typescript | ||
}, | ||
rules: { | ||
// "@typescript-eslint/no-floating-promises": "error", | ||
// "@typescript-eslint/indent": ["off"] // You can enable this rule if you want | ||
"unicorn/no-document-cookie": "error", | ||
"unicorn/prefer-top-level-await": ["off"] // You can enable this rule if you want | ||
}, | ||
languageOptions: { | ||
globals: {} | ||
} | ||
}, | ||
{ | ||
files: ["*.svelte"], | ||
parser: "svelte-eslint-parser", | ||
ignores: eslintIgnoresAsJs, | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser" | ||
} | ||
}, | ||
{ | ||
files: ["*.ts", "*.svelte"], | ||
ignores: eslintIgnoresAsJs, | ||
rules: { "no-undef": "off" } | ||
} | ||
]; |