@kembec/eslint-config 1.0.3 → 1.1.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/Readme.md CHANGED
@@ -21,6 +21,8 @@ Modify your ESLint configuration file to use this package. The setup varies slig
21
21
  ```json
22
22
  {
23
23
  "extends": ["@kembec/eslint-config"]
24
+ // Include Jest
25
+ "extends": ["@kembec/eslint-config/jest"]
24
26
  }
25
27
  ```
26
28
 
@@ -29,6 +31,8 @@ Modify your ESLint configuration file to use this package. The setup varies slig
29
31
  ```json
30
32
  {
31
33
  "extends": ["@kembec/eslint-config/typescript"],
34
+ // Include Jest
35
+ "extends": ["@kembec/eslint-config/typescript/jest"]
32
36
  "overrides": [
33
37
  {
34
38
  "files": ["*.ts", "*.tsx"],
@@ -69,4 +73,4 @@ Use `npm run lint` to identify issues or `npm run lint:fix` to fix many issues a
69
73
 
70
74
  ## License
71
75
 
72
- `Sunat Utils` is licensed under the [AGPL-3.0](https://opensource.org/licenses/AGPL-3.0). Its use, modification, and distribution are allowed under the terms of this license.
76
+ This project is licensed under the [AGPL-3.0](https://opensource.org/licenses/AGPL-3.0). Its use, modification, and distribution are allowed under the terms of this license.
package/jest/index.js ADDED
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ extends: ["../index.js"],
3
+ overrides: [
4
+ {
5
+ files: ["*.test.js"],
6
+ plugins: ["jest"],
7
+ extends: ["plugin:jest/recommended"],
8
+ rules: {},
9
+ },
10
+ ],
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kembec/eslint-config",
3
- "version": "1.0.3",
3
+ "version": "1.1.1",
4
4
  "description": "My personal linter configuration for JavaScript/TypeScript",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,6 +17,7 @@
17
17
  "eslint",
18
18
  "lint",
19
19
  "prettier",
20
+ "jest",
20
21
  "kembec"
21
22
  ],
22
23
  "author": "Kembec.com",
package/rules/plugins.js CHANGED
@@ -20,12 +20,4 @@ module.exports = {
20
20
  },
21
21
  ],
22
22
  },
23
- overrides: [
24
- {
25
- files: ["*.test.ts", "*.test.js"],
26
- plugins: ["jest"],
27
- extends: ["plugin:jest/recommended"],
28
- rules: {},
29
- },
30
- ],
31
23
  };
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ extends: ["../index.js"],
3
+ overrides: [
4
+ {
5
+ files: ["*.test.ts"],
6
+ plugins: ["jest"],
7
+ extends: ["plugin:jest/recommended"],
8
+ rules: {},
9
+ },
10
+ ],
11
+ };