@clipboard-health/eslint-config 3.0.2 → 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.
- package/CHANGELOG.md +2 -0
- package/README.md +19 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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
|
+
|
|
5
7
|
## [3.0.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.1...eslint-config-3.0.2) (2023-05-24)
|
|
6
8
|
|
|
7
9
|
## [3.0.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.0...eslint-config-3.0.1) (2023-05-22)
|
package/README.md
CHANGED
|
@@ -11,18 +11,30 @@ Shared [ESLint](https://eslint.org/) configuration.
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install -D @clipboard-health/eslint-config
|
|
14
|
+
npm install -D @clipboard-health/eslint-config eslint-config-prettier prettier
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Then, modify your `.eslintrc.js` file:
|
|
18
18
|
|
|
19
19
|
```js
|
|
20
20
|
module.exports = {
|
|
21
|
-
extends: ["@clipboard-health"],
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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,
|
|
26
38
|
};
|
|
27
39
|
```
|
|
28
40
|
|
|
@@ -30,15 +42,4 @@ module.exports = {
|
|
|
30
42
|
|
|
31
43
|
### Local development commands
|
|
32
44
|
|
|
33
|
-
See [`package.json`](./package.json) `scripts` for a
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# Build
|
|
37
|
-
npm run build
|
|
38
|
-
|
|
39
|
-
# Lint
|
|
40
|
-
npm run lint
|
|
41
|
-
|
|
42
|
-
# Test
|
|
43
|
-
npm run test
|
|
44
|
-
```
|
|
45
|
+
See [`package.json`](./package.json) `scripts` for a list of commands.
|