@repodog/eslint-config 1.0.2-alpha.0 → 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.
Files changed (2) hide show
  1. package/index.cjs +39 -1
  2. package/package.json +22 -24
package/index.cjs CHANGED
@@ -16,9 +16,41 @@ module.exports = {
16
16
  env: {
17
17
  'jest/globals': true,
18
18
  },
19
- extends: ['plugin:jest/recommended'],
19
+ extends: ['plugin:jest/recommended', 'plugin:jest/style'],
20
20
  files: ['**/*.{spec,test}.*'],
21
21
  plugins: ['jest'],
22
+ rules: {
23
+ 'jest/consistent-test-it': [
24
+ 2,
25
+ {
26
+ fn: 'it',
27
+ withinDescribe: 'it',
28
+ },
29
+ ],
30
+ 'jest/max-expects': [
31
+ 2,
32
+ {
33
+ max: 1,
34
+ },
35
+ ],
36
+ 'jest/max-nested-describe': [
37
+ 2,
38
+ {
39
+ max: 5,
40
+ },
41
+ ],
42
+ 'jest/no-conditional-in-test': 2,
43
+ 'jest/no-duplicate-hooks': 2,
44
+ 'jest/no-test-return-statement': 2,
45
+ 'jest/prefer-called-with': 2,
46
+ 'jest/prefer-comparison-matcher': 2,
47
+ 'jest/prefer-each': 2,
48
+ 'jest/prefer-equality-matcher': 2,
49
+ 'jest/prefer-expect-resolves': 2,
50
+ 'jest/prefer-hooks-in-order': 2,
51
+ 'jest/prefer-hooks-on-top': 2,
52
+ 'jest/prefer-todo': 2,
53
+ },
22
54
  },
23
55
  {
24
56
  extends: [
@@ -273,6 +305,12 @@ module.exports = {
273
305
  },
274
306
  },
275
307
  ],
308
+ 'unicorn/prevent-abbreviations': [
309
+ 2,
310
+ {
311
+ ignore: [/.*dev.*/i],
312
+ },
313
+ ],
276
314
  },
277
315
  settings: {
278
316
  react: {
package/package.json CHANGED
@@ -1,39 +1,37 @@
1
1
  {
2
2
  "name": "@repodog/eslint-config",
3
- "version": "1.0.2-alpha.0",
4
3
  "description": "The RepoDog ESLint config module.",
4
+ "version": "1.1.1",
5
+ "author": "Dylan Aubrey",
6
+ "license": "MIT",
5
7
  "homepage": "https://github.com/badbatch/repodog",
6
- "bugs": {
7
- "url": "https://github.com/badbatch/repodog/issues"
8
- },
9
8
  "repository": {
10
9
  "directory": "configs/eslint-config",
11
10
  "type": "git",
12
11
  "url": "https://github.com/badbatch/repodog/configs/eslint-config"
13
12
  },
13
+ "bugs": "https://github.com/badbatch/repodog/issues",
14
+ "main": "index.cjs",
14
15
  "publishConfig": {
15
16
  "access": "public"
16
17
  },
17
- "main": "index.cjs",
18
- "license": "MIT",
19
- "author": "Dylan Aubrey",
20
18
  "peerDependencies": {
21
- "@babel/eslint-parser": "< 8",
22
- "@typescript-eslint/eslint-plugin": "< 6",
23
- "@typescript-eslint/parser": "< 6",
24
- "eslint": "< 9",
25
- "eslint-config-prettier": "< 9",
26
- "eslint-import-resolver-typescript": "< 4",
27
- "eslint-plugin-import": "< 3",
28
- "eslint-plugin-jest": "< 28",
29
- "eslint-plugin-jsx-a11y": "< 7",
30
- "eslint-plugin-prettier": "< 5",
31
- "eslint-plugin-react": "< 8",
32
- "eslint-plugin-react-hooks": "< 5",
33
- "eslint-plugin-sort-class-members": "< 2",
34
- "eslint-plugin-sort-destructure-keys": "< 2",
35
- "eslint-plugin-sort-keys-fix": "< 2",
36
- "eslint-plugin-typescript-sort-keys": "< 3",
37
- "eslint-plugin-unicorn": "< 46"
19
+ "@babel/eslint-parser": "<8",
20
+ "@typescript-eslint/eslint-plugin": "<6",
21
+ "@typescript-eslint/parser": "<6",
22
+ "eslint": "<9",
23
+ "eslint-config-prettier": "<9",
24
+ "eslint-import-resolver-typescript": "<4",
25
+ "eslint-plugin-import": "<3",
26
+ "eslint-plugin-jest": "<28",
27
+ "eslint-plugin-jsx-a11y": "<7",
28
+ "eslint-plugin-prettier": "<5",
29
+ "eslint-plugin-react": "<8",
30
+ "eslint-plugin-react-hooks": "<5",
31
+ "eslint-plugin-sort-class-members": "<2",
32
+ "eslint-plugin-sort-destructure-keys": "<2",
33
+ "eslint-plugin-sort-keys-fix": "<2",
34
+ "eslint-plugin-typescript-sort-keys": "<3",
35
+ "eslint-plugin-unicorn": "<46"
38
36
  }
39
37
  }