react-tooltip 6.0.0-beta.1179.rc.9 → 6.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.
@@ -0,0 +1,155 @@
1
+ import tsParser from '@typescript-eslint/parser'
2
+ import tsPlugin from '@typescript-eslint/eslint-plugin'
3
+ import importPlugin from 'eslint-plugin-import'
4
+ import reactPlugin from 'eslint-plugin-react'
5
+ import reactHooksPlugin from 'eslint-plugin-react-hooks'
6
+ import jsxA11yPlugin from 'eslint-plugin-jsx-a11y'
7
+ import prettierPlugin from 'eslint-plugin-prettier'
8
+
9
+ const browserGlobals = {
10
+ window: 'readonly',
11
+ document: 'readonly',
12
+ navigator: 'readonly',
13
+ CustomEvent: 'readonly',
14
+ MutationObserver: 'readonly',
15
+ ResizeObserver: 'readonly',
16
+ HTMLElement: 'readonly',
17
+ Element: 'readonly',
18
+ Node: 'readonly',
19
+ Event: 'readonly',
20
+ MouseEvent: 'readonly',
21
+ FocusEvent: 'readonly',
22
+ KeyboardEvent: 'readonly',
23
+ getComputedStyle: 'readonly',
24
+ setTimeout: 'readonly',
25
+ clearTimeout: 'readonly',
26
+ console: 'readonly',
27
+ }
28
+
29
+ const jestGlobals = {
30
+ describe: 'readonly',
31
+ test: 'readonly',
32
+ it: 'readonly',
33
+ expect: 'readonly',
34
+ jest: 'readonly',
35
+ beforeEach: 'readonly',
36
+ afterEach: 'readonly',
37
+ beforeAll: 'readonly',
38
+ afterAll: 'readonly',
39
+ }
40
+
41
+ export default [
42
+ {
43
+ ignores: ['dist/**', 'build/**', 'docs/build/**', 'node_modules/**'],
44
+ },
45
+ {
46
+ files: ['src/**/*.{js,jsx,ts,tsx}'],
47
+ languageOptions: {
48
+ parser: tsParser,
49
+ ecmaVersion: 'latest',
50
+ sourceType: 'module',
51
+ parserOptions: {
52
+ ecmaFeatures: {
53
+ jsx: true,
54
+ },
55
+ },
56
+ globals: {
57
+ ...browserGlobals,
58
+ ...jestGlobals,
59
+ },
60
+ },
61
+ plugins: {
62
+ '@typescript-eslint': tsPlugin,
63
+ import: importPlugin,
64
+ react: reactPlugin,
65
+ 'react-hooks': reactHooksPlugin,
66
+ 'jsx-a11y': jsxA11yPlugin,
67
+ prettier: prettierPlugin,
68
+ },
69
+ settings: {
70
+ react: {
71
+ version: 'detect',
72
+ },
73
+ 'import/resolver': {
74
+ node: {
75
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
76
+ moduleDirectory: ['node_modules', 'src/'],
77
+ },
78
+ },
79
+ },
80
+ rules: {
81
+ 'operator-linebreak': [
82
+ 2,
83
+ 'after',
84
+ {
85
+ overrides: {
86
+ '?': 'before',
87
+ ':': 'before',
88
+ },
89
+ },
90
+ ],
91
+ 'object-curly-newline': 0,
92
+ 'implicit-arrow-linebreak': 0,
93
+ semi: ['error', 'never'],
94
+ quotes: [
95
+ 'error',
96
+ 'single',
97
+ {
98
+ allowTemplateLiterals: true,
99
+ avoidEscape: true,
100
+ },
101
+ ],
102
+ 'max-len': [
103
+ 'error',
104
+ {
105
+ code: 100,
106
+ ignoreStrings: true,
107
+ ignoreTemplateLiterals: true,
108
+ },
109
+ ],
110
+ 'import/no-extraneous-dependencies': [
111
+ 'error',
112
+ {
113
+ devDependencies: true,
114
+ },
115
+ ],
116
+ 'import/no-unresolved': [
117
+ 'error',
118
+ {
119
+ commonjs: true,
120
+ amd: true,
121
+ },
122
+ ],
123
+ 'react/jsx-filename-extension': 'off',
124
+ 'react/prop-types': 'off',
125
+ 'react/button-has-type': 0,
126
+ 'jsx-a11y/href-no-hash': 'off',
127
+ 'jsx-a11y/label-has-for': [
128
+ 'error',
129
+ {
130
+ allowChildren: true,
131
+ },
132
+ ],
133
+ 'jsx-a11y/anchor-is-valid': [
134
+ 'error',
135
+ {
136
+ specialLink: ['to'],
137
+ },
138
+ ],
139
+ 'react/jsx-props-no-spreading': 0,
140
+ 'react/react-in-jsx-scope': 'off',
141
+ 'prettier/prettier': 'error',
142
+ 'import/extensions': 0,
143
+ '@typescript-eslint/no-unused-vars': 'error',
144
+ '@typescript-eslint/no-explicit-any': 'warn',
145
+ 'import/prefer-default-export': 'off',
146
+ 'react/function-component-definition': 'off',
147
+ '@typescript-eslint/ban-ts-comment': 'off',
148
+ 'dot-notation': 'off',
149
+ 'no-shadow': 'off',
150
+ '@typescript-eslint/no-shadow': 'error',
151
+ 'react-hooks/rules-of-hooks': 'error',
152
+ 'react-hooks/exhaustive-deps': 'warn',
153
+ },
154
+ },
155
+ ]
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "react-tooltip",
3
- "version": "6.0.0-beta.1179.rc.9",
3
+ "version": "6.0.1",
4
4
  "description": "react tooltip component",
