-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
435 additions
and
569 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
coverage/ | ||
.turbo | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import path from "node:path" | ||
import { fileURLToPath } from "node:url" | ||
|
||
import { includeIgnoreFile } from "@eslint/compat" | ||
import js from "@eslint/js" | ||
import prettier from "eslint-plugin-prettier/recommended" | ||
import globals from "globals" | ||
import ts from "typescript-eslint" | ||
|
||
const baseDirectory = path.dirname(fileURLToPath(import.meta.url)) | ||
|
||
export default ts.config( | ||
includeIgnoreFile(path.resolve(baseDirectory, ".gitignore")), | ||
{ | ||
ignores: ["dist"] | ||
}, | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
prettier, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node | ||
}, | ||
|
||
ecmaVersion: 2022, | ||
sourceType: "module", | ||
|
||
parserOptions: { | ||
project: true | ||
} | ||
}, | ||
|
||
rules: { | ||
"prettier/prettier": "warn", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"@typescript-eslint/no-misused-promises": [ | ||
"error", | ||
{ | ||
checksVoidReturn: false | ||
} | ||
] | ||
} | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import type { ClassicConfig } from "@typescript-eslint/utils/ts-eslint" | ||
|
||
export default { | ||
plugins: ["resulto"], | ||
rules: { | ||
"resulto/must-use-result": "error" | ||
} | ||
} | ||
} satisfies ClassicConfig.Config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
import packageJson from "../package.json" | ||
import recommended from "./configs/recommended" | ||
import mustUseResult from "./rules/must-use-result" | ||
|
||
import type { Linter } from "@typescript-eslint/utils/ts-eslint" | ||
|
||
export default { | ||
configs: { | ||
recommended | ||
}, | ||
meta: { | ||
name: packageJson.name, | ||
version: packageJson.version | ||
}, | ||
rules: { | ||
"must-use-result": mustUseResult | ||
} | ||
} | ||
} satisfies Linter.Plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.