Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Merged
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 dev-packages/pack-n-play/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Config file for eslint used by gts.

const path = require('path');

// 1. Find the absolute path to the 'gts' package's directory
// This forces Node.js to look up in the directory tree (hoisted root)
const GTS_CONFIG_PATH = path.dirname(
require.resolve('gts/package.json', {paths: [__dirname]}),
);

module.exports = {
// Use the absolute path provided by Node's resolution
// This bypasses the relative path failure completely.
extends: [GTS_CONFIG_PATH],
};
3 changes: 0 additions & 3 deletions dev-packages/pack-n-play/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion dev-packages/pack-n-play/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"compile": "tsc -p tsconfig.json",
"docs": "node -e 'fs.mkdirSync(`docs`)'",
"fix": "gts fix",
"lint": "if [ -d node_modules/gts ]; then GTS_PATH='./node_modules/gts'; else GTS_PATH='./../../node_modules/gts'; fi && echo \"{\\\"extends\\\": \\\"${GTS_PATH}\\\"}\" > .eslintrc.json && gts check && git checkout .eslintrc.json",
"lint": "gts check",
"prepare": "npm run compile",
"pretest": "npm run compile",
"samples-test": "",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"samples-test": "npm run samples-test --ws",
"system-test": "npm run system-test --ws",
"prelint": "npm run prelint --ws",
"lint": "npm run lint --ws"
"lint": "npm run lint --ws",
"fix": "npm run fix --ws"
},
"workspaces": [
"dev-packages/pack-n-play"
Expand Down