Skip to content

Commit 247e8eb

Browse files
committed
chore: migrate TSLint config to ESLint
1 parent d1342fb commit 247e8eb

8 files changed

Lines changed: 259 additions & 733 deletions

File tree

eslint.config.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,43 @@ module.exports = tseslint.config(
1313
],
1414
processor: angular.processInlineTemplates,
1515
rules: {
16+
'constructor-super': 'error',
17+
'no-caller': 'error',
18+
'no-console': [
19+
'error',
20+
{
21+
allow: [
22+
'assert',
23+
'clear',
24+
'count',
25+
'countReset',
26+
'dir',
27+
'dirxml',
28+
'error',
29+
'group',
30+
'groupCollapsed',
31+
'groupEnd',
32+
'log',
33+
'profile',
34+
'profileEnd',
35+
'table',
36+
'timeLog',
37+
'timeStamp',
38+
'warn',
39+
],
40+
},
41+
],
42+
'no-debugger': 'error',
43+
'no-eval': 'error',
44+
'no-fallthrough': 'error',
45+
'no-labels': 'error',
46+
'no-new-wrappers': 'error',
47+
'no-restricted-imports': ['error', { paths: ['rxjs/Rx'] }],
48+
'no-throw-literal': 'error',
49+
'no-undef-init': 'error',
50+
'no-var': 'error',
51+
'prefer-const': 'off',
52+
radix: 'error',
1653
'@angular-eslint/directive-selector': [
1754
'error',
1855
{
@@ -29,6 +66,27 @@ module.exports = tseslint.config(
2966
style: 'kebab-case',
3067
},
3168
],
69+
'@angular-eslint/component-class-suffix': 'error',
70+
'@angular-eslint/directive-class-suffix': 'error',
71+
'@angular-eslint/no-input-rename': 'error',
72+
'@angular-eslint/no-inputs-metadata-property': 'error',
73+
'@angular-eslint/no-output-on-prefix': 'error',
74+
'@angular-eslint/no-output-rename': 'error',
75+
'@angular-eslint/no-outputs-metadata-property': 'error',
76+
'@angular-eslint/prefer-inject': 'off',
77+
'@angular-eslint/use-lifecycle-interface': 'error',
78+
'@angular-eslint/use-pipe-transform-interface': 'error',
79+
'@typescript-eslint/no-empty-interface': 'error',
80+
'@typescript-eslint/no-explicit-any': 'off',
81+
'@typescript-eslint/no-inferrable-types': [
82+
'error',
83+
{ ignoreParameters: true, ignoreProperties: false },
84+
],
85+
'@typescript-eslint/no-misused-new': 'error',
86+
'@typescript-eslint/no-non-null-assertion': 'error',
87+
'@typescript-eslint/no-unused-expressions': 'error',
88+
'@typescript-eslint/no-unused-vars': 'off',
89+
'@typescript-eslint/prefer-function-type': 'error',
3290
},
3391
},
3492
{

0 commit comments

Comments
 (0)