Skip to content

Commit 6fd8877

Browse files
authored
chore!: update dependencies to run node v22 (#3)
1 parent 174460d commit 6fd8877

File tree

6 files changed

+5336
-12123
lines changed

6 files changed

+5336
-12123
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,22 @@ jobs:
2222
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
2323

2424
steps:
25-
- name: Setup repo
26-
uses: actions/checkout@v2
25+
- name: Checkout
26+
uses: actions/checkout@v4
2727

28-
- name: Setup Node
29-
uses: actions/setup-node@v1
28+
- name: Setup Node 22 + NPM cache
29+
uses: actions/setup-node@v4
3030
with:
31-
node-version: '16.x'
32-
33-
- name: Cache Packages
34-
id: cache
35-
uses: actions/cache@v2
36-
with:
37-
path: ~/.npm
38-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
39-
restore-keys: |
40-
${{ runner.os }}-node-
41-
timeout-minutes: 1
31+
node-version: '22.x'
32+
cache: 'npm'
33+
registry-url: 'https://npm.pkg.github.com'
34+
scope: '@by-intera'
4235

4336
- name: Install Packages
4437
run: |
4538
npm config set //npm.pkg.github.com/:_authToken=$GH_PACKAGES_TOKEN
4639
npm config set @by-intera:registry=https://npm.pkg.github.com
4740
npm ci
48-
timeout-minutes: 3
4941
5042
- name: Publish Package
5143
if: startsWith(github.ref, 'refs/tags/')

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.npmrc
22
node_modules
3+
.idea

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @byintera/eslint-config
1+
# @by-intera/eslint-config
22

33
[![npm version](https://badge.fury.io/js/%40byintera%2Feslint-config.svg)](https://badge.fury.io/js/%40byintera%2Feslint-config)
44

@@ -7,9 +7,10 @@ Intera's shared [ESLint](https://eslint.org/) configuration.
77
## Versions
88

99
| Version | Description |
10-
| ------- | -------------- |
10+
|---------|----------------|
1111
| 1.x | Typescript 4.x |
1212
| 2.x | Typescript 5.x |
13+
| 3.x | Node 22.x |
1314

1415
## Setup
1516

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
},
1616
plugins: ['@babel', 'react-hooks', 'simple-import-sort', 'sort-destructure-keys'],
1717
parserOptions: {
18-
ecmaVersion: 2021,
18+
ecmaVersion: 2024,
1919
sourceType: 'module',
2020
ecmaFeatures: {
2121
jsx: true,
@@ -24,7 +24,7 @@ module.exports = {
2424
settings: {
2525
'import/resolver': {
2626
node: {
27-
extensions: ['.js', '.jxs', '.ts', '.tsx'],
27+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
2828
moduleDirectory: ['node_modules', './', './src'],
2929
},
3030
typescript: {},

0 commit comments

Comments
 (0)