5
5
  "scripts": {
6
6
  "dev-rollup": "node ./prebuild.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.mjs --watch",
7
7
  "build": "node ./prebuild.js --env=production && npm run types && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.mjs",
8
8
  "dev": "node ./prebuild.js --env=development && node ./esbuild.config.dev.mjs",
9
9
  "build-esbuild": "node ./prebuild.js --env=production && node ./esbuild.config.prod.mjs",
10
- "benchmark:scaling": "yarn build-esbuild && node ./benchmarks/run-benchmark.mjs --counts 50,100,500,2000,5000,10000,25000 --timeoutMs 2000 --warmups 1 --repeats 5",
11
- "benchmark:scaling:smoke": "yarn build-esbuild && node ./benchmarks/run-benchmark.mjs --counts 50,100 --timeoutMs 1000 --warmups 0 --repeats 2",
12
- "benchmark:scaling:full": "node ./benchmarks/run-scaling-series.mjs --counts 50,100,500,2000,5000,10000,25000 --timeoutMs 2000 --warmups 1 --repeats 5",
10
+ "benchmark:scaling": "yarn build && node ./benchmarks/run-benchmark.mjs --counts 50,100,500,2000,5000,10000 --timeoutMs 2000 --warmups 1 --repeats 5",
11
+ "benchmark:scaling:smoke": "yarn build && node ./benchmarks/run-benchmark.mjs --counts 50,100 --timeoutMs 1000 --warmups 0 --repeats 2",
12
+ "benchmark:scaling:full": "node ./benchmarks/run-scaling-series.mjs --counts 50,100,500,2000,5000,10000 --timeoutMs 2000 --warmups 1 --repeats 5",
13
13
  "benchmark:scaling:aggregate": "node ./benchmarks/aggregate-benchmarks.mjs --latest 3",
14
14
  "benchmark:scaling:aggregate:all": "node ./benchmarks/aggregate-benchmarks.mjs --all",
15
15
  "ci:react-version": "node ./scripts/configure-react-version.mjs",
@@ -58,66 +58,67 @@
58
58
  },
59
59
  "homepage": "https://github.com/ReactTooltip/react-tooltip#readme",
