Skip to content

Commit

Permalink
Merge pull request #58 from nebur395/feature/upgrade-packages-to-node-18
Browse files Browse the repository at this point in the history
Feature/upgrade packages to node 18
  • Loading branch information
RecuencoJones authored Sep 26, 2023
2 parents b3edcaf + 372a2e0 commit 8af4b27
Show file tree
Hide file tree
Showing 52 changed files with 3,424 additions and 9,969 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 2015
"ecmaVersion": 2022
},
"extends": [
"./packages/eslint-config-adidas-es5/index.js",
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ This changelog is only to log changes of the project base.
If there are changes on the packages, please, check and update the changelog of each package accordingly.
-->

# 3.0.0

- Updated engine requirements to node 18 and npm 9.
- Updated ecmaVersion to 2022 or es13.
- Updated `chalk` to 13.
- Updated `eslint` to 8.
- Updated `eslint-plugin-node` to 11.

# 2.0.0

- Replaced `lerna` by npm workspaces.
Expand Down
13,025 changes: 3,150 additions & 9,875 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-linter-configs",
"version": "1.9.6",
"version": "3.0.0",
"description": "adidas configurations for JavaScript linting tools",
"license": "MIT",
"contributors": [
Expand All @@ -12,17 +12,17 @@
"url": "https://github.com/adidas/js-linter-configs.git"
},
"engines": {
"node": ">= 16",
"npm": ">= 8"
"node": ">= 18",
"npm": ">= 9"
},
"workspaces": [ "packages/*" ],
"scripts": {
"safe-publish": "npm exec --workspaces -- safe-publish",
"lint": "eslint packages"
},
"devDependencies": {
"chalk": "4.1.0",
"eslint": "7.18.0",
"chalk": "5.3.0",
"eslint": "8.50.0",
"eslint-plugin-node": "11.1.0",
"safe-publish": "1.2.1"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/eslint-config-adidas-babel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.0

- Updated ESLint to version 8.
- Updated engine requirements to node 18 and npm 9.

## 1.3.1

- Fixed `parserOptions` to not require config file on packages from `node_modules`. [babel/babel#11975](https://github.com/babel/babel/issues/11975)
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-adidas-babel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Adds Babel parser and applies some babel settings to ESLint configuration.
## Install

```
npm i --save-dev eslint@7 @babel/eslint-parser@7 eslint-config-adidas-babel
npm i --save-dev eslint@8 @babel/eslint-parser@7 eslint-config-adidas-babel
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-config-adidas-babel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-adidas-babel",
"version": "1.3.1",
"version": "2.0.0",
"description": "ESLint configuration to use @babel/eslint-parser",
"license": "MIT",
"contributors": [
Expand All @@ -12,13 +12,13 @@
"url": "https://github.com/adidas/js-linter-configs.git"
},
"engines": {
"node": ">= 16",
"npm": ">= 8"
"node": ">= 18",
"npm": ">= 9"
},
"main": "./index.js",
"peerDependencies": {
"@babel/eslint-parser": "^7",
"eslint": "^7"
"eslint": "^8"
},
"files": [
"index.js",
Expand Down
5 changes: 5 additions & 0 deletions packages/eslint-config-adidas-env/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.0

- Updated ESLint to version 8.
- Updated engine requirements to node 18 and npm 9.

# 1.3.0

- Updated ESLint to version 7.
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-adidas-env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Environment configurations for ESLint:
## Install

```
npm i --save-dev eslint@7 eslint-plugin-node@11 eslint-config-adidas-env
npm i --save-dev eslint@8 eslint-plugin-node@11 eslint-config-adidas-env
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-config-adidas-env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-adidas-env",
"version": "1.3.0",
"version": "2.0.0",
"description": "ESLint configurations for multiple environments",
"license": "MIT",
"contributors": [
Expand All @@ -12,12 +12,12 @@
"url": "https://github.com/adidas/js-linter-configs.git"
},
"engines": {
"node": ">= 16",
"npm": ">= 8"
"node": ">= 18",
"npm": ">= 9"
},
"main": "./browser.js",
"peerDependencies": {
"eslint": "^7",
"eslint": "^8",
"eslint-plugin-node": "^11"
},
"files": [
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-config-adidas-es13/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# 1.0.0

- Initial version: `eslint-config-adidas-es13`.
43 changes: 43 additions & 0 deletions packages/eslint-config-adidas-es13/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[![npm version](https://badge.fury.io/js/eslint-config-adidas-es13.svg)](https://npmjs.com/package/eslint-config-adidas-es13)

# eslint-config-adidas-es13

ES13 (ES2022) ESLint rules.

These already extend `eslint-config-adidas-es9`.

This set of rules is not too restrictive since ES13 features are yet in evaluation.

## Install

```
npm i --save-dev eslint@8 eslint-plugin-import@2 eslint-plugin-promise@6 eslint-config-adidas-es13
```

## Usage

```json
{
"extends": [
"adidas-es13"
]
}
```

Usually you would mix this with other eslint configurations, like:

```json
{
"extends": [
"adidas-env/browser",
"adidas-env/modules",
"adidas-es13"
]
}
```

## Links

- [Base configuration](https://tools.adidas-group.com/bitbucket/projects/BWRNPM/repos/pea-linter-configs/browse/packages/eslint-config-es5)
- [ESLint](https://eslint.org/)
- [FAQ: ESLint Peer Dependencies](../../CHANGELOG.md#ESLint-Peer-Dependencies)
6 changes: 6 additions & 0 deletions packages/eslint-config-adidas-es13/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: [ 'eslint-config-adidas-es9' ].map(require.resolve),
parserOptions: {
ecmaVersion: 13
}
};
35 changes: 35 additions & 0 deletions packages/eslint-config-adidas-es13/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "eslint-config-adidas-es13",
"version": "1.0.0",
"description": "ESLint configuration and rules for ECMAScript 13",
"license": "MIT",
"contributors": [
"David Recuenco <[email protected]>",
"Jaime Pastor <[email protected]>"
],
"repository": {
"type": "git",
"url": "https://github.com/adidas/js-linter-configs.git"
},
"engines": {
"node": ">= 18",
"npm": ">= 9"
},
"main": "./index.js",
"peerDependencies": {
"eslint": "^8"
},
"dependencies": {
"eslint-config-adidas-es9": "~2.0"
},
"files": [
"index.js",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"keywords": [
"eslint",
"eslint-config"
]
}
5 changes: 5 additions & 0 deletions packages/eslint-config-adidas-es5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.0

- Updated ESLint to version 8.
- Updated engine requirements to node 18 and npm 9.

## 1.3.2

- Updated `no-unused-vars` config to match `@typescript-eslint/no-unused-vars`.
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-adidas-es5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This should be the base for every JavaScript project, regardless of the ECMAScri
## Install

```
npm i --save-dev eslint@7 eslint-config-adidas-es5
npm i --save-dev eslint@8 eslint-config-adidas-es5
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-config-adidas-es5/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-adidas-es5",
"version": "1.3.2",
"version": "2.0.0",
"description": "ESLint base configuration and rules for all JavaScript codebases",
"license": "MIT",
"contributors": [
Expand All @@ -12,12 +12,12 @@
"url": "https://github.com/adidas/js-linter-configs.git"
},
"engines": {
"node": ">= 16",
"npm": ">= 8"
"node": ">= 18",
"npm": ">= 9"
},
"main": "./index.js",
"peerDependencies": {
"eslint": "^7"
"eslint": "^8"
},
"files": [
"index.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/eslint-config-adidas-es6/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.0.0

- Updated ESLint to version 8.
- Updated engine requirements to node 18 and npm 9.
- Updated `eslint-plugin-promise` to 6.
- Updated `eslint-config-adidas-es5` to 2.

## 1.4.1

- Updated `eslint-config-adidas-es5` semver to patch.
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-adidas-es6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ These already extend `eslint-config-adidas-es5`.
## Install

```
npm i --save-dev eslint@7 eslint-plugin-import@2 eslint-plugin-promise@4 eslint-config-adidas-es6
npm i --save-dev eslint@8 eslint-plugin-import@2 eslint-plugin-promise@6 eslint-config-adidas-es6
```

## Usage
Expand Down
14 changes: 7 additions & 7 deletions packages/eslint-config-adidas-es6/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-adidas-es6",
"version": "1.4.1",
"version": "2.0.0",
"description": "ESLint configuration and rules for ECMAScript 6",
"license": "MIT",
"contributors": [
Expand All @@ -12,17 +12,17 @@
"url": "https://github.com/adidas/js-linter-configs.git"
},
"engines": {
"node": ">= 16",
"npm": ">= 8"
"node": ">= 18",
"npm": ">= 9"
},
"main": "./index.js",
"peerDependencies": {
"eslint": "^7",
"eslint-plugin-import": "^2.22",
"eslint-plugin-promise": "^4"
"eslint": "^8",
"eslint-plugin-import": "^2.28",
"eslint-plugin-promise": "^6"
},
"dependencies": {
"eslint-config-adidas-es5": "~1.3"
"eslint-config-adidas-es5": "~2.0"
},
"files": [
"index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-config-adidas-es7/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.0.0

- Updated ESLint to version 8.
- Updated engine requirements to node 18 and npm 9.
- Updated `eslint-config-adidas-es6` to 2.

## 1.3.1

- Updated `eslint-config-adidas-es6` semver to patch.
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-adidas-es7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This set of rules is not too restrictive since ES7 features are yet in evaluatio
## Install

```
npm i --save-dev eslint@7 eslint-plugin-import@2 eslint-plugin-promise@4 eslint-config-adidas-es7
npm i --save-dev eslint@8 eslint-plugin-import@2 eslint-plugin-promise@6 eslint-config-adidas-es7
```

## Usage
Expand Down
10 changes: 5 additions & 5 deletions packages/eslint-config-adidas-es7/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-adidas-es7",
"version": "1.3.1",
"version": "2.0.0",
"description": "ESLint configuration and rules for ECMAScript 7",
"license": "MIT",
"contributors": [
Expand All @@ -12,15 +12,15 @@
"url": "https://github.com/adidas/js-linter-configs.git"
},
"engines": {
"node": ">= 16",
"npm": ">= 8"
"node": ">= 18",
"npm": ">= 9"
},
"main": "./index.js",
"peerDependencies": {
"eslint": "^7"
"eslint": "^8"
},
"dependencies": {
"eslint-config-adidas-es6": "~1.4"
"eslint-config-adidas-es6": "~2.0"
},
"files": [
"index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-config-adidas-es8/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.0.0

- Updated ESLint to version 8.
- Updated engine requirements to node 18 and npm 9.
- Updated `eslint-config-adidas-es7` to 2.

## 1.3.1

- Updated `eslint-config-adidas-es7` semver to patch.
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-adidas-es8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This set of rules is not too restrictive since ES8 features are yet in evaluatio
## Install

```
npm i --save-dev eslint@7 eslint-plugin-import@2 eslint-plugin-promise@4 eslint-config-adidas-es8
npm i --save-dev eslint@8 eslint-plugin-import@2 eslint-plugin-promise@6 eslint-config-adidas-es8
```

## Usage
Expand Down
Loading

0 comments on commit 8af4b27

Please sign in to comment.