Skip to content

Commit

Permalink
feat(tool): change to eslint In favor of tslint deprecation
Browse files Browse the repository at this point in the history
* changes has been done for suporting eslint across project
  • Loading branch information
Siddharth Shrma committed Oct 23, 2020
1 parent ff3c842 commit 274410e
Show file tree
Hide file tree
Showing 24 changed files with 1,662 additions and 161 deletions.
11 changes: 11 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,17 @@
"code",
"security"
]
},
{
"login": "SiddharthSh",
"name": "Siddharth",
"avatar_url": "https://avatars0.githubusercontent.com/u/22426668?v=4",
"profile": "https://github.com/SiddharthSh",
"contributions": [
"code",
"tool",
"plugin"
]
}
],
"commitConvention": "none"
Expand Down
144 changes: 144 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"prettier",
"prettier/@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"@angular-eslint/eslint-plugin",
"@typescript-eslint",
"@typescript-eslint/tslint"
],
"rules": {
"@angular-eslint/component-class-suffix": "error",
"@angular-eslint/directive-class-suffix": "error",
"@angular-eslint/no-input-rename": "error",
"@angular-eslint/no-output-on-prefix": "error",
"@angular-eslint/no-output-rename": "error",
"@angular-eslint/use-pipe-transform-interface": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/quotes": [
"error",
"single"
],
"@typescript-eslint/tslint/config": [
"error",
{
"rules": {
"whitespace": true
}
}
],
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
"constructor-super": "error",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"id-blacklist": "off",
"id-match": "off",
"import/no-deprecated": "warn",
"no-bitwise": "error",
"no-caller": "error",
"no-console": [
"error",
{
"allow": [
"log",
"dirxml",
"warn",
"error",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupCollapsed",
"groupEnd",
"table",
"Console",
"markTimeline",
"profile",
"profileEnd",
"timeline",
"timelineEnd",
"timeStamp",
"context"
]
}
],
"no-debugger": "error",
"no-empty": "off",
"no-eval": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-restricted-imports": [
"error",
{
"paths": [
"rxjs/Rx"
],
"patterns": [
"rxjs/(?!operators|testing)"
]
}
],
"no-shadow": [
"error",
{
"hoist": "all"
}
],
"no-throw-literal": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unused-labels": "error",
"no-var": "error",
"prefer-const": "error",
"radix": "error",
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ yarn.lock
/libpeerconnection.log
npm-debug.log
testem.log
tslint-to-eslint-config.log
/typings

# e2e
Expand Down
83 changes: 42 additions & 41 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 274410e

Please sign in to comment.