60
60
  "devDependencies": {
61
- "@rollup/plugin-commonjs": "26.0.1",
62
- "@rollup/plugin-node-resolve": "15.2.3",
63
- "@rollup/plugin-replace": "5.0.7",
64
- "@rollup/plugin-typescript": "11.1.6",
61
+ "@rollup/plugin-commonjs": "29.0.2",
62
+ "@rollup/plugin-node-resolve": "16.0.3",
63
+ "@rollup/plugin-replace": "6.0.3",
64
+ "@rollup/plugin-typescript": "12.3.0",
65
65
  "@testing-library/dom": "^10.4.1",
66
- "@testing-library/jest-dom": "5.16.5",
67
- "@testing-library/react": "^16.3.0",
68
- "@testing-library/user-event": "14.5.2",
69
- "@types/css": "0.0.37",
66
+ "@testing-library/jest-dom": "6.9.1",
67
+ "@testing-library/react": "16.3.0",
68
+ "@testing-library/user-event": "14.6.1",
69
+ "@types/css": "0.0.38",
70
70
  "@types/css-modules": "1.0.5",
71
- "@types/jest": "29.5.12",
72
- "@types/minimatch": "^5.1.2",
71
+ "@types/jest": "30.0.0",
72
+ "@types/minimatch": "6.0.0",
73
73
  "@types/node": "25.6.0",
74
74
  "@types/react": "^19.0.0",
75
75
  "@types/react-dom": "^19.0.0",
76
- "@types/react-test-renderer": "18.3.0",
77
- "@typescript-eslint/eslint-plugin": "7.16.1",
78
- "@typescript-eslint/parser": "7.16.1",
76
+ "@types/react-test-renderer": "19.1.0",
77
+ "@typescript-eslint/eslint-plugin": "8.58.2",
78
+ "@typescript-eslint/parser": "8.58.2",
79
79
  "bundlesize": "0.18.2",
80
- "css-loader": "6.10.0",
81
- "esbuild": "0.23.0",
82
- "esbuild-css-modules-plugin": "2.7.1",
83
- "eslint": "8.57.0",
80
+ "css-loader": "7.1.4",
81
+ "esbuild": "0.28.0",
82
+ "esbuild-css-modules-plugin": "3.1.5",
83
+ "eslint": "10.2.0",
84
84
  "eslint-config-airbnb": "19.0.4",
85
- "eslint-config-prettier": "9.1.0",
86
- "eslint-plugin-import": "2.29.1",
87
- "eslint-plugin-jsx-a11y": "6.9.0",
88
- "eslint-plugin-prettier": "5.2.1",
89
- "eslint-plugin-react": "7.35.0",
90
- "eslint-plugin-react-hooks": "4.6.2",
91
- "husky": "9.1.6",
92
- "jest": "29.7.0",
93
- "jest-environment-jsdom": "29.7.0",
94
- "jest-transform-css": "6.0.1",
95
- "lint-staged": "15.2.7",
85
+ "eslint-config-prettier": "10.1.8",
86
+ "eslint-plugin-import": "2.32.0",
87
+ "eslint-plugin-jsx-a11y": "6.10.2",
88
+ "eslint-plugin-prettier": "5.5.5",
89
+ "eslint-plugin-react": "7.37.5",
90
+ "eslint-plugin-react-hooks": "7.0.1",
91
+ "husky": "9.1.7",
92
+ "jest": "30.3.0",
93
+ "jest-environment-jsdom": "30.3.0",
94
+ "jest-transform-css": "6.0.3",
95
+ "lint-staged": "16.4.0",
96
96
  "minimist": "1.2.8",
97
97
  "playwright": "^1.59.1",
98
- "postcss": "8.4.39",
99
- "prettier": "3.3.3",
98
+ "postcss": "8.5.10",
99
+ "prettier": "3.8.3",
100
100
  "process": "0.11.10",
101
- "react": "^19.0.0",
102
- "react-dom": "^19.0.0",
103
- "rimraf": "6.0.1",
104
- "rollup": "4.35.0",
101
+ "react": "19.0.0",
102
+ "react-dom": "19.0.0",
103
+ "rimraf": "6.1.3",
104
+ "rollup": "4.60.1",
105
105
  "rollup-plugin-analyzer": "4.0.0",
106
106
  "rollup-plugin-browsersync": "1.3.3",
107
107
  "rollup-plugin-copy": "3.5.0",
108
- "rollup-plugin-dts": "6.1.1",
108
+ "rollup-plugin-dts": "6.4.1",
109
109
  "rollup-plugin-html-scaffold": "0.2.0",
110
- "rollup-plugin-postcss": "4.0.1",
110
+ "rollup-plugin-postcss": "4.0.2",
111
111
  "rollup-plugin-progress": "1.1.2",
112
112
  "rollup-plugin-string": "3.0.0",
113
113
  "rollup-plugin-terser": "7.0.2",
114
- "rollup-plugin-visualizer": "5.12.0",
115
- "style-loader": "3.3.4",
116
- "stylelint": "16.7.0",
114
+ "rollup-plugin-visualizer": "7.0.1",
115
+ "style-loader": "4.0.0",
116
+ "stylelint": "17.8.0",
117
117
  "stylelint-config-prettier": "9.0.5",
118
- "stylelint-config-standard": "36.0.1",
119
- "ts-jest": "29.2.5",
118
+ "stylelint-config-standard": "40.0.0",
119
+ "ts-jest": "29.4.9",
120
120
  "ts-node": "10.9.2",
121
+ "tslib": "^2.8.1",
121
122
  "typescript": "^6.0.0"
122
123
  },
123
124
  "peerDependencies": {
@@ -137,7 +138,7 @@
137
138
  ]
138
139
  },
139
140
  "dependencies": {
140
- "@floating-ui/dom": "1.6.13",
141
+ "@floating-ui/dom": "1.7.6",
141
142
  "clsx": "2.1.1"
142
143
  }
143
144
  }