-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
33 lines (31 loc) · 1.1 KB
/
eslint.config.mjs
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
/** @license 0BSD
* Copyright (C) 2024 8 Hobbies, LLC <hong@8hobbies.com>
*
* Permission to use, copy, modify, and/or distribute this software for anypurpose with or without
* fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIESWITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OFMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FORANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
* DAMAGESWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ANACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OFOR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
import configs from "@8hobbies/eslint-conf-baseline";
import globals from "globals";
export default [
...configs.recommended,
{
files: ["**/*.ts"],
ignores: configs.ignores,
languageOptions: {
globals: {
...globals.node,
},
parserOptions: {
project: ["tsconfig.json", "tsconfig.test.json"],
tsconfigRootDir: import.meta.dirname,
},
},
},
];