Skip to content

Commit 064667b

Browse files
committed
upgrade all dependencies
1 parent c94be84 commit 064667b

File tree

11 files changed

+1563
-2679
lines changed

11 files changed

+1563
-2679
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.19.5
1+
24.11.0

packages/eslint-config-algolia/flat/vue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const globals = require('globals');
1111

1212
const rules = require('../rules/vue');
1313

14-
module.exports.flat = [
14+
module.exports = [
1515
...vuePlugin.configs['flat/recommended'],
1616
rules,
1717
{

packages/eslint-config-algolia/package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,24 @@
2828
"@babel/eslint-parser": "7.28.5",
2929
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
3030
"@eslint/js": "9.39.0",
31-
"@stylistic/eslint-plugin": "2.13.0",
31+
"@stylistic/eslint-plugin": "5.5.0",
32+
"@typescript-eslint/eslint-plugin": "8.46.2",
33+
"@typescript-eslint/parser": "8.46.2",
3234
"eslint": "9.39.0",
33-
"eslint-config-prettier": "9.1.2",
35+
"eslint-config-prettier": "10.1.8",
3436
"eslint-plugin-import": "2.32.0",
35-
"eslint-plugin-jest": "28.14.0",
36-
"eslint-plugin-jsdoc": "50.8.0",
37+
"eslint-plugin-jest": "29.0.1",
38+
"eslint-plugin-jsdoc": "61.1.11",
3739
"eslint-plugin-jsx-a11y": "6.10.2",
3840
"eslint-plugin-prettier": "5.5.4",
3941
"eslint-plugin-react": "7.37.5",
40-
"eslint-plugin-react-hooks": "5.2.0",
41-
"globals": "15.15.0",
42-
"prettier": "3.6.2"
42+
"eslint-plugin-react-hooks": "7.0.1",
43+
"globals": "16.5.0",
44+
"prettier": "3.6.2",
45+
"typescript": "5.6.3"
4346
},
4447
"peerDependencies": {
45-
"@stylistic/eslint-plugin": "^2.6.4",
48+
"@stylistic/eslint-plugin": "^5.0.0",
4649
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0 || ^8.0.0 || ^9.0.0",
4750
"prettier": "^3.0.0"
4851
}

packages/eslint-config-algolia/rules/base.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ module.exports = {
171171
'@stylistic/comma-style': ['error'],
172172
'@stylistic/computed-property-spacing': ['error'],
173173
'@stylistic/eol-last': ['error'],
174-
'@stylistic/func-call-spacing': ['error'],
175-
'@stylistic/func-names': ['off'],
176-
'@stylistic/func-style': ['off'],
174+
'@stylistic/function-call-spacing': ['error'],
177175
'@stylistic/id-blacklist': ['off'],
178176
'@stylistic/id-length': ['off'],
179177
'@stylistic/id-match': ['off'],

packages/eslint-config-algolia/rules/typescript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ module.exports = {
144144
},
145145
],
146146
'@stylistic/comma-spacing': ['error'],
147-
'@stylistic/func-call-spacing': ['error'],
147+
'@stylistic/function-call-spacing': ['error'],
148148
'@stylistic/indent': 'off', // handled by prettier
149149
'@stylistic/max-len': 'off', // handled by prettier
150150
'@typescript-eslint/no-confusing-non-null-assertion': ['error'],
@@ -163,7 +163,7 @@ module.exports = {
163163
'@typescript-eslint/prefer-ts-expect-error': ['error'],
164164
'@typescript-eslint/sort-type-constituents': ['error'],
165165
'@stylistic/type-annotation-spacing': ['error'],
166-
'@typescript-eslint/unified-signatures': ['error'],
166+
'@typescript-eslint/unified-signatures': ['off'],
167167
'@typescript-eslint/no-redeclare': ['error'],
168168
'@typescript-eslint/no-shadow': ['error'],
169169

packages/test/package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@
1010
"author": "Algolia <support@algolia.com> (https://github.com/algolia/)",
1111
"license": "MIT",
1212
"devDependencies": {
13-
"@types/react": "18.3.5",
14-
"@typescript-eslint/eslint-plugin": "8.3.0",
15-
"@typescript-eslint/parser": "8.3.0",
16-
"eslint": "8.57.0",
13+
"@types/react": "19.2.2",
14+
"eslint": "9.39.0",
1715
"eslint-config-algolia": "file:../eslint-config-algolia",
18-
"jest": "29.7.0",
19-
"prettier": "3.3.3",
20-
"prop-types": "15.8.1",
21-
"react": "18.3.1",
22-
"react-addons-shallow-compare": "15.6.3",
23-
"typescript": "5.5.4"
16+
"jest": "30.2.0",
17+
"react": "19.2.0",
18+
"react-addons-shallow-compare": "^15.6.3"
2419
}
2520
}

packages/test/src/Component.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import PropTypes from 'prop-types';
21
import React, { useEffect } from 'react';
32

43
export const Component = ({ value }) => {
@@ -15,7 +14,3 @@ export const Component = ({ value }) => {
1514
</div>
1615
);
1716
};
18-
19-
Component.propTypes = {
20-
value: PropTypes.string,
21-
};

packages/test/src/Provider.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
import PropTypes from 'prop-types';
21
import { Component, Children } from 'react';
32

43
import createStore from './createStore';
5-
import storeShape from './storeShape';
64

75
class Provider extends Component {
8-
static propTypes = {
9-
helper: PropTypes.object.isRequired,
10-
children: PropTypes.node.isRequired,
11-
};
12-
136
static childContextTypes = {
147
algoliaStore: storeShape.isRequired,
158
};

packages/test/src/connect.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import React, { Component } from 'react';
22
import shallowCompare from 'react-addons-shallow-compare';
33

4-
import storeShape from './storeShape';
5-
64
const getDisplayName = (WrappedComponent) =>
75
WrappedComponent.displayName || WrappedComponent.name || 'UnknownComponent';
86

97
export default function connect(mapStateToProps) {
108
return (WrappedComponent) =>
119
class Connect extends Component {
12-
static contextTypes = { algoliaStore: storeShape.isRequired };
1310
static displayName = `AlgoliaSearchHelperConnect(${getDisplayName(WrappedComponent)})`;
1411

1512
constructor(props, context) {

packages/test/src/storeShape.js

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

0 commit comments

Comments
 (0)