Skip to content

Commit c63eb8f

Browse files
committed
fix: eslint config
1 parent 938f070 commit c63eb8f

File tree

5 files changed

+27
-412
lines changed

5 files changed

+27
-412
lines changed

Diff for: .eslintignore

-4
This file was deleted.

Diff for: .eslintrc.json

-34
This file was deleted.

Diff for: eslint.config.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
root: true,
3+
parser: "@typescript-eslint/parser",
4+
parserOptions: { project: "./tsconfig.json" },
5+
env: { es6: true },
6+
ignorePatterns: ["node_modules", "build", "coverage"],
7+
plugins: ["import", "eslint-comments", "functional"],
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:eslint-comments/recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:import/typescript",
13+
"plugin:functional/lite",
14+
"prettier",
15+
"prettier/@typescript-eslint",
16+
],
17+
globals: { BigInt: true, console: true, WebAssembly: true },
18+
rules: {
19+
"@typescript-eslint/explicit-module-boundary-types": "off",
20+
"eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
21+
"eslint-comments/no-unused-disable": "error",
22+
"import/order": ["error", { "newlines-between": "always", alphabetize: { order: "asc" } }],
23+
"sort-imports": ["error", { ignoreDeclarationSort: true, ignoreCase: true }],
24+
},
25+
};

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"build:module": "tsc -p tsconfig.module.json",
1515
"fix": "run-s fix:*",
1616
"fix:prettier": "prettier \"src/**/*.ts\" --write",
17-
"fix:lint": "eslint src --ext .ts --fix",
17+
"fix:lint": "eslint --fix src/**/*.ts",
1818
"test": "run-s build test:*",
19-
"test:lint": "eslint src --ext .ts",
19+
"test:lint": "eslint src/**/*.ts",
2020
"test:prettier": "prettier \"src/**/*.ts\" --list-different",
2121
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
2222
"test:unit": "cross-env CI=true vitest",

0 commit comments

Comments
 (0)