-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from daymxn/daymon-migrate-to-ts
Migrate to Typescript
- Loading branch information
Showing
44 changed files
with
2,760 additions
and
2,714 deletions.
There are no files selected for viewing
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/ | ||
*.log | ||
/tmp/ | ||
/tmp/ | ||
/lib/ |
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,41 @@ | ||
/** | ||
* Copyright (c) 2024, Nick Deis | ||
*/ | ||
|
||
import tseslint from "typescript-eslint"; | ||
import noticePlugin from "./lib/index.js"; | ||
import eslint from '@eslint/js'; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
{ | ||
plugins: { | ||
notice: noticePlugin | ||
}, | ||
rules: { | ||
"notice/notice": [ | ||
"error", { | ||
mustMatch: "[0-9]{0,4}, Nick Deis", | ||
chars: 100, | ||
templateFile: "./tests/utils/templates/basic.js", | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
argsIgnorePattern: "^_" | ||
} | ||
] | ||
}, | ||
languageOptions: { | ||
parserOptions: { | ||
tsconfigRootDir: import.meta.dirname, | ||
projectService: { | ||
allowDefaultProject: ["*.ts", "*.mjs"], | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ ignores: ["lib", "node_modules", "**/*.js"] } | ||
) |
Oops, something went wrong.