Skip to content

Commit

Permalink
fix: re-enable eslint rules for ts
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Apr 8, 2024
1 parent 70cdbc7 commit 7970f59
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
28 changes: 24 additions & 4 deletions flat/typescript/base.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin';
import typescriptEslintParser from '@typescript-eslint/parser';
import { PATTERN_ALL } from '../pattern.mjs';
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin'
import typescriptEslintParser from '@typescript-eslint/parser'
import { PATTERN_ALL } from '../pattern.mjs'

export default [
{
Expand All @@ -22,5 +22,25 @@ export default [
plugins: {
'@typescript-eslint': typescriptEslintPlugin,
},
rules: {
'constructor-super': 'error',
'getter-return': 'error',
'no-const-assign': 'error',
'no-dupe-args': 'error',
'no-dupe-class-members': 'error',
'no-dupe-keys': 'error',
'no-func-assign': 'error',
'no-import-assign': 'error',
'no-new-symbol': 'error',
'no-obj-calls': 'error',
// TS overload
// 'no-redeclare': 'error',
'no-setter-return': 'error',
'no-this-before-super': 'error',
// Global namespaces
// 'no-undef': 'error',
'no-unreachable': 'error',
'no-unsafe-negation': 'error',
},
},
];
]
20 changes: 20 additions & 0 deletions typescript/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,24 @@ module.exports = {
jsx: true,
},
},
rules: {
'constructor-super': 'error',
'getter-return': 'error',
'no-const-assign': 'error',
'no-dupe-args': 'error',
'no-dupe-class-members': 'error',
'no-dupe-keys': 'error',
'no-func-assign': 'error',
'no-import-assign': 'error',
'no-new-symbol': 'error',
'no-obj-calls': 'error',
// TS overload
// 'no-redeclare': 'error',
'no-setter-return': 'error',
'no-this-before-super': 'error',
// Global namespaces
// 'no-undef': 'error',
'no-unreachable': 'error',
'no-unsafe-negation': 'error',
},
}

0 comments on commit 7970f59

Please sign in to comment.