Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
feat(base): add deprecation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
stingalleman committed Mar 18, 2021
1 parent ef64f46 commit 113168e
Show file tree
Hide file tree
Showing 3 changed files with 787 additions and 429 deletions.
5 changes: 3 additions & 2 deletions packages/typescript/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
extends: ['plugin:@typescript-eslint/recommended'],
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'deprecation'],
rules: {
'@typescript-eslint/return-await': ['error', 'always'],
'@typescript-eslint/explicit-function-return-type': 1,
Expand All @@ -11,6 +11,7 @@ module.exports = {
'@typescript-eslint/array-type': ['error', {
default: 'array',
readonly: 'array'
}]
}],
'deprecation/deprecation': 'warn'
}
};
3 changes: 3 additions & 0 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
},
"peerDependencies": {
"eslint": "7.14.0"
},
"devDependencies": {
"eslint-plugin-deprecation": "^1.2.0"
}
}
Loading

0 comments on commit 113168e

Please sign in to comment.