generated from RebeccaStevens/template-typescript-node-package
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
45 lines (44 loc) · 1000 Bytes
/
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
// @ts-check
import rsEslint from "@rebeccastevens/eslint-config";
export default rsEslint(
{
projectRoot: import.meta.dirname,
mode: "library",
typescript: {
unsafe: "off",
},
formatters: true,
functional: "lite",
jsonc: true,
markdown: true,
stylistic: true,
yaml: true,
ignores: [
// Autogenerated files
"src/exponents.ts",
"src/units/converters/prefixes.ts",
"src/units/modifiers/prefixes.ts",
],
},
{
rules: {
// Use non-sloppy imports. See: https://jsr.io/docs/publishing-packages#relative-imports
"import/extensions": [
"error",
"always",
{
checkTypeImports: true,
ignorePackages: true,
},
],
"import/no-useless-path-segments": ["error", { noUselessIndex: false }],
"ts/naming-convention": "off",
},
},
{
files: ["**/*.test-d.ts"],
rules: {
"import/no-extraneous-dependencies": "off",
},
},
);