Skip to content

Commit f0e4798

Browse files
v1.0.1 (#2)
* feat: update readme & add links to package.json (#1) * feat: update readme & add links to package.json * fix: styling * v1.0.1 --------- Co-authored-by: tritiumTino <75369981+tritiumTino@users.noreply.github.com>
1 parent 7f16b6a commit f0e4798

File tree

7 files changed

+335
-855
lines changed

7 files changed

+335
-855
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [1.0.1] - Cosmetic Improvement - 2025-06-08
4+
5+
### 💄 Cosmetic Improvements
6+
- Code style improvements and minor refactoring (thanks @tritiumTino)
7+
- Updated project documentation (README.md) (thanks @tritiumTino)
8+
- Updated dependencies to their latest versions
9+
310
## [1.0.0] - Initial Release - 2025-05-09
411

512
### 🚀 Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<h1>Rollup Plugin ESNext to NodeNext</h1>
33
<a href="https://www.npmjs.com/package/rollup-plugin-esnext-to-nodenext" target="_blank" rel="noopener noreferrer"><img alt="NPM version" src="https://img.shields.io/npm/v/rollup-plugin-esnext-to-nodenext.svg?maxAge=3600&style=flat-square" /></a>
44
<a href="https://www.npmjs.com/package/rollup-plugin-esnext-to-nodenext" target="_blank" rel="noopener noreferrer"><img alt="NPM downloads per month" src="https://img.shields.io/npm/dm/rollup-plugin-esnext-to-nodenext.svg?maxAge=3600&style=flat-square" /></a>
5-
<a href="https://github.com/mrrefactoring/rollup-plugin-esnext-to-nodenext" target="_blank" rel="noopener noreferrer"><img alt="build status" src="https://img.shields.io/github/actions/workflow/status/mrrefactoring/rollup-plugin-esnext-to-nodenext/.github/workflows/ci.yaml?branch=master&style=flat-square"></a>
6-
<a href="https://github.com/mrrefactoring/rollup-plugin-esnext-to-nodenext/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img alt="license" src="https://img.shields.io/github/license/mrrefactoring/rollup-plugin-esnext-to-nodenext?color=green&style=flat-square"/></a>
5+
<a href="https://github.com/mrrefactoring/rollup-plugin-esnext-to-nodenext" target="_blank" rel="noopener noreferrer"><img alt="build status" src="https://img.shields.io/github/actions/workflow/status/mrrefactoring/rollup-plugin-esnext-to-nodenext/.github/workflows/build.yml?branch=master&style=flat-square"></a>
6+
<a href="https://github.com/mrrefactoring/rollup-plugin-esnext-to-nodenext/blob/master/LICENSE" target="_blank" rel="noopener noreferrer"><img alt="license" src="https://img.shields.io/github/license/mrrefactoring/rollup-plugin-esnext-to-nodenext?color=green&style=flat-square"/></a>
77

8-
<span>A Rollup plugin that transforms ESM imports to Node.js-compatible `nodenext` format by adding explicit file extensions.</span>
8+
<span>A Rollup plugin that transforms `ESM` imports to Node.js-compatible `NodeNext` format by adding explicit file extensions.</span>
99
</div>
1010

1111
## Features
@@ -33,7 +33,7 @@ pnpm add rollup-plugin-esnext-to-nodenext -D
3333

3434
```javascript
3535
import esnextToNodeNext from 'rollup-plugin-esnext-to-nodenext';
36-
import {defineConfig} from 'rollup';
36+
import { defineConfig } from 'rollup';
3737

3838
export default defineConfig({
3939
input: 'src/index.ts',

eslint.config.ts

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import js from '@eslint/js';
22
import globals from 'globals';
33
import tseslint from 'typescript-eslint';
44
import { defineConfig } from 'eslint/config';
5-
import stylisticJs from '@stylistic/eslint-plugin-js';
6-
import stylisticTs from '@stylistic/eslint-plugin-ts';
5+
import stylistic from '@stylistic/eslint-plugin';
76

87
export default defineConfig([
98
{ files: ['**/*.{js,mjs,cjs,ts}'], plugins: { js }, extends: ['js/recommended'] },
@@ -18,44 +17,37 @@ export default defineConfig([
1817
},
1918
},
2019
plugins: {
21-
'@stylistic/js': stylisticJs,
22-
'@stylistic/ts': stylisticTs,
20+
'@stylistic': stylistic,
2321
},
2422
rules: {
25-
'@stylistic/js/no-trailing-spaces': 'error',
26-
'@stylistic/ts/indent': ['error', 2],
27-
'@stylistic/ts/lines-between-class-members': [
23+
'@stylistic/indent': ['error', 2],
24+
'@stylistic/lines-between-class-members': [
2825
'error',
2926
'always',
3027
{
3128
exceptAfterOverload: true,
3229
exceptAfterSingleLine: true,
3330
},
3431
],
35-
'@stylistic/ts/padding-line-between-statements': [
32+
'@stylistic/no-trailing-spaces': 'error',
33+
'@stylistic/padding-line-between-statements': [
3634
'error',
3735
// Return statements
38-
{ blankLine: 'always', prev: '*', next: 'return' },
36+
{blankLine: 'always', prev: '*', next: 'return'},
3937
// Import statements
40-
{ blankLine: 'always', prev: 'import', next: '*' },
41-
{ blankLine: 'any', prev: 'import', next: 'import' },
38+
{blankLine: 'always', prev: 'import', next: '*'},
39+
{blankLine: 'any', prev: 'import', next: 'import'},
4240
],
43-
'@stylistic/ts/quotes': ['error', 'single'],
44-
'@stylistic/ts/semi': ['error', 'always'],
41+
'@stylistic/quotes': ['error', 'single'],
42+
'@stylistic/semi': ['error', 'always'],
4543
'@typescript-eslint/consistent-type-imports': [
4644
'error',
4745
{
4846
prefer: 'type-imports',
4947
fixStyle: 'separate-type-imports',
5048
},
5149
],
52-
'@typescript-eslint/no-empty-object-type': 'off',
53-
'@typescript-eslint/no-redundant-type-constituents': 'off', // todo fix it
54-
'@typescript-eslint/no-unnecessary-condition': 'error', // todo fix it
55-
'@typescript-eslint/no-unsafe-argument': 'off', // todo fix it
56-
'@typescript-eslint/no-unsafe-assignment': 'off', // todo fix it
57-
'@typescript-eslint/no-unsafe-call': 'off', // todo fix it
58-
'@typescript-eslint/no-unsafe-member-access': 'off',
50+
'@typescript-eslint/no-unnecessary-condition': 'error',
5951
'@typescript-eslint/prefer-optional-chain': 'error',
6052
},
6153
},

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"name": "rollup-plugin-esnext-to-nodenext",
3-
"version": "1.0.0",
4-
"description": "",
3+
"version": "1.0.1",
4+
"description": "A Rollup plugin that transforms ESM imports to Node.js-compatible NodeNext format by adding explicit file extensions",
55
"author": "Vladislav Tupikin <vladislav.tupikin@icloud.com>",
6+
"repository": "https://github.com/MrRefactoring/rollup-plugin-esnext-to-nodenext.git",
7+
"homepage": "https://github.com/MrRefactoring/rollup-plugin-esnext-to-nodenext",
68
"license": "MIT",
79
"type": "module",
810
"module": "./dist/index.js",
@@ -44,21 +46,20 @@
4446
"rollup": "^4"
4547
},
4648
"dependencies": {
47-
"ts-add-js-extension": "^1.6.5"
49+
"ts-add-js-extension": "^1.6.6"
4850
},
4951
"devDependencies": {
50-
"@eslint/js": "^9.26.0",
52+
"@eslint/js": "^9.28.0",
5153
"@rollup/plugin-typescript": "^12.1.2",
5254
"@rollup/pluginutils": "^5.1.4",
53-
"@stylistic/eslint-plugin-js": "^4.2.0",
54-
"@stylistic/eslint-plugin-ts": "^4.2.0",
55-
"@types/node": "^20.17.46",
56-
"eslint": "^9.26.0",
57-
"globals": "^16.1.0",
55+
"@stylistic/eslint-plugin": "^4.4.1",
56+
"@types/node": "^20.19.0",
57+
"eslint": "^9.28.0",
58+
"globals": "^16.2.0",
5859
"jiti": "^2.4.2",
59-
"rollup": "^4.40.2",
60+
"rollup": "^4.42.0",
6061
"tslib": "^2.8.1",
6162
"typescript": "^5.8.3",
62-
"typescript-eslint": "^8.32.0"
63+
"typescript-eslint": "^8.33.1"
6364
}
6465
}

0 commit comments

Comments
 (0)