chore: Add a meta.name to the eslint plugin. (#6463)

* Add a name to the eslint plugin.

* Add release note.

* Also update the no-restricted-imports patterns in .oxlintrc.json.

The glob library is different from what ESLint uses, so the globs need
a bit of adjustment.
This commit is contained in:
Connor Shea
2025-12-21 01:33:22 -07:00
committed by GitHub
parent 1fe1bad2f8
commit 3004b6fa6e
3 changed files with 11 additions and 2 deletions

View File

@@ -314,7 +314,7 @@
],
"patterns": [
{
"group": ["*.api", "*.web", "*.electron"],
"group": ["**/*.api", "**/*.web", "**/*.electron"],
"message": "Don't directly reference imports from other platforms"
},
{
@@ -328,7 +328,7 @@
"message": "Please use themes instead of colors"
},
{
"group": ["@actual-app/web/*"],
"group": ["@actual-app/web/**/*"],
"message": "Please do not import `@actual-app/web` in `loot-core`"
}
]

View File

@@ -1,4 +1,7 @@
module.exports = {
meta: {
name: 'eslint-plugin-actual',
},
rules: {
'no-untranslated-strings': require('./rules/no-untranslated-strings'),
'prefer-trans-over-t': require('./rules/prefer-trans-over-t'),

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [connorshea]
---
Add a name to the local ESLint plugin.