Skip to content

Commit

Permalink
feat(eslint-config-angular): add rxjs plugin (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Apr 6, 2022
1 parent b46db88 commit d90e4d6
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 2 deletions.
156 changes: 156 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/eslint-config-angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ necessary additional configs.
"extends": [
"@tinkoff/eslint-config/app",
"@tinkoff/eslint-config-angular",
"@tinkoff/eslint-config-angular/html"
"@tinkoff/eslint-config-angular/html",
"@tinkoff/eslint-config-angular/rxjs"
]
}
```
Expand Down
5 changes: 4 additions & 1 deletion packages/eslint-config-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"files": [
"index.js",
"rxjs",
"html",
"ts",
"README.md"
Expand All @@ -26,7 +27,9 @@
},
"dependencies": {
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-simple-import-sort": "^7.0.0"
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-rxjs": "^5.0.2",
"eslint-plugin-rxjs-angular": "^2.0.0"
},
"peerDependencies": {
"@tinkoff/eslint-config": "^1.13.2",
Expand Down
11 changes: 11 additions & 0 deletions packages/eslint-config-angular/rxjs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
overrides: [
{
files: ['*.ts'],
parser: '@typescript-eslint/parser',
plugins: ['rxjs'],
extends: ['plugin:rxjs/recommended'],
rules: {},
},
],
};

0 comments on commit d90e4d6

Please sign in to comment.