Skip to content

Commit

Permalink
chore: add eslint file extension rule (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
danbillson authored Nov 26, 2024
1 parent 2cd078d commit 9c3064b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
plugins:
- import
env:
browser: true
es2021: true
Expand All @@ -19,6 +21,10 @@ rules:
'generator-star-spacing': 'off'
'@typescript-eslint/naming-convention': 'off'
'@typescript-eslint/no-extraneous-class': 'off'
'import/extensions':
- error
- always
- js: always
ignorePatterns:
- 'jest.config.js'
- '**/__tests__/**'
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a

This means when upgrading minor versions of the SDK, you may notice type errors. You can safely ignore these or fix by adding additional type guards.

## 2.1.2 - 2024-11-26

### Fixed

- Updated payment-methods export to use `.js` extension

### Added

- ESLint rule to ensure `.js` extension is provided

## 2.1.1 - 2024-11-25

### 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": "@paddle/paddle-node-sdk",
"version": "2.1.1",
"version": "2.1.2",
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
"main": "dist/cjs/index.cjs.node.js",
"module": "dist/esm/index.esm.node.js",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/payment-methods/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { type ErrorResponse, type Response } from '../../internal/index.js';
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
import { type ListCustomerPaymentMethodQueryParameters } from './operations/index.js';

export * from './operations';
export * from './operations/index.js';

const PaymentMethodPaths = {
list: '/customers/{customer_id}/payment-methods',
Expand Down

0 comments on commit 9c3064b

Please sign in to comment.