Skip to content

Commit

Permalink
infra: error on deprecation (#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Feb 23, 2023
1 parent aa3e771 commit 11a5f51
Show file tree
Hide file tree
Showing 8 changed files with 505 additions and 532 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ module.exports = defineConfig({
sourceType: 'module',
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: ['@typescript-eslint', 'prettier'],
plugins: ['@typescript-eslint', 'prettier', 'deprecation'],
rules: {
// We may want to use this in the future
'no-useless-escape': 'off',
'deprecation/deprecation': 'error',
eqeqeq: ['error', 'always', { null: 'ignore' }],
'prefer-template': 'error',

'@typescript-eslint/array-type': [
'error',
{ default: 'array-simple', readonly: 'generic' },
Expand Down Expand Up @@ -88,6 +88,7 @@ module.exports = defineConfig({
{
files: ['test/*.spec.ts'],
rules: {
'deprecation/deprecation': 'off',
'@typescript-eslint/restrict-template-expressions': [
'error',
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"eslint-config-prettier": "~8.6.0",
"eslint-define-config": "~1.15.0",
"eslint-gitignore": "~0.1.0",
"eslint-plugin-deprecation": "~1.3.3",
"eslint-plugin-jsdoc": "~40.0.0",
"eslint-plugin-prettier": "~4.2.1",
"glob": "~8.1.0",
Expand Down
Loading

0 comments on commit 11a5f51

Please sign in to comment.