@faergeek/eslint-config 6.0.23 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +4 -3
  2. package/vitest.js +24 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faergeek/eslint-config",
3
- "version": "6.0.23",
3
+ "version": "6.1.0",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:faergeek/eslint-config.git",
6
6
  "author": "Sergey Slipchenko <faergeek@gmail.com>",
@@ -17,14 +17,15 @@
17
17
  "peerDependencies": {
18
18
  "eslint": "^8.56.0"
19
19
  },
20
- "packageManager": "pnpm@9.1.4",
20
+ "packageManager": "pnpm@9.3.0",
21
21
  "dependencies": {
22
22
  "@typescript-eslint/eslint-plugin": "^7.0.1",
23
23
  "@typescript-eslint/parser": "^7.0.1",
24
24
  "eslint-config-prettier": "^9.0.0",
25
25
  "eslint-plugin-react": "^7.23.2",
26
26
  "eslint-plugin-react-hooks": "^4.2.0",
27
- "eslint-plugin-simple-import-sort": "^12.0.0"
27
+ "eslint-plugin-simple-import-sort": "^12.0.0",
28
+ "eslint-plugin-vitest": "^0.5.4"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@commitlint/cli": "^19.0.0",
package/vitest.js ADDED
@@ -0,0 +1,24 @@
1
+ module.exports = {
2
+ extends: 'plugin:vitest/legacy-recommended',
3
+ rules: {
4
+ 'vitest/consistent-test-it': ['warn', { fn: 'test', withinDescribe: 'it' }],
5
+ 'vitest/no-disabled-tests': 'warn',
6
+ 'vitest/no-focused-tests': ['warn', { fixable: false }],
7
+ 'vitest/no-standalone-expect': 'warn',
8
+ 'vitest/no-test-return-statement': 'warn',
9
+ 'vitest/prefer-comparison-matcher': 'warn',
10
+ 'vitest/prefer-equality-matcher': 'warn',
11
+ 'vitest/prefer-expect-resolves': 'warn',
12
+ 'vitest/prefer-hooks-in-order': 'warn',
13
+ 'vitest/prefer-hooks-on-top': 'warn',
14
+ 'vitest/prefer-mock-promise-shorthand': 'warn',
15
+ 'vitest/prefer-strict-equal': 'warn',
16
+ 'vitest/prefer-to-be': 'warn',
17
+ 'vitest/prefer-to-be-object': 'warn',
18
+ 'vitest/prefer-to-contain': 'warn',
19
+ 'vitest/prefer-to-have-length': 'warn',
20
+ 'vitest/prefer-todo': 'warn',
21
+ 'vitest/require-hook': 'warn',
22
+ 'vitest/require-to-throw-message': 'warn',
23
+ },
24
+ };