-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
168fb8f
commit 0217dd2
Showing
51 changed files
with
1,559 additions
and
690 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,6 @@ | ||
.yalc | ||
.vscode | ||
.github | ||
node_modules | ||
dist-cjs | ||
dist-esm |
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,57 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["tsconfig.json"] | ||
}, | ||
"plugins": [ | ||
// This enables using new lint rules powered by the TypeScript compiler API. | ||
// https://github.com/typescript-eslint/typescript-eslint | ||
"@typescript-eslint", | ||
// This makes it so the IDE reports lint rejections as warnings only. This is | ||
// better than errors because most lint rejections are not runtime errors. This | ||
// allows IDE errors to be exclusive for e.g. static type errors which often are | ||
// reflective of real runtime errors. | ||
// https://github.com/bfanger/eslint-plugin-only-warn | ||
"only-warn", | ||
// This enables the use of a lint rule to reject function declarations. This is | ||
// preferable as a way to encourage higher order function usage. For example it is not | ||
// possible to wrap a function declaration with Open Telemetry instrumentation but it is | ||
// possible to wrap an arrow function since its an expression. | ||
// https://github.com/TristonJ/eslint-plugin-prefer-arrow | ||
"prefer-arrow", | ||
// This enables the use of a lint rule to reject use of @deprecated functions. | ||
// https://github.com/gund/eslint-plugin-deprecation | ||
"deprecation", | ||
// Import sorting integrated into ESLint. | ||
// https://github.com/lydell/eslint-plugin-simple-import-sort | ||
"simple-import-sort", | ||
// https://github.com/microsoft/tsdoc/tree/master/eslint-plugin | ||
"tsdoc" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"prettier" | ||
], | ||
"overrides": [], | ||
"rules": { | ||
"quotes": ["warn", "backtick"], | ||
"tsdoc/syntax": "warn", | ||
"simple-import-sort/imports": [ | ||
"warn", | ||
{ | ||
"groups": [] | ||
} | ||
], | ||
"simple-import-sort/exports": "warn", | ||
"deprecation/deprecation": "warn", | ||
"prefer-arrow/prefer-arrow-functions": "warn", | ||
// TypeScript makes these safe & effective | ||
"no-case-declarations": "off", | ||
// Same approach used by TypeScript noUnusedLocals | ||
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }] | ||
} | ||
} |
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
Oops, something went wrong.