Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Full conversion to typescript (#29) #74

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"extends": "standard",
"extends": [
"standard",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"settings": {
"import/resolver": "typescript"
},
"parser": "@typescript-eslint/parser",
"rules": {
"no-var": "error"
}
}
},
"root": true
}
12 changes: 12 additions & 0 deletions @types/dotgitignore.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare module 'dotgitignore' {
interface Options {
readonly cwd?: URL | string;
readonly type?: 'file' | 'directory';
readonly allowSymlinks?: boolean;
}
interface DotGitIgnoreInstance {
ignore(name: string): boolean;
}
function DotGitIgnore(opts?: Options): DotGitIgnoreInstance;
export default DotGitIgnore;
}
7 changes: 7 additions & 0 deletions argstest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import argv from './command';
function main() {
console.log((argv as any).bumpFiles);
}

console.dir(argv);
main();
160 changes: 0 additions & 160 deletions command.js

This file was deleted.

Loading