Skip to content

Commit 8c3e9a8

Browse files
committed
chore(deps): update deps before final release
1 parent 90be930 commit 8c3e9a8

7 files changed

+751
-832
lines changed

.eslintcache

-1
This file was deleted.

.eslintignore

-11
This file was deleted.

.eslintrc.json

-35
This file was deleted.

eslint.config.js

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import tsParser from '@typescript-eslint/parser';
2+
import tsPlugin from '@typescript-eslint/eslint-plugin';
3+
import reactHooksPlugin from 'eslint-plugin-react-hooks';
4+
5+
export default [
6+
{
7+
files: ['**/*.{js,jsx,ts,tsx}'],
8+
ignores: [
9+
'dist/**',
10+
'prettier.config.cjs',
11+
'lint-staged.config.cjs',
12+
'commitlint.config.cjs'
13+
],
14+
languageOptions: {
15+
parser: tsParser,
16+
parserOptions: {
17+
ecmaFeatures: {
18+
jsx: true,
19+
modules: true
20+
},
21+
ecmaVersion: 'latest',
22+
sourceType: 'module',
23+
tsconfigRootDir: '.',
24+
project: ['./tsconfig.json']
25+
}
26+
},
27+
plugins: {
28+
'@typescript-eslint': tsPlugin,
29+
'react-hooks': reactHooksPlugin
30+
},
31+
rules: {
32+
'linebreak-style': 'off',
33+
'@typescript-eslint/no-explicit-any': 'warn',
34+
'@typescript-eslint/ban-types': [
35+
'error',
36+
{
37+
extendDefaults: true,
38+
types: {
39+
'{}': false
40+
}
41+
}
42+
],
43+
'react-hooks/rules-of-hooks': 'error',
44+
'react-hooks/exhaustive-deps': 'warn',
45+
'object-shorthand': 'error',
46+
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }]
47+
}
48+
}
49+
];

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
},
66
"description": "Enhance your React apps with advanced scroll detection using @smakss/react-scroll-direction. This powerful hook not only detects scroll direction but also provides scroll position information. Ideal for React, Remix, Next.js, and Gatsby projects, it comes with adjustable sensitivity and supports ES Modules.",
77
"devDependencies": {
8-
"@commitlint/cli": "^19.2.1",
9-
"@commitlint/config-conventional": "^19.1.0",
8+
"@commitlint/cli": "^19.3.0",
9+
"@commitlint/config-conventional": "^19.2.2",
1010
"@rollup/plugin-node-resolve": "^15.2.3",
1111
"@rollup/plugin-typescript": "^11.1.6",
12-
"@types/react": "^18.2.74",
13-
"@typescript-eslint/eslint-plugin": "^7.5.0",
14-
"@typescript-eslint/parser": "^7.5.0",
15-
"eslint": "^8.57.0",
12+
"@types/react": "^18.3.3",
13+
"@typescript-eslint/eslint-plugin": "^7.17.0",
14+
"@typescript-eslint/parser": "^7.17.0",
15+
"eslint": "^9.8.0",
1616
"eslint-config-prettier": "^9.1.0",
17-
"eslint-plugin-prettier": "^5.1.3",
18-
"eslint-plugin-react-hooks": "^4.6.0",
19-
"husky": "^9.0.11",
20-
"lint-staged": "^15.2.2",
21-
"prettier": "^3.2.5",
22-
"rollup": "^4.14.0",
23-
"typescript": "^5.4.4"
17+
"eslint-plugin-prettier": "^5.2.1",
18+
"eslint-plugin-react-hooks": "^4.6.2",
19+
"husky": "^9.1.3",
20+
"lint-staged": "^15.2.7",
21+
"prettier": "^3.3.3",
22+
"rollup": "^4.19.1",
23+
"typescript": "^5.5.4"
2424
},
2525
"engines": {
2626
"node": ">=18.0.0"
@@ -72,13 +72,13 @@
7272
"format": "prettier --write \"**/*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|gql|graphql|mdx)\"",
7373
"format:check": "prettier -l \"**/*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|gql|graphql|mdx)\"",
7474
"generate": "rollup -c",
75-
"lint": "eslint --cache --cache-location ./node_modules/.cache/.eslintcache --ext js,jsx,ts,tsx --max-warnings=0 .",
76-
"lint:fix": "eslint src/**/*.ts --fix",
75+
"lint": "npx eslint --cache --cache-location ./node_modules/.cache/.eslintcache --max-warnings=0 .",
76+
"lint:fix": "npx eslint --fix .",
7777
"setup": "yarn && husky install",
7878
"typecheck": "tsc -b .",
79-
"update:deps": "rm -rf node_modules yarn.lock && ncu -u && yarn"
79+
"update:deps": "rm -rf node_modules yarn.lock && npx npm-check-updates -u && yarn"
8080
},
8181
"type": "module",
8282
"types": "./dist/index.d.ts",
83-
"version": "4.2.0"
83+
"version": "4.2.0-beta.3"
8484
}

tsconfig.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
2-
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
32
"compilerOptions": {
4-
"target": "ESNext",
5-
"module": "esnext",
6-
"moduleResolution": "node",
7-
"resolveJsonModule": true,
83
"declaration": true,
9-
"outDir": "dist",
104
"esModuleInterop": true,
115
"forceConsistentCasingInFileNames": true,
6+
"module": "esnext",
7+
"moduleResolution": "node",
8+
"outDir": "dist",
9+
"resolveJsonModule": true,
10+
"skipLibCheck": true,
1211
"strict": true,
13-
"skipLibCheck": true
14-
}
12+
"target": "ESNext"
13+
},
14+
"exclude": ["node_modules", "dist"],
15+
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
1516
}

0 commit comments

Comments
 (0)