@apolitical/eslint-config 0.0.1-rc.0 → 1.0.1
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 +20 -0
- package/README.md +30 -1
- package/base.config.js +4 -2
- package/package.json +22 -28
- package/prettier.config.js +4 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.1] - 2022-01-20
|
|
9
|
+
### Fixed
|
|
10
|
+
- Pipeline node version
|
|
11
|
+
|
|
12
|
+
## [1.0.0] - 2022-01-17
|
|
13
|
+
### Changed
|
|
14
|
+
- Updated Dependencies
|
|
15
|
+
- Upgraded Node.js version
|
|
16
|
+
- Revamped GitLab pipelines
|
|
17
|
+
|
|
18
|
+
## [0.0.1] - 2021-06-29
|
|
19
|
+
### Added
|
|
20
|
+
- Initial setup
|
package/README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
1
|
# Apolitical Eslint Config
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Apolitical ESLint configuration for Node.js projects (backend)
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
Requires the following to run:
|
|
8
|
+
|
|
9
|
+
- [node.js][node] 16.13.2+
|
|
10
|
+
- [yarn][yarn]
|
|
11
|
+
|
|
12
|
+
[node]: https://nodejs.org/en/download/
|
|
13
|
+
[yarn]: https://classic.yarnpkg.com/en/docs/install
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
Install with `yarn`:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
yarn add -D @apolitical/eslint-config
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
Link the ESLint configurations from your `package.json`:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
"eslintConfig": {
|
|
29
|
+
"extends": "@apolitical/eslint-config/base.config"
|
|
30
|
+
},
|
|
31
|
+
"prettier": "@apolitical/eslint-config/prettier.config",
|
|
32
|
+
```
|
package/base.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,47 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/eslint-config",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Apolitical
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Apolitical ESLint configuration for Node.js projects (backend)",
|
|
5
5
|
"author": "Apolitical Group Limited <engineering@apolitical.co>",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Anouska Hopkins <anouska.hopkins@apolitical.co>",
|
|
8
|
-
"Antonio Cordasco <antonio.cordasco@apolitical.co>",
|
|
9
|
-
"Dorothy Yau <dorothy.yau@apolitical.co>",
|
|
10
|
-
"Laura Hanna-White <laura.hanna-white@apolitical.co>",
|
|
11
|
-
"Fatimat Gbajabiamila <fatimat.gbajabiamila@apolitical.co>",
|
|
12
|
-
"Rihards Jukna <rihards.jukna@apolitical.co>",
|
|
13
|
-
"Renzo Rozza <renzo.rozza@apolitical.co>"
|
|
14
|
-
],
|
|
15
6
|
"license": "MIT",
|
|
16
7
|
"main": "base.config.js",
|
|
17
8
|
"files": [
|
|
18
9
|
"base.config.js",
|
|
19
10
|
"prettier.config.js"
|
|
20
11
|
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "exit 0",
|
|
14
|
+
"integration-test": "exit 0",
|
|
15
|
+
"unit-test": "exit 0",
|
|
16
|
+
"lint": "exit 0",
|
|
17
|
+
"format": "exit 0"
|
|
18
|
+
},
|
|
21
19
|
"keywords": [
|
|
22
20
|
"ESLint",
|
|
23
21
|
"Prettier",
|
|
24
22
|
"Node Modules"
|
|
25
23
|
],
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "git@gitlab.com:apolitical/node-modules/apolitical-eslint-config.git"
|
|
29
|
-
},
|
|
30
24
|
"dependencies": {
|
|
31
|
-
"eslint": "7.
|
|
25
|
+
"eslint": "8.7.0",
|
|
32
26
|
"eslint-config-prettier": "8.3.0",
|
|
33
|
-
"eslint-plugin-jest": "
|
|
34
|
-
"eslint-plugin-prettier": "
|
|
35
|
-
"prettier": "2.
|
|
27
|
+
"eslint-plugin-jest": "25.7.0",
|
|
28
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
29
|
+
"prettier": "2.5.1"
|
|
36
30
|
},
|
|
37
31
|
"peerDependencies": {
|
|
38
|
-
"eslint": "7.
|
|
32
|
+
"eslint": "8.7.0",
|
|
39
33
|
"eslint-config-prettier": "8.3.0",
|
|
40
|
-
"eslint-plugin-jest": "
|
|
41
|
-
"eslint-plugin-prettier": "
|
|
42
|
-
"prettier": "2.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
34
|
+
"eslint-plugin-jest": "25.7.0",
|
|
35
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
36
|
+
"prettier": "2.5.1"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=16.13.2"
|
|
40
|
+
}
|
|
41
|
+
}
|