Skip to content

Commit c83b366

Browse files
CyberT33NCyberT33N
CyberT33N
authored and
CyberT33N
committed
feat(CCS-001): added tseslint stylisticTypeChecked & recommendedTypeChecked
1 parent 5bf2a4f commit c83b366

File tree

6 files changed

+203
-125
lines changed

6 files changed

+203
-125
lines changed

eslint.config.mjs

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
███████████████████████████████████████████████████████████████████████████████
1313
███████████████████████████████████████████████████████████████████████████████
1414
*/
15-
// @ts-check
1615

1716
import eslint from '@eslint/js'
1817
import tseslint from 'typescript-eslint'
1918

2019
export default tseslint.config(
20+
// ===== ESLINT RULES =====
2121
{
2222
...eslint.configs.recommended,
2323
rules: {
@@ -53,5 +53,29 @@ export default tseslint.config(
5353
'guard-for-in': 0
5454
}
5555
},
56-
...tseslint.configs.recommended
56+
57+
// ===== TSESLINT RULES =====
58+
...tseslint.configs.stylisticTypeChecked,
59+
...tseslint.configs.recommendedTypeChecked,
60+
{
61+
languageOptions: {
62+
parserOptions: {
63+
projectService: true,
64+
tsconfigRootDir: import.meta.dirname
65+
}
66+
}
67+
},
68+
// ...tseslint.configs.recommended,
69+
// ...tseslint.configs.strictTypeChecked,
70+
//...tseslint.configs.stylisticTypeChecked
71+
72+
{
73+
rules: {
74+
// '@typescript-eslint/no-explicit-any': 'off',
75+
// '@typescript-eslint/no-unused-vars': 'off',
76+
// '@typescript-eslint/no-var-requires': 'off',
77+
// '@typescript-eslint/explicit-module-boundary-types': 'off',
78+
// '@typescript-eslint/no-empty-function ': 'off',
79+
}
80+
}
5781
)

0 commit comments

Comments
 (0)