@foray1010/eslint-config 6.3.1 → 6.4.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.4.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@6.3.1...@foray1010/eslint-config@6.4.0) (2022-04-25)
7
+
8
+ ### Features
9
+
10
+ - **eslint-config:** add more rules for jest ([9e7b466](https://github.com/foray1010/common-presets/commit/9e7b466c332d90d56e5d41d4a006147148c3ae32))
11
+
6
12
  ### [6.3.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@6.3.0...@foray1010/eslint-config@6.3.1) (2022-04-25)
7
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@foray1010/eslint-config",
4
- "version": "6.3.1",
4
+ "version": "6.4.0",
5
5
  "homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
6
6
  "bugs": "https://github.com/foray1010/common-presets/issues",
7
7
  "repository": {
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "07b70cfc8963abd0d3e1430c6a14281705444f87"
51
+ "gitHead": "d6a5e814c1bccdcdd2a8a6c5de9036ca14cac6d4"
52
52
  }
package/presets/base.js CHANGED
@@ -124,8 +124,12 @@ module.exports = {
124
124
  },
125
125
  {
126
126
  files: testFileGlobs,
127
- extends: ['plugin:jest/recommended'],
127
+ extends: ['plugin:jest/recommended', 'plugin:jest/style'],
128
128
  plugins: ['eslint-plugin-jest'],
129
+ rules: {
130
+ // make sure lifecycle hooks on the top for readability
131
+ 'jest/prefer-hooks-on-top': 'error',
132
+ },
129
133
  },
130
134
  // typescript plugins are depended on `typescript` package
131
135
  ...(hasDep('typescript')