Skip to content

Commit

Permalink
Migrate from tslint to eslint (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: Silvia Chen <[email protected]>
  • Loading branch information
silviac98 and Silvia Chen authored Jan 7, 2025
1 parent ba0e7ee commit 9667a65
Show file tree
Hide file tree
Showing 9 changed files with 2,368 additions and 776 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: ['@typescript-eslint'],

rules: {
"@typescript-eslint/return-await": 'off',
"@typescript-eslint/no-inferrable-types": 'warn',
"@typescript-eslint/no-explicit-any": 'warn',
'no-console': 'warn',
'prefer-const': 'warn',
'no-useless-escape': 'warn'
},
ignorePatterns: ['*.js', '*.d.ts', 'node_modules/'],
}
Loading

0 comments on commit 9667a65

Please sign in to comment.