@aarongoldenthal/eslint-config-standard 16.0.0 → 16.0.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/jest-config.js +70 -62
  2. package/package.json +1 -1
package/jest-config.js CHANGED
@@ -1,67 +1,75 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- env: {
5
- jest: true
6
- },
7
- plugins: ['jest'],
8
- rules: {
9
- 'jest/consistent-test-it': [
10
- 'error',
11
- { fn: 'it', withinDescribe: 'it' }
12
- ],
13
- 'jest/expect-expect': 'error',
14
- 'jest/max-expects': ['error', { max: 5 }],
15
- 'jest/max-nested-describe': 'error',
16
- 'jest/no-alias-methods': 'error',
17
- 'jest/no-commented-out-tests': 'error',
18
- 'jest/no-conditional-expect': 'error',
19
- 'jest/no-conditional-in-test': 'error',
20
- 'jest/no-deprecated-functions': 'error',
21
- 'jest/no-disabled-tests': 'error',
22
- 'jest/no-done-callback': 'error',
23
- 'jest/no-duplicate-hooks': 'error',
24
- 'jest/no-export': 'error',
25
- 'jest/no-focused-tests': 'error',
26
- 'jest/no-hooks': 'off',
27
- 'jest/no-identical-title': 'error',
28
- 'jest/no-interpolation-in-snapshots': 'error',
29
- 'jest/no-jasmine-globals': 'error',
30
- 'jest/no-jest-import': 'error',
31
- 'jest/no-large-snapshots': 'off',
32
- 'jest/no-mocks-import': 'error',
33
- 'jest/no-restricted-matchers': [
34
- 'error',
35
- {
36
- toBeTruthy: 'Avoid `toBeTruthy`',
37
- toBeFalsy: 'Avoid `toBeFalsy`'
4
+ overrides: [
5
+ {
6
+ files: [
7
+ '**/__tests__/**/*.[jt]s?(x)',
8
+ '**/?(*.)+(spec|test).[jt]s?(x)'
9
+ ],
10
+ env: {
11
+ jest: true
12
+ },
13
+ plugins: ['jest'],
14
+ rules: {
15
+ 'jest/consistent-test-it': [
16
+ 'error',
17
+ { fn: 'it', withinDescribe: 'it' }
18
+ ],
19
+ 'jest/expect-expect': 'error',
20
+ 'jest/max-expects': ['error', { max: 5 }],
21
+ 'jest/max-nested-describe': 'error',
22
+ 'jest/no-alias-methods': 'error',
23
+ 'jest/no-commented-out-tests': 'error',
24
+ 'jest/no-conditional-expect': 'error',
25
+ 'jest/no-conditional-in-test': 'error',
26
+ 'jest/no-deprecated-functions': 'error',
27
+ 'jest/no-disabled-tests': 'error',
28
+ 'jest/no-done-callback': 'error',
29
+ 'jest/no-duplicate-hooks': 'error',
30
+ 'jest/no-export': 'error',
31
+ 'jest/no-focused-tests': 'error',
32
+ 'jest/no-hooks': 'off',
33
+ 'jest/no-identical-title': 'error',
34
+ 'jest/no-interpolation-in-snapshots': 'error',
35
+ 'jest/no-jasmine-globals': 'error',
36
+ 'jest/no-jest-import': 'error',
37
+ 'jest/no-large-snapshots': 'off',
38
+ 'jest/no-mocks-import': 'error',
39
+ 'jest/no-restricted-matchers': [
40
+ 'error',
41
+ {
42
+ toBeTruthy: 'Avoid `toBeTruthy`',
43
+ toBeFalsy: 'Avoid `toBeFalsy`'
44
+ }
45
+ ],
46
+ 'jest/no-standalone-expect': 'error',
47
+ 'jest/no-test-prefixes': 'error',
48
+ 'jest/no-test-return-statement': 'error',
49
+ 'jest/prefer-called-with': 'error',
50
+ 'jest/prefer-comparison-matcher': 'error',
51
+ 'jest/prefer-equality-matcher': 'error',
52
+ 'jest/prefer-expect-assertions': 'error',
53
+ 'jest/prefer-expect-resolves': 'error',
54
+ 'jest/prefer-hooks-in-order': 'error',
55
+ 'jest/prefer-hooks-on-top': 'error',
56
+ 'jest/prefer-lowercase-title': 'error',
57
+ 'jest/prefer-mock-promise-shorthand': 'error',
58
+ 'jest/prefer-snapshot-hint': 'error',
59
+ 'jest/prefer-spy-on': 'error',
60
+ 'jest/prefer-strict-equal': 'error',
61
+ 'jest/prefer-to-be': 'error',
62
+ 'jest/prefer-to-contain': 'error',
63
+ 'jest/prefer-to-have-length': 'error',
64
+ 'jest/prefer-todo': 'error',
65
+ 'jest/require-hook': 'error',
66
+ 'jest/require-to-throw-message': 'error',
67
+ 'jest/require-top-level-describe': 'error',
68
+ 'jest/valid-describe-callback': 'error',
69
+ 'jest/valid-expect': 'error',
70
+ 'jest/valid-expect-in-promise': 'error',
71
+ 'jest/valid-title': 'error'
38
72
  }
39
- ],
40
- 'jest/no-standalone-expect': 'error',
41
- 'jest/no-test-prefixes': 'error',
42
- 'jest/no-test-return-statement': 'error',
43
- 'jest/prefer-called-with': 'error',
44
- 'jest/prefer-comparison-matcher': 'error',
45
- 'jest/prefer-equality-matcher': 'error',
46
- 'jest/prefer-expect-assertions': 'error',
47
- 'jest/prefer-expect-resolves': 'error',
48
- 'jest/prefer-hooks-in-order': 'error',
49
- 'jest/prefer-hooks-on-top': 'error',
50
- 'jest/prefer-lowercase-title': 'error',
51
- 'jest/prefer-mock-promise-shorthand': 'error',
52
- 'jest/prefer-snapshot-hint': 'error',
53
- 'jest/prefer-spy-on': 'error',
54
- 'jest/prefer-strict-equal': 'error',
55
- 'jest/prefer-to-be': 'error',
56
- 'jest/prefer-to-contain': 'error',
57
- 'jest/prefer-to-have-length': 'error',
58
- 'jest/prefer-todo': 'error',
59
- 'jest/require-hook': 'error',
60
- 'jest/require-to-throw-message': 'error',
61
- 'jest/require-top-level-describe': 'error',
62
- 'jest/valid-describe-callback': 'error',
63
- 'jest/valid-expect': 'error',
64
- 'jest/valid-expect-in-promise': 'error',
65
- 'jest/valid-title': 'error'
66
- }
73
+ }
74
+ ]
67
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/eslint-config-standard",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "description": "Standard ESLint configuration settings",
5
5
  "main": "index.js",
6
6
  "scripts": {