-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheslint.config.js
94 lines (91 loc) · 2.89 KB
/
eslint.config.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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" }
// }
// ];