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
32 changes: 0 additions & 32 deletions .eslintrc.json

This file was deleted.

21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# CHANGELOG - sitespeed.io/plugin (we use [semantic versioning](https://semver.org))

## 1.0.1 - UNRELEASED
### Fixed
* Removed an unreachable `log()` wrapper method on the base class. The
constructor's `this.log` assignment had always shadowed it, so calling
`plugin.log(...)` invoked the logger object directly. Behavior is
unchanged; the dead method is gone.
* Validate the constructor's `config` argument up front and throw a clear
error when `name`, `context` or `queue` is missing, instead of letting
a confusing `Cannot read properties of undefined` escape later.
* Use `===` for the abstract-class guard.
* Fixed a malformed `@param {}` JSDoc tag on `sendMessage`.
* README with install, example and API reference.
* `engines` field (`node >= 20`).
* `test/plugin.test.js` covering the public surface (run with `npm test`,
uses the built-in `node:test` runner — no test deps).
* GitHub Actions workflow that runs lint and tests on Node 20/22/24.
* Bumped dev tooling: `eslint` 8 → 10, `prettier` 2 → 3,
`eslint-plugin-unicorn` 45 → 64, `eslint-config-prettier` 8 → 10,
`eslint-plugin-prettier` 4 → 5.
* Migrated `.eslintrc.json` to flat config (`eslint.config.mjs`).

## 1.0.0 - 2025-01-06
### Breaking
* Replaced the use of intel, instead use sitespeed.io/log.
41 changes: 41 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import js from '@eslint/js';
import prettier from 'eslint-plugin-prettier';
import prettierConfig from 'eslint-config-prettier';
import unicorn from 'eslint-plugin-unicorn';
import globals from 'globals';

export default [
js.configs.recommended,
unicorn.configs.recommended,
prettierConfig,
{
plugins: {
prettier
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.node
}
},
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'none',
arrowParens: 'avoid',
embeddedLanguageFormatting: 'off'
}
],
'require-atomic-updates': 0,
'no-extra-semi': 0,
'no-mixed-spaces-and-tabs': 0,
'unicorn/filename-case': 0,
'unicorn/prevent-abbreviations': 0,
'unicorn/no-array-reduce': 0,
'unicorn/prefer-spread': 0
}
}
];
Loading
Loading