Skip to content

Commit 64781e9

Browse files
joaltorocjtoroc
andauthored
1.0.4 Update libs (#54)
Co-authored-by: John Toro <joaltoroc@creativecode.com.co>
1 parent f816eba commit 64781e9

10 files changed

Lines changed: 521 additions & 1221 deletions

File tree

.eslintignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

Changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
# Changelog
44

5+
## v1.0.4 - Update Libraries
6+
7+
### 👾 Feature
8+
9+
- Eslint
10+
11+
### ☝🏻 Upgrade
12+
13+
- Upgrade libs
14+
515
## v1.0.3 - Update Libraries
616

717
### ☝🏻 Upgrade

eslint.config.mjs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import globals from 'globals';
22
import pluginJs from '@eslint/js';
33
import tseslint from 'typescript-eslint';
44
import pluginReact from 'eslint-plugin-react';
5+
import pluginReactHooks from 'eslint-plugin-react-hooks';
56
import pluginUnusedImports from 'eslint-plugin-unused-imports';
67
import pluginPrettier from 'eslint-plugin-prettier';
78
import configPrettier from 'eslint-config-prettier';
@@ -10,14 +11,20 @@ import configPrettier from 'eslint-config-prettier';
1011
export default [
1112
{
1213
ignores: [
13-
'**/node_modules/*',
14+
'node_modules/',
15+
'dist/',
16+
'lib/',
17+
'coverage/',
18+
'storybook-static/',
19+
'.snapshots/',
1420
'jest.config.js',
1521
'__tests__/**/*.test.tsx',
1622
'**.d.ts',
1723
'**.config.js',
1824
'**.config.ts',
19-
'lib/**',
20-
'coverage/**'
25+
'*.min.js',
26+
'*.log',
27+
'coverage.txt'
2128
]
2229
},
2330
pluginJs.configs.recommended,
@@ -40,6 +47,7 @@ export default [
4047
},
4148
plugins: {
4249
react: pluginReact,
50+
'react-hooks': pluginReactHooks,
4351
'unused-imports': pluginUnusedImports,
4452
prettier: pluginPrettier
4553
},
@@ -53,9 +61,10 @@ export default [
5361
'prettier/prettier': 'error',
5462
semi: 'off',
5563
'@typescript-eslint/semi': 'off',
56-
'react-hooks/exhaustive-deps': 'off',
5764
'react/display-name': 'off',
5865
'react/react-in-jsx-scope': 'off',
66+
'react-hooks/rules-of-hooks': 'error',
67+
'react-hooks/exhaustive-deps': 'warn',
5968
'@typescript-eslint/no-unused-vars': [
6069
'error',
6170
{

jest.setup.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
/* eslint-disable @typescript-eslint/no-unused-vars */
2-
/* eslint-disable @typescript-eslint/no-explicit-any */
31
import '@testing-library/jest-dom';
42

5-
(global as any).CSS = {
6-
supports: (_k: any, _v: any) => false
3+
(
4+
global as unknown as {
5+
CSS: { supports: (k: unknown, v: unknown) => boolean };
6+
}
7+
).CSS = {
8+
supports: (_k: unknown, _v: unknown) => false
79
};

0 commit comments

Comments
 (0)