Skip to content

Commit 9c3064b

Browse files
authored
chore: add eslint file extension rule (#82)
1 parent 2cd078d commit 9c3064b

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.eslintrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
plugins:
2+
- import
13
env:
24
browser: true
35
es2021: true
@@ -19,6 +21,10 @@ rules:
1921
'generator-star-spacing': 'off'
2022
'@typescript-eslint/naming-convention': 'off'
2123
'@typescript-eslint/no-extraneous-class': 'off'
24+
'import/extensions':
25+
- error
26+
- always
27+
- js: always
2228
ignorePatterns:
2329
- 'jest.config.js'
2430
- '**/__tests__/**'

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a
1212

1313
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.
1414

15+
## 2.1.2 - 2024-11-26
16+
17+
### Fixed
18+
19+
- Updated payment-methods export to use `.js` extension
20+
21+
### Added
22+
23+
- ESLint rule to ensure `.js` extension is provided
24+
1525
## 2.1.1 - 2024-11-25
1626

1727
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@paddle/paddle-node-sdk",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
55
"main": "dist/cjs/index.cjs.node.js",
66
"module": "dist/esm/index.esm.node.js",

src/resources/payment-methods/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { type ErrorResponse, type Response } from '../../internal/index.js';
1010
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
1111
import { type ListCustomerPaymentMethodQueryParameters } from './operations/index.js';
1212

13-
export * from './operations';
13+
export * from './operations/index.js';
1414

1515
const PaymentMethodPaths = {
1616
list: '/customers/{customer_id}/payment-methods',

0 commit comments

Comments
 (0)