@apolitical/eslint-config 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +13 -5
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.1.0] - 2023-01-09
|
|
9
|
+
### Changed
|
|
10
|
+
- Bump dependencies to keep the project up-to-date
|
|
11
|
+
|
|
8
12
|
## [2.0.2] - 2022-06-28
|
|
9
13
|
### Changed
|
|
10
14
|
- Pipeline refs
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Apolitical Eslint Config
|
|
2
2
|
|
|
3
|
-
Apolitical ESLint configurations for Node projects
|
|
3
|
+
Apolitical ESLint and Prettier configurations for Node projects
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -24,14 +24,22 @@ yarn add -D @apolitical/eslint-config
|
|
|
24
24
|
|
|
25
25
|
Link the ESLint configurations from your `package.json`:
|
|
26
26
|
|
|
27
|
+
On your API (Express project):
|
|
27
28
|
```json
|
|
28
|
-
// for node modules
|
|
29
29
|
"eslintConfig": {
|
|
30
30
|
"extends": "@apolitical/eslint-config/api.config"
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
On your UI (React project):
|
|
35
|
+
```json
|
|
33
36
|
"eslintConfig": {
|
|
34
37
|
"extends": "@apolitical/eslint-config/ui.config"
|
|
35
|
-
}
|
|
36
|
-
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Link the Prettier configurations from your `package.json`:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
"prettier": "@apolitical/eslint-config/prettier.config"
|
|
37
45
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/eslint-config",
|
|
3
|
-
"version": "2.0
|
|
4
|
-
"description": "Apolitical ESLint and Prettier configurations",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Apolitical ESLint and Prettier configurations for Node projects",
|
|
5
5
|
"author": "Apolitical Group Limited <engineering@apolitical.co>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "base.config.js",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"Node Modules"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"eslint": "8.
|
|
28
|
-
"eslint-config-prettier": "8.
|
|
29
|
-
"eslint-plugin-jest": "
|
|
30
|
-
"prettier": "2.
|
|
27
|
+
"eslint": "8.31.0",
|
|
28
|
+
"eslint-config-prettier": "8.6.0",
|
|
29
|
+
"eslint-plugin-jest": "27.2.1",
|
|
30
|
+
"prettier": "2.8.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"eslint": "8.
|
|
34
|
-
"eslint-config-prettier": "8.
|
|
35
|
-
"eslint-plugin-jest": "
|
|
36
|
-
"prettier": "2.
|
|
33
|
+
"eslint": "8.31.0",
|
|
34
|
+
"eslint-config-prettier": "8.6.0",
|
|
35
|
+
"eslint-plugin-jest": "27.2.1",
|
|
36
|
+
"prettier": "2.8.2"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=16.13.0"
|