@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 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
- A node module for our code style
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
@@ -1,4 +1,6 @@
1
- {
1
+ "use strict";
2
+
3
+ module.exports = {
2
4
  "extends": [
3
5
  "eslint:recommended",
4
6
  "plugin:prettier/recommended",
@@ -13,4 +15,4 @@
13
15
  "ecmaVersion": 2018
14
16
  },
15
17
  "plugins": ["jest"]
16
- }
18
+ };
package/package.json CHANGED
@@ -1,47 +1,41 @@
1
1
  {
2
2
  "name": "@apolitical/eslint-config",
3
- "version": "0.0.1-rc.0",
4
- "description": "Apolitical ESlint confige module",
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.0",
25
+ "eslint": "8.7.0",
32
26
  "eslint-config-prettier": "8.3.0",
33
- "eslint-plugin-jest": "24.3.6",
34
- "eslint-plugin-prettier": "3.4.0",
35
- "prettier": "2.2.1"
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.25.0",
32
+ "eslint": "8.7.0",
39
33
  "eslint-config-prettier": "8.3.0",
40
- "eslint-plugin-jest": "24.3.6",
41
- "eslint-plugin-prettier": "3.4.0",
42
- "prettier": "2.2.1"
43
- },
44
- "engines": {
45
- "node": ">=12.20.1"
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
+ }
@@ -1,7 +1,9 @@
1
- {
1
+ 'use strict';
2
+
3
+ module.exports = {
2
4
  "useTabs": false,
3
5
  "printWidth": 120,
4
6
  "tabWidth": 2,
5
7
  "singleQuote": true,
6
8
  "trailingComma": "all"
7
- }
9
+ };