Skip to content

Commit

Permalink
Merge pull request #29 from daymxn/daymon-migrate-to-ts
Browse files Browse the repository at this point in the history
Migrate to Typescript
  • Loading branch information
nickdeis authored Dec 10, 2024
2 parents ea79af4 + 8b6d8dc commit 9a5caa5
Show file tree
Hide file tree
Showing 44 changed files with 2,760 additions and 2,714 deletions.
6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules/
*.log
/tmp/
/tmp/
/lib/
41 changes: 41 additions & 0 deletions eslint.config.mjs
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"] }
)
101 changes: 0 additions & 101 deletions index.js

This file was deleted.

Loading

0 comments on commit 9a5caa5

Please sign in to comment.