Skip to content
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
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CONTRIBUTING.md text eol=lf
# Config files
.gitignore text eol=lf
.gitattributes text eol=lf
.eslintrc.json text eol=lf
eslint.config.mjs text eol=lf
.prettierrc.json text eol=lf
.mocharc.json text eol=lf
tsconfig.json text eol=lf
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
node_modules
oclif.lock
oclif.manifest.json
*.tgz
*.tgz*.tsbuildinfo
9 changes: 1 addition & 8 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
{
"require": [
"ts-node/register"
],
"watch-extensions": [
"ts"
],
"recursive": true,
"reporter": "spec",
"timeout": 60000,
"node-option": [
"loader=ts-node/esm",
"experimental-specifier-resolution=node"
"import=tsx"
]
}
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test/
examples/

# Config files
.eslintrc.json
eslint.config.mjs
.prettierrc.json
.mocharc.json
tsconfig.json
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Platform detection matches `beerawardsplatform.com` and `reggiebeer.com` by
domain, not substring, so lookalike hosts are not routed to those parsers and a
trailing-dot host is.
- Replaced `ts-node` (unmaintained; the source of the `--experimental-loader` and
`DEP0180` warnings) with `tsx` for the test run and `bin/dev`.
- Moved linting to ESLint 10 with `eslint-config-oclif` 7 (flat config), which
supports current TypeScript; the previous config warned on TypeScript 5.4 and
newer. Built with TypeScript 6.
- Updated dependencies, including `mocha` 12 and `chai` 6. Production dependencies
audit clean. `@oclif/*` stays on the current majors because the next ones require
Node 22.
- Regenerated `package-lock.json` and `yarn.lock` against the public npm registry;
they previously pointed at an internal mirror, so `npm ci` hung outside it.

### Fixed

Expand Down Expand Up @@ -84,6 +94,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
"Pat SmithCo-Brewer: Sam Smith" was compared whole. The brewer named before the
"Co-Brewer:" line is now what is matched; the output cell is unchanged.

### Removed

- Unused dependencies: `node-persist`, `json2csv`, `node-localstorage`, `shx` and
their `@types/*` packages. The build script now clears `dist/` with Node itself.


## [1.1.0] - 2026-09-13

Expand Down
2 changes: 1 addition & 1 deletion bin/dev.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off

node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
tsx "%~dp0\dev" %*
2 changes: 1 addition & 1 deletion bin/dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
#!/usr/bin/env tsx

import {execute} from '@oclif/core'

Expand Down
2 changes: 1 addition & 1 deletion docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export enum Platform {
## Performance Considerations

### Caching
The tool uses `node-persist` for caching competition data, reducing redundant network requests.
The tool does not cache competition data; each run fetches the pages it needs.

### Parallel Processing
When using config files with multiple competitions, requests are processed in parallel using `Promise.all()`.
Expand Down
99 changes: 99 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import {includeIgnoreFile} from '@eslint/compat'
import oclif from 'eslint-config-oclif'
import prettier from 'eslint-config-prettier'
import path from 'node:path'
import {fileURLToPath} from 'node:url'

const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')

const config = [
includeIgnoreFile(gitignorePath),
...oclif,
prettier,
{ignores: ['dist/**', 'tmp/**']},
{
// Ordering and spacing rules that would reshuffle code (switch cases, object keys,
// union members) for no behavioural reason. Formatting is not enforced here.
rules: {
'@stylistic/lines-between-class-members': 'off',
'@stylistic/padding-line-between-statements': 'off',
'perfectionist/sort-imports': 'off',
'perfectionist/sort-named-imports': 'off',
'perfectionist/sort-objects': 'off',
'perfectionist/sort-switch-case': 'off',
'perfectionist/sort-union-types': 'off',
// Newer stylistic and type-safety packs that the previous config never enabled.
// They flag JSON-from-fixture `any`s and stylistic preferences, not defects.
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/promise-function-async': 'off',
'require-unicode-regexp': 'off',
'unicorn/consistent-boolean-name': 'off',
'unicorn/consistent-class-member-order': 'off',
'unicorn/max-nested-calls': 'off',
'unicorn/no-break-in-nested-loop': 'off',
'unicorn/prefer-iterator-to-array': 'off',
'unicorn/prefer-iterator-to-array-at-end': 'off',
'unicorn/prefer-simple-condition-first': 'off',
'unicorn/prefer-unicode-code-point-escapes': 'off',
// Further rules from the newer packs. They flag preferences (iterator and loop
// style, assertion style, URL/string helpers), not defects, and the code base
// predates them.
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-loop-func': 'off',
'@typescript-eslint/no-restricted-types': 'off',
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
'@typescript-eslint/only-throw-error': 'off',
'@typescript-eslint/prefer-regexp-exec': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/switch-exhaustiveness-check': 'off',
'unicorn/logical-assignment-operators': 'off',
'unicorn/no-array-sort': 'off',
'unicorn/no-computed-property-existence-check': 'off',
'unicorn/no-duplicate-loops': 'off',
'unicorn/no-negated-array-predicate': 'off',
'unicorn/no-unsafe-string-replacement': 'off',
'unicorn/no-useless-else': 'off',
'unicorn/no-useless-iterator-to-array': 'off',
'unicorn/prefer-continue': 'off',
'unicorn/prefer-https': 'off',
'unicorn/prefer-minimal-ternary': 'off',
'unicorn/prefer-number-coercion': 'off',
'unicorn/prefer-split-limit': 'off',
'unicorn/prefer-string-raw': 'off',
'unicorn/prefer-url-href': 'off',
},
},
{
// The test files use chai property assertions (`expect(x).to.be.true`), and
// several files hold more than one top-level suite.
files: ['test/**/*.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'mocha/consistent-spacing-between-blocks': 'off',
'mocha/max-top-level-suites': 'off',
},
},
{
// bin/ is published through package.json "files"; the rule misreads it.
files: ['bin/run.js'],
rules: {'n/no-unpublished-bin': 'off'},
},
]

export default config
4 changes: 2 additions & 2 deletions examples/test-json-output.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import path from 'path';
import fs from 'node:fs';
import path from 'node:path';
import { BAPParser } from '../dist/parsers/bap-parser.js';

const htmlPath = path.join(process.cwd(), 'test/resources/results/bap_results.html');
Expand Down
4 changes: 2 additions & 2 deletions examples/test-reggie-output.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import path from 'path';
import fs from 'node:fs';
import path from 'node:path';
import { ReggieParser } from '../dist/parsers/reggie-parser.js';

const htmlPath = path.join(process.cwd(), 'test/resources/results/reggie_results.html');
Expand Down
Loading
Loading