Skip to content

Commit

Permalink
Dropped Node 16 support and marked stable (#3)
Browse files Browse the repository at this point in the history
breaking: Dropped Node 16 support

Co-authored-by: ijlee2 <ijlee2@users.noreply.github.com>
  • Loading branch information
ijlee2 and ijlee2 authored Sep 14, 2023
1 parent 495e6bf commit 0a2bc47
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 217 deletions.
24 changes: 13 additions & 11 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
project: true,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'typescript-sort-keys'],
plugins: ['simple-import-sort'],
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:n/recommended',
'plugin:prettier/recommended',
'plugin:typescript-sort-keys/recommended',
],
rules: {
curly: 'error',
Expand All @@ -32,11 +29,19 @@ module.exports = {
// TypeScript files
{
files: ['**/*.{cts,ts}'],
extends: ['plugin:@typescript-eslint/recommended-type-checked'],
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'plugin:typescript-sort-keys/recommended',
],
rules: {
'import/no-duplicates': 'error',
},
},
// TypeScript and JavaScript files
// JavaScript files
{
files: ['**/*.{cjs,cts,js,ts}'],
files: ['**/*.{cjs,js}'],
rules: {
'import/no-duplicates': 'error',
},
Expand All @@ -48,10 +53,7 @@ module.exports = {
browser: false,
node: true,
},
extends: [
'plugin:@typescript-eslint/disable-type-checked',
'plugin:n/recommended',
],
extends: ['plugin:n/recommended'],
},
],
};
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
NODE_VERSION: 16
NODE_VERSION: 18

jobs:
lint:
Expand All @@ -16,7 +16,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v2
Expand All @@ -42,7 +42,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pnpm build

## Compatibility

- Node.js v16 or above
- Node.js v18 or above


## Contributing
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@
"test": "./build.sh --test && mt dist-for-testing --quiet"
},
"dependencies": {
"@codemod-utils/ast-javascript": "^0.3.4",
"@codemod-utils/files": "^0.5.3",
"@codemod-utils/ast-javascript": "^1.0.0",
"@codemod-utils/files": "^1.0.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@babel/core": "^7.22.11",
"@codemod-utils/tests": "^0.3.1",
"@sondr3/minitest": "0.1.1",
"@tsconfig/node16": "^16.1.1",
"@babel/core": "^7.22.17",
"@codemod-utils/tests": "^1.0.0",
"@sondr3/minitest": "^0.1.2",
"@tsconfig/node18": "^18.2.2",
"@tsconfig/strictest": "^2.0.2",
"@types/node": "^16.18.47",
"@types/node": "^18.17.15",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"concurrently": "^8.2.1",
"eslint": "^8.48.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.0.2",
"eslint-plugin-n": "^16.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-typescript-sort-keys": "^3.0.0",
Expand All @@ -62,7 +62,7 @@
"typescript": "^5.2.2"
},
"engines": {
"node": "16.* || >= 18"
"node": "18.* || >= 20"
},
"changelog": {
"labels": {
Expand Down
Loading

0 comments on commit 0a2bc47

Please sign in to comment.