Skip to content

Commit 7d0788f

Browse files
authored
chore: setup Rslint configuration (#30)
1 parent ce835df commit 7d0788f

5 files changed

Lines changed: 101 additions & 19 deletions

File tree

.cspell.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,34 @@
22
"version": "0.2",
33
"language": "en,en-gb",
44
"words": [
5-
"memfs",
6-
"colorette",
7-
"noextension",
8-
"fullhash",
9-
"execa",
10-
"deepmerge",
11-
"fastify",
12-
"contextify",
13-
"middie",
5+
"cachable",
146
"cexoso",
15-
"usdz",
16-
"leadinghash",
17-
"myhtml",
18-
"configurated",
19-
"mycustom",
20-
"mrmime",
7+
"colorette",
218
"commitlint",
22-
"nosniff",
9+
"configurated",
10+
"contextify",
11+
"deepmerge",
2312
"deoptimize",
2413
"etag",
25-
"cachable",
14+
"execa",
15+
"fastify",
2616
"finalhandler",
17+
"fullhash",
2718
"hono",
19+
"leadinghash",
20+
"memfs",
21+
"middie",
22+
"mrmime",
23+
"mycustom",
24+
"myhtml",
25+
"noextension",
26+
"nosniff",
27+
"rslint",
2828
"rspack",
29-
"rstest",
3029
"rstackjs",
31-
"sokra"
30+
"rstest",
31+
"sokra",
32+
"usdz"
3233
],
3334
"ignorePaths": [
3435
"CHANGELOG.md",

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"build": "rslib --syntax es2023 && pnpm run build:types",
2424
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
2525
"lint": "npm-run-all -l -p \"lint:**\"",
26+
"lint:rslint": "rslint",
2627
"lint:prettier": "prettier --cache --list-different .",
2728
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
2829
"lint:types": "tsc --pretty --noEmit",
@@ -35,6 +36,7 @@
3536
"@hapi/hapi": "^21.3.7",
3637
"@hono/node-server": "^1.12.0",
3738
"@rslib/core": "^0.20.0",
39+
"@rslint/core": "^0.3.3",
3840
"@rspack/core": "2.0.0-beta.5",
3941
"@rstest/core": "0.9.2",
4042
"@types/connect": "^3.4.35",

pnpm-lock.yaml

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rslint.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig, ts } from "@rslint/core";
2+
3+
export default defineConfig([
4+
ts.configs.recommended,
5+
{
6+
rules: {
7+
"@typescript-eslint/no-explicit-any": "off",
8+
},
9+
},
10+
]);
File renamed without changes.

0 commit comments

Comments
 (0)