Skip to content

Commit

Permalink
Fix "camelcase" rule on typescript (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueleite42 authored Feb 12, 2022
1 parent fbe46be commit 708ff9d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 20 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

### Changed

### Fixed

### Removed

### Dependencies

## [5.2.2] - 2022-02-12

### Added

- `utils` imports category

### Changed

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

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@techmmunity/eslint-config",
"version": "5.2.1",
"version": "5.2.2",
"license": "Apache-2.0",
"author": "Techmmunity",
"description": "Techmmunity Style Guide",
Expand Down
39 changes: 20 additions & 19 deletions src/configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,26 @@ module.exports = {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "error",
"@typescript-eslint/prefer-enum-initializers": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-literal-enum-member": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/sort-type-union-intersection-members": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
/**
* Extension Rules
*/
"camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
{
Expand Down Expand Up @@ -99,25 +119,6 @@ module.exports = {
format: ["PascalCase"],
},
],
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "error",
"@typescript-eslint/prefer-enum-initializers": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-literal-enum-member": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/sort-type-union-intersection-members": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
/**
* Extension Rules
*/
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"comma-spacing": "off",
Expand Down

0 comments on commit 708ff9d

Please sign in to comment.