@repodog/eslint-config 1.1.4 → 1.1.6

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/index.cjs +12 -41
  2. package/jest.cjs +39 -0
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -12,46 +12,6 @@ module.exports = {
12
12
  'prettier',
13
13
  ],
14
14
  overrides: [
15
- {
16
- env: {
17
- 'jest/globals': true,
18
- },
19
- extends: ['plugin:jest/recommended', 'plugin:jest/style'],
20
- files: ['**/*.{spec,test}.*'],
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
- },
54
- },
55
15
  {
56
16
  extends: [
57
17
  'plugin:@typescript-eslint/eslint-recommended',
@@ -67,6 +27,7 @@ module.exports = {
67
27
  },
68
28
  plugins: ['@typescript-eslint', 'typescript-sort-keys'],
69
29
  rules: {
30
+ '@typescript-eslint/consistent-type-definitions': 0,
70
31
  '@typescript-eslint/consistent-type-imports': [
71
32
  2,
72
33
  {
@@ -305,7 +266,17 @@ module.exports = {
305
266
  'unicorn/prevent-abbreviations': [
306
267
  2,
307
268
  {
308
- ignore: [/.*acc.*/i, /.*arg.*/i, /.*args.*/i, /.*dev.*/i, /.*params.*/i, /.*obj.*/i, /.*prop.*/i, /.*props.*/i],
269
+ ignore: [
270
+ /.*acc.*/i,
271
+ /.*arg.*/i,
272
+ /.*args.*/i,
273
+ /.*db.*/i,
274
+ /.*dev.*/i,
275
+ /.*params.*/i,
276
+ /.*obj.*/i,
277
+ /.*prop.*/i,
278
+ /.*props.*/i,
279
+ ],
309
280
  },
310
281
  ],
311
282
  },
package/jest.cjs ADDED
@@ -0,0 +1,39 @@
1
+ module.exports = {
2
+ env: {
3
+ 'jest/globals': true,
4
+ },
5
+ extends: ['plugin:jest/recommended', 'plugin:jest/style'],
6
+ plugins: ['jest'],
7
+ rules: {
8
+ 'jest/consistent-test-it': [
9
+ 2,
10
+ {
11
+ fn: 'it',
12
+ withinDescribe: 'it',
13
+ },
14
+ ],
15
+ 'jest/max-expects': [
16
+ 2,
17
+ {
18
+ max: 1,
19
+ },
20
+ ],
21
+ 'jest/max-nested-describe': [
22
+ 2,
23
+ {
24
+ max: 5,
25
+ },
26
+ ],
27
+ 'jest/no-conditional-in-test': 2,
28
+ 'jest/no-duplicate-hooks': 2,
29
+ 'jest/no-test-return-statement': 2,
30
+ 'jest/prefer-called-with': 2,
31
+ 'jest/prefer-comparison-matcher': 2,
32
+ 'jest/prefer-each': 2,
33
+ 'jest/prefer-equality-matcher': 2,
34
+ 'jest/prefer-expect-resolves': 2,
35
+ 'jest/prefer-hooks-in-order': 2,
36
+ 'jest/prefer-hooks-on-top': 2,
37
+ 'jest/prefer-todo': 2,
38
+ },
39
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@repodog/eslint-config",
3
3
  "description": "The RepoDog ESLint config module.",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "author": "Dylan Aubrey",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/repodog",