Skip to content

Commit 708ff9d

Browse files
Fix "camelcase" rule on typescript (#269)
1 parent fbe46be commit 708ff9d

File tree

3 files changed

+34
-20
lines changed

3 files changed

+34
-20
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
### Changed
13+
14+
### Fixed
15+
16+
### Removed
17+
18+
### Dependencies
19+
20+
## [5.2.2] - 2022-02-12
21+
22+
### Added
23+
1224
- `utils` imports category
1325

1426
### Changed
1527

1628
- Imports that start with `enum` or `enums` will be in the types category
1729
- Imports that start with `type` or `types` will be in the types category
30+
- Disable `camelcase` rule when using `typescript` module, because it's unnecessary
1831

1932
### Fixed
2033

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@techmmunity/eslint-config",
3-
"version": "5.2.1",
3+
"version": "5.2.2",
44
"license": "Apache-2.0",
55
"author": "Techmmunity",
66
"description": "Techmmunity Style Guide",

src/configs/typescript.js

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,26 @@ module.exports = {
7070
"@typescript-eslint/explicit-module-boundary-types": "off",
7171
"@typescript-eslint/member-delimiter-style": "error",
7272
"@typescript-eslint/method-signature-style": "error",
73+
"@typescript-eslint/no-base-to-string": "error",
74+
"@typescript-eslint/no-confusing-non-null-assertion": "error",
75+
"@typescript-eslint/no-require-imports": "error",
76+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
77+
"@typescript-eslint/no-unnecessary-type-arguments": "error",
78+
"@typescript-eslint/no-unnecessary-type-constraint": "error",
79+
"@typescript-eslint/prefer-enum-initializers": "error",
80+
"@typescript-eslint/prefer-includes": "error",
81+
"@typescript-eslint/prefer-literal-enum-member": "error",
82+
"@typescript-eslint/prefer-optional-chain": "error",
83+
"@typescript-eslint/prefer-readonly": "error",
84+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
85+
"@typescript-eslint/sort-type-union-intersection-members": "error",
86+
"@typescript-eslint/switch-exhaustiveness-check": "error",
87+
"@typescript-eslint/type-annotation-spacing": "error",
88+
"@typescript-eslint/unified-signatures": "error",
89+
/**
90+
* Extension Rules
91+
*/
92+
"camelcase": "off",
7393
"@typescript-eslint/naming-convention": [
7494
"error",
7595
{
@@ -99,25 +119,6 @@ module.exports = {
99119
format: ["PascalCase"],
100120
},
101121
],
102-
"@typescript-eslint/no-base-to-string": "error",
103-
"@typescript-eslint/no-confusing-non-null-assertion": "error",
104-
"@typescript-eslint/no-require-imports": "error",
105-
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
106-
"@typescript-eslint/no-unnecessary-type-arguments": "error",
107-
"@typescript-eslint/no-unnecessary-type-constraint": "error",
108-
"@typescript-eslint/prefer-enum-initializers": "error",
109-
"@typescript-eslint/prefer-includes": "error",
110-
"@typescript-eslint/prefer-literal-enum-member": "error",
111-
"@typescript-eslint/prefer-optional-chain": "error",
112-
"@typescript-eslint/prefer-readonly": "error",
113-
"@typescript-eslint/prefer-string-starts-ends-with": "error",
114-
"@typescript-eslint/sort-type-union-intersection-members": "error",
115-
"@typescript-eslint/switch-exhaustiveness-check": "error",
116-
"@typescript-eslint/type-annotation-spacing": "error",
117-
"@typescript-eslint/unified-signatures": "error",
118-
/**
119-
* Extension Rules
120-
*/
121122
"comma-dangle": "off",
122123
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
123124
"comma-spacing": "off",

0 commit comments

Comments
 (0)