Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: upleveled/eslint-config-upleveled
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.1.0
Choose a base ref
...
head repository: upleveled/eslint-config-upleveled
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.1.1
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Feb 11, 2025

  1. Update dependency upgrades - non-major (#492)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 11, 2025
    Copy the full SHA
    1a5d732 View commit details
  2. Only console.log and write .gitignore file if update necessary

    karlhorky committed Feb 11, 2025
    Copy the full SHA
    60c7729 View commit details
  3. 9.1.1

    karlhorky committed Feb 11, 2025
    Copy the full SHA
    09b4db3 View commit details
Showing with 223 additions and 205 deletions.
  1. +205 −190 __tests__/pnpm-lock.yaml
  2. +13 −10 bin/install.js
  3. +3 −3 package.json
  4. +2 −2 pnpm-lock.yaml
395 changes: 205 additions & 190 deletions __tests__/pnpm-lock.yaml

Large diffs are not rendered by default.

23 changes: 13 additions & 10 deletions bin/install.js
Original file line number Diff line number Diff line change
@@ -333,8 +333,6 @@ try {
// Swallow error if jsconfig.json file does not exist
}

console.log('Updating .gitignore...');

const gitignorePath = join(process.cwd(), '.gitignore');

/** @type {string[]} */
@@ -346,22 +344,27 @@ try {
// Swallow error in case .gitignore doesn't exist yet
}

let gitignoreChanged = false;

for (const ignorePath of ['.eslintcache', '*.tsbuildinfo']) {
if (gitignoreContentLines.includes(ignorePath)) {
continue;
}

gitignoreContentLines.push(ignorePath);
gitignoreChanged = true;
}

writeFileSync(
gitignorePath,
gitignoreContentLines.join('\n') +
// Add trailing newline if last line is not empty
(gitignoreContentLines.at(-1) === '' ? '' : '\n'),
);

console.log('✅ Done updating .gitignore');
if (gitignoreChanged) {
console.log('Updating .gitignore...');
writeFileSync(
gitignorePath,
gitignoreContentLines.join('\n') +
// Add trailing newline if last line is not empty
(gitignoreContentLines.at(-1) === '' ? '' : '\n'),
);
console.log('✅ Done updating .gitignore');
}

const npmrcPath = join(process.cwd(), '.npmrc');

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-upleveled",
"version": "9.1.0",
"version": "9.1.1",
"description": "UpLeveled ESLint defaults for programming in JavaScript, TypeScript, React, Next.js, Node.js, Postgres.js",
"keywords": [
"eslint",
@@ -68,10 +68,10 @@
"typescript": "5.7.3"
},
"peerDependencies": {
"@types/node": ">=22.12.0",
"@types/node": ">=22.13.1",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"eslint": "^9.19.0",
"eslint": "^9.20.0",
"globals": "^15.14.0",
"typescript": "^5.7.3"
},
4 changes: 2 additions & 2 deletions pnpm-lock.yaml