Skip to content

Commit 1bfbcb7

Browse files
committed
Upgrades eslint to v9
1 parent 3d99ea3 commit 1bfbcb7

File tree

163 files changed

+1522
-1520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+1522
-1520
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 289 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"[markdown][mdx]": {
2020
"files.insertFinalNewline": true
2121
},
22-
"[typescript]": {
22+
"[javascript][typescript]": {
2323
"editor.defaultFormatter": "vscode.typescript-language-features",
2424
"editor.formatOnSave": true
2525
}

eslint-rules/lib/rules/correct-command-class-name.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function capitalizeWord(word, capitalized) {
4242
return word.substr(0, 1).toUpperCase() + word.substr(1).toLowerCase();
4343
}
4444

45-
function breakWords(longWord, dictionary) {
45+
function breakWords(longWord, dictionary) {
4646
const words = [];
4747
for (let i = 0; i < dictionary.length; i++) {
4848
if (longWord.indexOf(dictionary[i]) === 0) {
@@ -72,7 +72,19 @@ module.exports = {
7272
fixable: 'code',
7373
messages: {
7474
invalidName: "'{{ actualClassName }}' is not a valid command class name. Expected '{{ expectedClassName }}'"
75-
}
75+
},
76+
schema: [
77+
{
78+
type: 'array',
79+
items: { type: 'string' },
80+
uniqueItems: true
81+
},
82+
{
83+
type: 'array',
84+
items: { type: 'string' },
85+
uniqueItems: true
86+
}
87+
]
7688
},
7789
create: context => {
7890
return {

0 commit comments

Comments
 (0)