@faergeek/eslint-config 7.0.0-beta.1 → 7.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.
- package/eslint.config.js +2 -2
- package/index.js +38 -1
- package/package.json +5 -4
package/eslint.config.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import { node } from './index.js';
|
1
|
+
import { base, node } from './index.js';
|
2
2
|
|
3
|
-
export default node;
|
3
|
+
export default [...base, ...node];
|
package/index.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import eslint from '@eslint/js';
|
2
|
-
import
|
2
|
+
import vitestPlugin from '@vitest/eslint-plugin';
|
3
3
|
import reactPluginConfigRecommended from 'eslint-plugin-react/configs/recommended.js';
|
4
4
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
5
|
+
import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort';
|
5
6
|
import globals from 'globals';
|
6
7
|
import typescriptEslint from 'typescript-eslint';
|
7
8
|
|
@@ -119,3 +120,39 @@ export const typescript = [
|
|
119
120
|
},
|
120
121
|
},
|
121
122
|
];
|
123
|
+
|
124
|
+
export const vitest = [
|
125
|
+
vitestPlugin.configs.recommended,
|
126
|
+
{
|
127
|
+
settings: {
|
128
|
+
vitest: {
|
129
|
+
typecheck: true,
|
130
|
+
},
|
131
|
+
},
|
132
|
+
rules: {
|
133
|
+
'@vitest/consistent-test-it': [
|
134
|
+
'warn',
|
135
|
+
{ fn: 'test', withinDescribe: 'it' },
|
136
|
+
],
|
137
|
+
'@vitest/no-disabled-tests': 'warn',
|
138
|
+
'@vitest/no-focused-tests': ['warn', { fixable: false }],
|
139
|
+
'@vitest/no-standalone-expect': 'warn',
|
140
|
+
'@vitest/no-test-return-statement': 'warn',
|
141
|
+
'@vitest/prefer-comparison-matcher': 'warn',
|
142
|
+
'@vitest/prefer-equality-matcher': 'warn',
|
143
|
+
'@vitest/prefer-expect-resolves': 'warn',
|
144
|
+
'@vitest/prefer-hooks-in-order': 'warn',
|
145
|
+
'@vitest/prefer-hooks-on-top': 'warn',
|
146
|
+
'@vitest/prefer-mock-promise-shorthand': 'warn',
|
147
|
+
'@vitest/prefer-strict-equal': 'warn',
|
148
|
+
'@vitest/prefer-to-be': 'warn',
|
149
|
+
'@vitest/prefer-to-be-object': 'warn',
|
150
|
+
'@vitest/prefer-to-contain': 'warn',
|
151
|
+
'@vitest/prefer-to-have-length': 'warn',
|
152
|
+
'@vitest/prefer-todo': 'warn',
|
153
|
+
'@vitest/require-hook': 'warn',
|
154
|
+
'@vitest/require-to-throw-message': 'warn',
|
155
|
+
'@vitest/valid-title': 'off',
|
156
|
+
},
|
157
|
+
},
|
158
|
+
];
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"type": "module",
|
3
3
|
"name": "@faergeek/eslint-config",
|
4
|
-
"version": "7.0.
|
4
|
+
"version": "7.0.1",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": "git@github.com:faergeek/eslint-config.git",
|
7
7
|
"author": "Sergey Slipchenko <faergeek@gmail.com>",
|
@@ -20,11 +20,12 @@
|
|
20
20
|
"peerDependencies": {
|
21
21
|
"eslint": "^9.0.0"
|
22
22
|
},
|
23
|
-
"packageManager": "pnpm@9.
|
23
|
+
"packageManager": "pnpm@9.15.4",
|
24
24
|
"dependencies": {
|
25
25
|
"eslint-plugin-react": "^7.23.2",
|
26
|
-
"eslint-plugin-react-hooks": "^
|
26
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
27
27
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
28
|
+
"@vitest/eslint-plugin": "^1.0.1",
|
28
29
|
"globals": "^15.0.0",
|
29
30
|
"typescript-eslint": "^7.5.0"
|
30
31
|
},
|
@@ -33,6 +34,6 @@
|
|
33
34
|
"@commitlint/config-conventional": "^19.0.0",
|
34
35
|
"eslint": "^9.0.0",
|
35
36
|
"prettier": "^3.0.0",
|
36
|
-
"semantic-release": "^
|
37
|
+
"semantic-release": "^24.0.0"
|
37
38
|
}
|
38
39
|
}
|