-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Port module to TS, Jest, ESLint (#7)
BREAKING: The main export is now a `default` export.
- Loading branch information
Showing
22 changed files
with
13,368 additions
and
291 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
coverage/ | ||
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,62 @@ | ||
{ | ||
"extends": ["eslint:recommended", "prettier"], | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"eqeqeq": [2, "smart"], | ||
"no-caller": 2, | ||
"dot-notation": 2, | ||
"no-var": 2, | ||
"prefer-const": 2, | ||
"prefer-arrow-callback": [2, { "allowNamedFunctions": true }], | ||
"arrow-body-style": [2, "as-needed"], | ||
"object-shorthand": 2, | ||
"prefer-template": 2, | ||
"one-var": [2, "never"], | ||
"prefer-destructuring": [2, { "object": true }], | ||
"capitalized-comments": 2, | ||
"multiline-comment-style": [2, "starred-block"], | ||
"spaced-comment": 2, | ||
"yoda": [2, "never"], | ||
"curly": [2, "multi-line"], | ||
"no-else-return": 2 | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "*.ts", | ||
"extends": [ | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier/@typescript-eslint" | ||
], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"project": "./tsconfig.eslint.json" | ||
}, | ||
"rules": { | ||
"@typescript-eslint/prefer-for-of": 0, | ||
"@typescript-eslint/member-ordering": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/no-unused-vars": 0, | ||
"@typescript-eslint/no-use-before-define": [ | ||
2, | ||
{ "functions": false } | ||
], | ||
"@typescript-eslint/consistent-type-definitions": [ | ||
2, | ||
"interface" | ||
], | ||
"@typescript-eslint/prefer-function-type": 2, | ||
"@typescript-eslint/no-unnecessary-type-arguments": 2, | ||
"@typescript-eslint/prefer-string-starts-ends-with": 2, | ||
"@typescript-eslint/prefer-readonly": 2, | ||
"@typescript-eslint/prefer-includes": 2, | ||
"@typescript-eslint/no-unnecessary-condition": 2, | ||
"@typescript-eslint/switch-exhaustiveness-check": 2, | ||
"@typescript-eslint/prefer-nullish-coalescing": 2 | ||
} | ||
} | ||
] | ||
} |
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,12 +1,2 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
github: [fb55] | ||
tidelift: "npm/nth-check" | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with a single custom sponsorship URL |
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 +1,4 @@ | ||
.vscode/ | ||
node_modules/ | ||
coverage/ | ||
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,3 @@ | ||
node_modules/ | ||
coverage/ | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
arch: | ||
- amd64 | ||
- ppc64le | ||
- amd64 | ||
- ppc64le | ||
node_js: | ||
- lts/* | ||
- lts/* |
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.