-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
36 lines (35 loc) · 838 Bytes
/
eslint.config.js
File metadata and controls
36 lines (35 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import eslintPluginSvelte from "eslint-plugin-svelte";
import svelteConfig from "./svelte.config.js";
import js from "@eslint/js";
import globals from "globals";
export default [
// add more generic rule sets here, such as:
js.configs.recommended,
...eslintPluginSvelte.configs["flat/recommended"],
{
rules: {
// override/add rules settings here, such as:
// 'svelte/rule-name': 'error'
},
languageOptions: {
parserOptions: {
svelteConfig,
parser: "@typescript-eslint/parser",
},
globals: {
...globals.browser,
// myCustomGlobal: "readonly",
},
},
},
// https://github.com/eslint/eslint/discussions/17429
{
ignores: [
"node_modules",
"dist/*",
"build/*",
".svelte-kit",
"svelte.config.js",
],
},
];