Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,21 @@ export default [
},
},

// Configuration for .mjs files (ES modules in Node.js environment)
{
files: ["**/*.mjs"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...nodeGlobals,
},
},
rules: {
"no-undef": "error",
},
},

// Specific overrides for ALL test files (JS and TS)
{
files: ["**/*.test.js", "**/*.test.jsx", "**/*.test.ts", "**/*.test.tsx"],
Expand Down
2 changes: 1 addition & 1 deletion package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
),
size: {
description: "check the size of the bundle",
script: "bundlesize",
script: "size-limit",
},
},
build: {
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"bundlesize": "^0.18.2",
"@size-limit/preset-small-lib": "^11.1.6",
"size-limit": "^11.1.6",
"doctoc": "^2.2.1",
"dtslint": "^4.2.1",
"eslint": "^9.27.0",
Expand Down Expand Up @@ -100,18 +101,18 @@
"/typescript/"
]
},
"bundlesize": [
"size-limit": [
{
"path": "dist/react-final-form.umd.min.js",
"threshold": "2kB"
"limit": "4kB"
},
{
"path": "dist/react-final-form.es.js",
"threshold": "3kB"
"limit": "4kB"
},
{
"path": "dist/react-final-form.cjs.js",
"threshold": "3kB"
"limit": "4kB"
}
],
"collective": {
Expand Down
File renamed without changes.
Loading