UNPKG

eslint-plugin-lob

Version:

Custom ESLint rules for Lob repositories

97 lines (59 loc) 4.74 kB
## 3.0.2 (2026-05-18) ##### Chores * **deps:** Upgrade `eslint-config-lob` to `^7.0.0` (native flat config, `@stylistic`, `eslint-plugin-jsdoc`, and `globals` now bundled). * **deps:** Remove `@eslint/eslintrc` and `eslint-plugin-jsdoc` devDependencies — both are now provided transitively by `eslint-config-lob@7`. * **config:** Simplify `eslint.config.js` — drop `FlatCompat` wrapper; consume `eslint-config-lob/es5` flat config array directly. ## 3.0.1 (2026-05-18) ##### Bug Fixes * **eslint:** Replace removed/deprecated ESLint core rules with supported equivalents. * `valid-jsdoc` (removed in ESLint v9): replaced with `eslint-plugin-jsdoc` rules `check-param-names`, `check-tag-names`, and `valid-types`. Added `eslint-plugin-jsdoc ^62.9.0` as a dev dependency. * `no-spaced-func` (deprecated): replaced with `func-call-spacing: ['error', 'never']`. * `no-negated-in-lhs` (deprecated): replaced with `no-unsafe-negation: 'error'`. ##### Chores * **ci:** Pin npm to `^11` in CI and publish workflows for reproducible builds. * **deps:** Bump `eslint` devDep `^10.3.0``^10.4.0`. Restore `overrides` for `diff ^9` and `serialize-javascript ^7.0.5` under `mocha` to address CVEs in mocha's nested deps (GHSA-73rr-hh4g-fpgx, GHSA-5c6j-r48x-rmvq, GHSA-qj8w-gfj5-8c6v). * **gitignore:** Expand `.gitignore` with full macOS ignore set. ## 3.0.0 (2026-05-14) ##### Breaking Changes * **node:** Bumped minimum Node.js requirement to `>=24.15.0` and npm to `>=11.0.0`. * **eslint:** Upgraded to ESLint 10 (`^10.3.0`). Peer dependency bumped to `eslint >=10.0.0`. * **config:** Replaced `.eslintrc` (removed in ESLint 9) with `eslint.config.js` flat config using `@eslint/eslintrc` `FlatCompat` to wrap the legacy `eslint-config-lob/es5` ruleset. * **rules:** Rewritten to ESLint 8+ `{ meta, create }` module format. Updated to use `context.sourceCode` (replaces the removed `context.getSourceCode()` API). * **tests:** Updated `RuleTester` config to `languageOptions` (flat config format required by ESLint 10). ##### Bug Fixes * **tests:** Removed five duplicate invalid test cases in `align-equals` that ESLint 10's `RuleTester` now catches and rejects. ##### Chores * **deps:** Replaced deprecated `istanbul` with `c8`. Removed `coveralls`. Updated `mocha` to `^11.7.5`, `eslint-config-lob` to `^6.0.1`, `generate-changelog` to `^1.8.0`. Added `@eslint/eslintrc ^3.3.5`. * **readme:** Removed stale Travis CI badge; updated usage docs to ESLint flat config format. ## 2.0.0 (2025-11-12) ##### Breaking Changes * **node:** Dropped support for Node.js versions older than 20. The package now requires `node >= 20.0.0` and `npm >= 11.5.1`. ### 1.2.0 (2017-08-29) ##### Refactors * **node:** support node < v4 (#10) ([0d7d979d](https://github.com/lob/eslint-plugin-lob/commit/0d7d979d13be6750bd536c714c632307f70f8115)) ### 1.1.0 (2017-5-29) ##### New Features * **eslint:** loosen eslint peer dependency ([e9efa55a](https://github.com/lob/eslint-plugin-lob/commit/e9efa55a378f1c25655c962ae0d7cfbb7b440e20)) #### 1.0.1 (2016-8-30) ##### Chores * **deps:** make eslint v1.x a peer dep ([7c8927e7](https://github.com/lob/eslint-plugin-lob/commit/7c8927e7)) * **npm:** ignore the coverage directory ([b444ab55](https://github.com/lob/eslint-plugin-lob/commit/b444ab55)) ##### Bug Fixes * **align-equals:** * align named factories as well ([44228d11](https://github.com/lob/eslint-plugin-lob/commit/44228d11)) * account for promisification when aligning ([256dadc8](https://github.com/lob/eslint-plugin-lob/commit/256dadc8)) ## 1.0.0 (2016-2-15) ##### Chores * **init:** initial commit ([f516477f](https://github.com/lob/eslint-plugin-lob/commit/f516477f)) ##### New Features * **align-requires:** add align-requires rule ([d92c356e](https://github.com/lob/eslint-plugin-lob/commit/d92c356e)) * **newline-after-mocha:** add the newline-after-mocha rule ([245ea880](https://github.com/lob/eslint-plugin-lob/commit/245ea880)) * **padded-describes:** add the padded-describes rule ([0a14a3a9](https://github.com/lob/eslint-plugin-lob/commit/0a14a3a9)) ##### Bug Fixes * **align-equals:** * consider CallExpressions as well ([fb61409d](https://github.com/lob/eslint-plugin-lob/commit/fb61409d)) * consider MemberExpressions as well ([8b66539c](https://github.com/lob/eslint-plugin-lob/commit/8b66539c)) * avoid possible syntax error ([e33c0d5d](https://github.com/lob/eslint-plugin-lob/commit/e33c0d5d)) * **padded-describes:** make the error message more specific ([0faed142](https://github.com/lob/eslint-plugin-lob/commit/0faed142)) ##### Code Style Changes * **padded-describes:** remove JSDoc to stay consistent ([83e42f31](https://github.com/lob/eslint-plugin-lob/commit/83e42f31))