mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 06:03:01 -05:00
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:
@@ -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`"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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'),
|
||||
|
||||
6
upcoming-release-notes/6463.md
Normal file
6
upcoming-release-notes/6463.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Maintenance
|
||||
authors: [connorshea]
|
||||
---
|
||||
|
||||
Add a name to the local ESLint plugin.
|
||||
Reference in New Issue
Block a user