-
Notifications
You must be signed in to change notification settings - Fork 1
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
36b6c75
commit e7cb681
Showing
9 changed files
with
3,616 additions
and
585 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,4 @@ | ||
node_modules | ||
dist | ||
src/**/*.spec.* | ||
src/e2e |
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,341 @@ | ||
/* | ||
👋 Hi! This file was autogenerated by tslint-to-eslint-config. | ||
https://github.com/typescript-eslint/tslint-to-eslint-config | ||
It represents the closest reasonable ESLint configuration to this | ||
project's original TSLint configuration. | ||
We recommend eventually switching this configuration to extend from | ||
the recommended rulesets in typescript-eslint. | ||
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md | ||
Happy linting! 💖 | ||
*/ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"eslint-plugin-import", | ||
"eslint-plugin-jsdoc", | ||
"eslint-plugin-prefer-arrow", | ||
"@typescript-eslint", | ||
"@typescript-eslint/tslint" | ||
], | ||
"root": true, | ||
"rules": { | ||
"@typescript-eslint/adjacent-overload-signatures": "error", | ||
"@typescript-eslint/array-type": "off", | ||
"@typescript-eslint/ban-types": [ | ||
"error", | ||
{ | ||
"types": { | ||
"Object": { | ||
"message": "Avoid using the `Object` type. Did you mean `object`?" | ||
}, | ||
"Function": { | ||
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`." | ||
}, | ||
"Boolean": { | ||
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?" | ||
}, | ||
"Number": { | ||
"message": "Avoid using the `Number` type. Did you mean `number`?" | ||
}, | ||
"String": { | ||
"message": "Avoid using the `String` type. Did you mean `string`?" | ||
}, | ||
"Symbol": { | ||
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?" | ||
} | ||
} | ||
} | ||
], | ||
"@typescript-eslint/consistent-type-assertions": "error", | ||
"@typescript-eslint/dot-notation": "error", | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"error", | ||
{ | ||
"allowExpressions": true, | ||
"allowTypedFunctionExpressions": true, | ||
"allowHigherOrderFunctions": false, | ||
"allowDirectConstAssertionInArrowFunctions": true, | ||
"allowConciseArrowFunctionExpressionsStartingWithVoid": true | ||
} | ||
], | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"error", | ||
{ | ||
"accessibility": "explicit", | ||
"overrides": { | ||
"accessors": "explicit", | ||
"constructors": "explicit" | ||
} | ||
} | ||
], | ||
"@typescript-eslint/explicit-module-boundary-types": [ | ||
"error", | ||
{ | ||
"allowArgumentsExplicitlyTypedAsAny": true, | ||
"allowDirectConstAssertionInArrowFunctions": true, | ||
"allowHigherOrderFunctions": false, | ||
"allowTypedFunctionExpressions": false | ||
} | ||
], | ||
"@typescript-eslint/member-ordering": "error", | ||
"@typescript-eslint/naming-convention": [ | ||
"off", | ||
{ | ||
"selector": "variable", | ||
"format": [ | ||
"camelCase", | ||
"UPPER_CASE" | ||
], | ||
"leadingUnderscore": "allow", | ||
"trailingUnderscore": "forbid" | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-interface": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-namespace": "error", | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@typescript-eslint/no-shadow": [ | ||
"error", | ||
{ | ||
"hoist": "all" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-expressions": "error", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-use-before-define": "error", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/prefer-for-of": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
"@typescript-eslint/quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
"@typescript-eslint/triple-slash-reference": [ | ||
"error", | ||
{ | ||
"path": "always", | ||
"types": "prefer-import", | ||
"lib": "always" | ||
} | ||
], | ||
"@typescript-eslint/typedef": [ | ||
"error", | ||
{ | ||
"parameter": true, | ||
"arrowParameter": true, | ||
"propertyDeclaration": true, | ||
"variableDeclaration": true, | ||
"memberVariableDeclaration": true, | ||
"objectDestructuring": true, | ||
"arrayDestructuring": true | ||
} | ||
], | ||
"@typescript-eslint/unified-signatures": "error", | ||
"arrow-parens": [ | ||
"off", | ||
"always" | ||
], | ||
"comma-dangle": "off", | ||
"complexity": "off", | ||
"constructor-super": "error", | ||
"dot-notation": "off", | ||
"eqeqeq": [ | ||
"error", | ||
"smart" | ||
], | ||
"guard-for-in": "error", | ||
"id-denylist": "error", | ||
"id-match": "error", | ||
"import/no-deprecated": "warn", | ||
"import/order": [ | ||
"off", | ||
{ | ||
"alphabetize": { | ||
"caseInsensitive": true, | ||
"order": "asc" | ||
}, | ||
"newlines-between": "ignore", | ||
"groups": [ | ||
[ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"unknown", | ||
"object", | ||
"type" | ||
], | ||
"parent", | ||
[ | ||
"sibling", | ||
"index" | ||
] | ||
], | ||
"distinctGroup": false, | ||
"pathGroupsExcludedImportTypes": [], | ||
"pathGroups": [ | ||
{ | ||
"pattern": "./", | ||
"patternOptions": { | ||
"nocomment": true, | ||
"dot": true | ||
}, | ||
"group": "sibling", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": ".", | ||
"patternOptions": { | ||
"nocomment": true, | ||
"dot": true | ||
}, | ||
"group": "sibling", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "..", | ||
"patternOptions": { | ||
"nocomment": true, | ||
"dot": true | ||
}, | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "../", | ||
"patternOptions": { | ||
"nocomment": true, | ||
"dot": true | ||
}, | ||
"group": "parent", | ||
"position": "before" | ||
} | ||
] | ||
} | ||
], | ||
"jsdoc/check-alignment": "off", | ||
"jsdoc/check-indentation": "off", | ||
"jsdoc/newline-after-description": "off", | ||
"jsdoc/no-types": "off", | ||
"max-classes-per-file": "off", | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 250 | ||
} | ||
], | ||
"new-parens": "error", | ||
"no-bitwise": "error", | ||
"no-caller": "error", | ||
"no-cond-assign": "error", | ||
"no-console": [ | ||
"error", | ||
{ | ||
"allow": [ | ||
"log", | ||
"warn", | ||
"dir", | ||
"timeLog", | ||
"assert", | ||
"clear", | ||
"count", | ||
"countReset", | ||
"group", | ||
"groupEnd", | ||
"table", | ||
"dirxml", | ||
"error", | ||
"groupCollapsed", | ||
"Console", | ||
"profile", | ||
"profileEnd", | ||
"timeStamp", | ||
"context" | ||
] | ||
} | ||
], | ||
"no-debugger": "error", | ||
"no-empty": "off", | ||
"no-empty-function": "off", | ||
"no-eval": "error", | ||
"no-fallthrough": "error", | ||
"no-invalid-this": "off", | ||
"no-multiple-empty-lines": "off", | ||
"no-new-wrappers": "error", | ||
"no-restricted-imports": [ | ||
"error", | ||
"rxjs/Rx" | ||
], | ||
"no-shadow": "off", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef-init": "error", | ||
"no-underscore-dangle": "off", | ||
"no-unsafe-finally": "error", | ||
"no-unused-expressions": "off", | ||
"no-unused-labels": "error", | ||
"no-unused-vars": "off", | ||
"no-use-before-define": "off", | ||
"no-var": "error", | ||
"object-shorthand": "error", | ||
"one-var": [ | ||
"error", | ||
"never" | ||
], | ||
"prefer-arrow/prefer-arrow-functions": [ | ||
"error", | ||
{ | ||
"allowStandaloneDeclarations": true | ||
} | ||
], | ||
"prefer-const": "error", | ||
"quote-props": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"quotes": "off", | ||
"radix": "error", | ||
"spaced-comment": [ | ||
"error", | ||
"always", | ||
{ | ||
"markers": [ | ||
"/" | ||
] | ||
} | ||
], | ||
"use-isnan": "error", | ||
"valid-typeof": "off", | ||
"@typescript-eslint/tslint/config": [ | ||
"error", | ||
{ | ||
"rules": { | ||
"whitespace": true | ||
} | ||
} | ||
] | ||
} | ||
}; |
Oops, something went wrong.