Skip to content

Commit

Permalink
add pascal case and upper case to allowed import formats (#441)
Browse files Browse the repository at this point in the history
* add pascal case to allowed import formats

* format file ts.js

* add upper case to allowed import formats

* adding new version info

* fix changelog file format
  • Loading branch information
individuart authored Jul 10, 2024
1 parent cb8970e commit f016500
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.1] - 2024-07-10

- Updating naming convention for imports. Added `camelCase`, `PascalCase` and `UPPER_CASE`.

## [2.1.0] - 2024-06-20

- Updating dependencies before migration to ESlint 9.
Expand Down
4 changes: 4 additions & 0 deletions configs/ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module.exports = {
selector: 'default',
format: ['camelCase'],
},
{
selector: 'import',
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
},
{
// This is the 'property' group values. For some reason `property` selector is not recogniced.
selector: ['classProperty', 'objectLiteralProperty', 'typeProperty'],
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": "@cabify/eslint-config",
"version": "2.1.0",
"version": "2.1.1",
"description": "ESLint config for Cabify Javascript projects",
"scripts": {
"build": "echo 'No build to perform'",
Expand Down

0 comments on commit f016500

Please sign in to comment.