@cluerise/tools 5.4.5 → 5.5.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.
|
@@ -5,6 +5,7 @@ import eslintPluginHtml from '@html-eslint/eslint-plugin';
|
|
|
5
5
|
import { defineConfig } from 'eslint/config';
|
|
6
6
|
import eslintPluginImport from 'eslint-plugin-import';
|
|
7
7
|
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
8
|
+
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
|
8
9
|
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
9
10
|
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
|
|
10
11
|
import eslintPluginYml from 'eslint-plugin-yml';
|
|
@@ -275,6 +276,12 @@ export default defineConfig([
|
|
|
275
276
|
'simple-import-sort/imports': 'error',
|
|
276
277
|
},
|
|
277
278
|
},
|
|
279
|
+
// React
|
|
280
|
+
{
|
|
281
|
+
...eslintPluginReactHooks.configs.flat.recommended,
|
|
282
|
+
name: 'cluerise: eslint/react-hooks',
|
|
283
|
+
files: ['**/*.{js,jsx,ts,tsx}'],
|
|
284
|
+
},
|
|
278
285
|
// Unicorn
|
|
279
286
|
{
|
|
280
287
|
...eslintPluginUnicorn.configs.recommended,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cluerise/tools",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "Tools for maintaining TypeScript projects.",
|
|
5
5
|
"author": "Branislav Holý <brano@holy.am>",
|
|
6
6
|
"repository": "github:cluerise/tools",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
35
35
|
"eslint-plugin-import": "2.32.0",
|
|
36
36
|
"eslint-plugin-prettier": "5.5.5",
|
|
37
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
37
38
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
38
39
|
"eslint-plugin-unicorn": "64.0.0",
|
|
39
40
|
"eslint-plugin-yml": "3.3.1",
|