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
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{cjs,js,json,jsonld,mjs,yaml,yml}]
indent_style = space
indent_size = 2
11 changes: 0 additions & 11 deletions .eslintrc.js

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/main.yml → .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Lint CI
name: Main CI

on: [push]

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [14.x]
node-version: [24.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
42 changes: 41 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,44 @@
# eslint-config-digitalbazaar ChangeLog
# @digitalbazaar/eslint-config ChangeLog

### 6.0.0 - 2025-08-xx

### Changed
- **BREAKING**: Rename NPM package from `eslint-config-digitalbazaar` to
`@digitalbazaar/eslint-config`.
- **BREAKING**: Update to `eslint@9`.
- Please see the migration notes below.
- Comments and suggestions welcome for how best to adapt to the rules that
were changed, added, or removed between v8 and v9.
- The way configuration is done changed significantly. Suggestions welcome on
how best to adapt to the new style.
- **BREAKING**: Set `ecmaVersion` to `latest`. Override in project config if a
specific version limitation is required.
- **BREAKING**: Change `'@stylistic/comma-dangle'` to `'never'` from
`'only-multiline'`. Changed to enforce a more uniform style. Override locally
if it causes issues.
- **BREAKING**: Remove `vue` rules for Vue 2. Keep `vue3` as a versioned name.

### Migration
- ESLint v9 is a major breaking change and will require manual updates.
- ESLint has a migration guide:
- https://eslint.org/docs/latest/use/configure/migration-guide
- A few major notes:
- The configuration file changes from multiple `.eslintrc.cjs` or similar to
a single top level `eslint.config.js`.
- Invocation is now `eslint` without options.
- Style rules were deprecated and moved to the `stylistic` project.
- The Digital Bazaar rules are mostly the same as before with updates to
`@stylistic/RULENAME` as needed.
- Note the common `max-len` is now `@stylistic/max-len`.
- Unused rules are now flagged which should help with migration to new rules,
or elimination of unused rules.
- Quasar has not yet updated support for v9. Until that is updated, stay with
v8, or update to v9 and drop Quasar linting and only use Vue linting.
- Major types of rules are grouped together.
- The groups can be composed together as needed.
- There are opinionated "recommended" configs that compose a number of rules
and apply to many common Digital Bazaar repositories.
- See the [README](./README.md) for notes and usage examples.

### 5.2.0 - 2024-05-02

Expand Down
Loading