@html-validate/eslint-config-jest 4.4.9
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/index.js +27 -0
- package/package.json +37 -0
package/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
jest: true,
|
|
4
|
+
},
|
|
5
|
+
|
|
6
|
+
plugins: ["jest"],
|
|
7
|
+
|
|
8
|
+
extends: ["plugin:jest/recommended", "plugin:jest/style"],
|
|
9
|
+
|
|
10
|
+
rules: {
|
|
11
|
+
"jest/consistent-test-it": ["error", { fn: "it" }],
|
|
12
|
+
"jest/no-disabled-tests": "warn",
|
|
13
|
+
"jest/no-duplicate-hooks": "error",
|
|
14
|
+
"jest/no-expect-resolves": "error",
|
|
15
|
+
"jest/no-focused-tests": "warn",
|
|
16
|
+
"jest/no-test-prefixes": "warn",
|
|
17
|
+
"jest/prefer-expect-assertions": "error",
|
|
18
|
+
"jest/prefer-hooks-on-top": "error",
|
|
19
|
+
"jest/prefer-todo": "error",
|
|
20
|
+
|
|
21
|
+
/* common in testcases, kind of useless */
|
|
22
|
+
"sonarjs/no-duplicate-string": "off",
|
|
23
|
+
|
|
24
|
+
/* jest uses @jest-* tags for per-file configuration */
|
|
25
|
+
"tsdoc/syntax": "off",
|
|
26
|
+
},
|
|
27
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@html-validate/eslint-config-jest",
|
|
3
|
+
"version": "4.4.9",
|
|
4
|
+
"description": "Eslint sharable config used by the various HTML-validate packages",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"eslint",
|
|
7
|
+
"jest"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://gitlab.com/html-validate/eslint-config#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://gitlab.com/html-validate/eslint-config/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"directory": "packages/eslint-config-jest",
|
|
16
|
+
"url": "https://gitlab.com/html-validate/eslint-config.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "David Sveningsson <ext@sidvind.com>",
|
|
20
|
+
"main": "index.js",
|
|
21
|
+
"files": [
|
|
22
|
+
"*.js"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"eslint-plugin-jest": "^24.0.0"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"eslint": ">= 7"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">= 10.0"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"gitHead": "9c735c3fbf0aae3dc9318f8a8fba22f8ab18d941"
|
|
37
|
+
}
|