Skip to content

Update development dependencies #2656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 19, 2024
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
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
// turn off some rules from shared configs in all files
{
rules: {
'eslint-plugin/require-meta-default-options': 'off', // TODO: enable when all rules have defaultOptions

Check warning on line 48 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected 'todo' comment: 'TODO: enable when all rules have...'
'eslint-plugin/require-meta-docs-recommended': 'off', // use `categories` instead
'eslint-plugin/require-meta-schema-description': 'off',

Expand Down
15 changes: 3 additions & 12 deletions lib/rules/html-button-has-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,9 @@ module.exports = {
{
type: 'object',
properties: {
button: {
default: optionDefaults.button,
type: 'boolean'
},
submit: {
default: optionDefaults.submit,
type: 'boolean'
},
reset: {
default: optionDefaults.reset,
type: 'boolean'
}
button: { type: 'boolean' },
submit: { type: 'boolean' },
reset: { type: 'boolean' }
},
additionalProperties: false
}
Expand Down
30 changes: 6 additions & 24 deletions lib/rules/no-irregular-whitespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,12 @@ module.exports = {
{
type: 'object',
properties: {
skipComments: {
type: 'boolean',
default: false
},
skipStrings: {
type: 'boolean',
default: true
},
skipTemplates: {
type: 'boolean',
default: false
},
skipRegExps: {
type: 'boolean',
default: false
},
skipHTMLAttributeValues: {
type: 'boolean',
default: false
},
skipHTMLTextContents: {
type: 'boolean',
default: false
}
skipComments: { type: 'boolean' },
skipStrings: { type: 'boolean' },
skipTemplates: { type: 'boolean' },
skipRegExps: { type: 'boolean' },
skipHTMLAttributeValues: { type: 'boolean' },
skipHTMLTextContents: { type: 'boolean' }
},
additionalProperties: false
}
Expand Down
27 changes: 6 additions & 21 deletions lib/rules/require-macro-variable-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,11 @@ module.exports = {
{
type: 'object',
properties: {
defineProps: {
type: 'string',
default: DEFAULT_OPTIONS.defineProps
},
defineEmits: {
type: 'string',
default: DEFAULT_OPTIONS.defineEmits
},
defineSlots: {
type: 'string',
default: DEFAULT_OPTIONS.defineSlots
},
useSlots: {
type: 'string',
default: DEFAULT_OPTIONS.useSlots
},
useAttrs: {
type: 'string',
default: DEFAULT_OPTIONS.useAttrs
}
defineProps: { type: 'string' },
defineEmits: { type: 'string' },
defineSlots: { type: 'string' },
useSlots: { type: 'string' },
useAttrs: { type: 'string' }
},
additionalProperties: false
}
Expand All @@ -60,7 +45,7 @@ module.exports = {
},
/** @param {RuleContext} context */
create(context) {
const options = context.options[0] || DEFAULT_OPTIONS
const options = Object.assign({}, DEFAULT_OPTIONS, context.options[0])
const relevantMacros = new Set([
...Object.keys(DEFAULT_OPTIONS),
'withDefaults'
Expand Down
14 changes: 5 additions & 9 deletions lib/rules/sort-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ module.exports = {
type: 'object',
properties: {
caseSensitive: {
type: 'boolean',
default: true
type: 'boolean'
},
ignoreChildrenOf: {
type: 'array'
Expand All @@ -93,16 +92,13 @@ module.exports = {
},
minKeys: {
type: 'integer',
minimum: 2,
default: 2
minimum: 2
},
natural: {
type: 'boolean',
default: false
type: 'boolean'
},
runOutsideVue: {
type: 'boolean',
default: true
type: 'boolean'
}
},
additionalProperties: false
Expand Down Expand Up @@ -137,7 +133,7 @@ module.exports = {
(options && options.ignoreChildrenOf) || ['model']
)
const insensitive = options && options.caseSensitive === false
const minKeys = options && options.minKeys
const minKeys = options?.minKeys ?? 2
const natural = options && options.natural
const isValidOrder =
isValidOrders[order + (insensitive ? 'I' : '') + (natural ? 'N' : '')]
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"devDependencies": {
"@ota-meshi/site-kit-eslint-editor-vue": "^0.2.4",
"@stylistic/eslint-plugin": "^2.12.0",
"@stylistic/eslint-plugin": "^2.12.1",
"@types/eslint": "^8.56.2",
"@types/eslint-visitor-keys": "^3.3.2",
"@types/natural-compare": "^1.4.3",
Expand All @@ -81,7 +81,7 @@
"esbuild": "^0.24.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-plugin": "~6.3.1",
"eslint-plugin-eslint-plugin": "~6.4.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-node-dependencies": "^0.12.0",
Expand All @@ -95,7 +95,7 @@
"nyc": "^17.1.0",
"pathe": "^1.1.2",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"vitepress": "^1.4.1"
}
}
Loading