@clipboard-health/eslint-config 3.0.1 → 3.0.3

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +23 -21
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [3.0.3](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.2...eslint-config-3.0.3) (2023-05-25)
6
+
7
+ ## [3.0.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.1...eslint-config-3.0.2) (2023-05-24)
8
+
5
9
  ## [3.0.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.0...eslint-config-3.0.1) (2023-05-22)
6
10
 
7
11
  ## [3.0.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.14...eslint-config-3.0.0) (2023-05-20)
package/README.md CHANGED
@@ -4,40 +4,42 @@ Shared [ESLint](https://eslint.org/) configuration.
4
4
 
5
5
  ## Table of Contents
6
6
 
7
+ - [Install](#install)
7
8
  - [Usage](#usage)
8
9
  - [Local development commands](#local-development-commands)
9
10
 
10
- ## Usage
11
-
12
- To include it in your project:
11
+ ## Install
13
12
 
14
13
  ```bash
15
- npm install -D @clipboard-health/eslint-config
14
+ npm install -D @clipboard-health/eslint-config eslint-config-prettier prettier
16
15
  ```
17
16
 
18
17
  Then, modify your `.eslintrc.js` file:
19
18
 
20
19
  ```js
21
20
  module.exports = {
22
- extends: ["@clipboard-health"],
23
- parserOptions: {
24
- project: "tsconfig.lint.json",
25
- tsconfigRootDir: __dirname,
26
- },
21
+ extends: ["@clipboard-health", "prettier"],
22
+ overrides: [
23
+ {
24
+ files: ["*.ts", "*.tsx", "*.js", "*.jsx"],
25
+ parserOptions: {
26
+ project: "tsconfig.lint.json",
27
+ tsconfigRootDir: __dirname,
28
+ },
29
+ },
30
+ {
31
+ files: ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
32
+ env: {
33
+ jest: true,
34
+ },
35
+ },
36
+ ],
37
+ root: true,
27
38
  };
28
39
  ```
29
40
 
30
- ### Local development commands
31
-
32
- See [`package.json`](./package.json) `scripts` for a complete list of commands.
33
-
34
- ```bash
35
- # Build
36
- npm run build
41
+ ## Usage
37
42
 
38
- # Lint
39
- npm run lint
43
+ ### Local development commands
40
44
 
41
- # Test
42
- npm run test
43
- ```
45
+ See [`package.json`](./package.json) `scripts` for a list of commands.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/eslint-config",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "main": "./src/index.js",
5
5
  "scripts": {
6
6
  "build": "nx build eslint-config",