eslint-define-config
Advanced tools
Comparing version 1.2.4 to 1.2.5
{ | ||
"name": "eslint-define-config", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Provide a defineConfig function for .eslintrc.js files", | ||
@@ -42,14 +42,14 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"@intlify/eslint-plugin-vue-i18n": "~1.2.0", | ||
"@intlify/eslint-plugin-vue-i18n": "~1.3.0", | ||
"@types/eslint": "~8.4.1", | ||
"@types/node": "~16.11.22", | ||
"@types/prettier": "~2.4.3", | ||
"@typescript-eslint/eslint-plugin": "~5.10.2", | ||
"@typescript-eslint/parser": "~5.10.2", | ||
"@types/node": "~16.11.24", | ||
"@types/prettier": "~2.4.4", | ||
"@typescript-eslint/eslint-plugin": "~5.11.0", | ||
"@typescript-eslint/parser": "~5.11.0", | ||
"change-case": "~4.1.2", | ||
"eslint": "~8.8.0", | ||
"eslint": "~8.9.0", | ||
"eslint-config-prettier": "~8.3.0", | ||
"eslint-gitignore": "~0.1.0", | ||
"eslint-plugin-inclusive-language": "~2.2.0", | ||
"eslint-plugin-jsdoc": "~37.7.1", | ||
"eslint-plugin-jsdoc": "~37.9.1", | ||
"eslint-plugin-node": "~11.1.0", | ||
@@ -61,3 +61,3 @@ "eslint-plugin-prettier": "~4.0.0", | ||
"eslint-plugin-vue-pug-sfc": "~1.0.0-alpha.20", | ||
"esno": "~0.14.0", | ||
"esno": "~0.14.1", | ||
"json-schema-to-typescript": "~10.1.5", | ||
@@ -69,8 +69,8 @@ "prettier": "2.5.1", | ||
}, | ||
"packageManager": "pnpm@6.29.1", | ||
"packageManager": "pnpm@6.30.1", | ||
"engines": { | ||
"node": ">= 16.9.0", | ||
"npm": ">= 7.0.0", | ||
"pnpm": ">= 6.29.1" | ||
"pnpm": ">= 6.30.1" | ||
} | ||
} |
@@ -47,2 +47,3 @@ import type { CheckAccessRule } from './check-access'; | ||
import type { RequireYieldsCheckRule } from './require-yields-check'; | ||
import type { SortTagsRule } from './sort-tags'; | ||
import type { TagLinesRule } from './tag-lines'; | ||
@@ -100,3 +101,4 @@ import type { ValidTypesRule } from './valid-types'; | ||
RequireYieldsCheckRule & | ||
SortTagsRule & | ||
TagLinesRule & | ||
ValidTypesRule; |
@@ -12,2 +12,3 @@ import type { RuleConfig } from '../rule-config'; | ||
allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean; | ||
allowedNames?: string[]; | ||
} | ||
@@ -14,0 +15,0 @@ |
@@ -7,6 +7,10 @@ import type { RuleConfig } from '../rule-config'; | ||
export interface NoMagicNumbersOption { | ||
detectObjects?: boolean; | ||
enforceConst?: boolean; | ||
ignore?: (number | string)[]; | ||
ignoreArrayIndexes?: boolean; | ||
ignoreDefaultValues?: boolean; | ||
ignoreNumericLiteralTypes?: boolean; | ||
ignoreEnums?: boolean; | ||
ignoreReadonlyClassProperties?: boolean; | ||
[k: string]: any; | ||
} | ||
@@ -13,0 +17,0 @@ |
@@ -11,2 +11,3 @@ import type { KeyFormatStyleRule } from './key-format-style'; | ||
import type { NoMissingKeysInOtherLocalesRule } from './no-missing-keys-in-other-locales'; | ||
import type { NoUnknownLocaleRule } from './no-unknown-locale'; | ||
import type { NoUnusedKeysRule } from './no-unused-keys'; | ||
@@ -16,2 +17,3 @@ import type { NoVHtmlRule } from './no-v-html'; | ||
import type { PreferSfcLangAttrRule } from './prefer-sfc-lang-attr'; | ||
import type { SfcLocaleAttrRule } from './sfc-locale-attr'; | ||
import type { ValidMessageSyntaxRule } from './valid-message-syntax'; | ||
@@ -32,2 +34,3 @@ | ||
NoMissingKeysRule & | ||
NoUnknownLocaleRule & | ||
NoUnusedKeysRule & | ||
@@ -37,2 +40,3 @@ NoVHtmlRule & | ||
PreferSfcLangAttrRule & | ||
SfcLocaleAttrRule & | ||
ValidMessageSyntaxRule; |
@@ -8,2 +8,3 @@ import type { RuleConfig } from '../rule-config'; | ||
allowArray?: boolean; | ||
splitByDots?: boolean; | ||
} | ||
@@ -31,3 +32,3 @@ | ||
* | ||
* | ||
* @see [key-format-style](https://eslint-plugin-vue-i18n.intlify.dev/rules/key-format-style.html) | ||
*/ | ||
@@ -39,3 +40,3 @@ export type KeyFormatStyleRuleConfig = RuleConfig<KeyFormatStyleOptions>; | ||
* | ||
* | ||
* @see [key-format-style](https://eslint-plugin-vue-i18n.intlify.dev/rules/key-format-style.html) | ||
*/ | ||
@@ -46,5 +47,5 @@ export interface KeyFormatStyleRule { | ||
* | ||
* | ||
* @see [key-format-style](https://eslint-plugin-vue-i18n.intlify.dev/rules/key-format-style.html) | ||
*/ | ||
'@intlify/vue-i18n/key-format-style': KeyFormatStyleRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-deprecated-i18n-component](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-component.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoDeprecatedI18nComponentRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-deprecated-i18n-component](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-component.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoDeprecatedI18nComponentRule { | ||
* | ||
* | ||
* @see [no-deprecated-i18n-component](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-component.html) | ||
*/ | ||
'@intlify/vue-i18n/no-deprecated-i18n-component': NoDeprecatedI18nComponentRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-deprecated-i18n-place-attr](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-place-attr.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoDeprecatedI18nPlaceAttrRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-deprecated-i18n-place-attr](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-place-attr.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoDeprecatedI18nPlaceAttrRule { | ||
* | ||
* | ||
* @see [no-deprecated-i18n-place-attr](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-place-attr.html) | ||
*/ | ||
'@intlify/vue-i18n/no-deprecated-i18n-place-attr': NoDeprecatedI18nPlaceAttrRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-deprecated-i18n-places-prop](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-places-prop.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoDeprecatedI18nPlacesPropRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-deprecated-i18n-places-prop](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-places-prop.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoDeprecatedI18nPlacesPropRule { | ||
* | ||
* | ||
* @see [no-deprecated-i18n-places-prop](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-i18n-places-prop.html) | ||
*/ | ||
'@intlify/vue-i18n/no-deprecated-i18n-places-prop': NoDeprecatedI18nPlacesPropRuleConfig; | ||
} |
@@ -18,3 +18,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-duplicate-keys-in-locale](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-duplicate-keys-in-locale.html) | ||
*/ | ||
@@ -27,3 +27,3 @@ export type NoDuplicateKeysInLocaleRuleConfig = | ||
* | ||
* | ||
* @see [no-duplicate-keys-in-locale](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-duplicate-keys-in-locale.html) | ||
*/ | ||
@@ -34,5 +34,5 @@ export interface NoDuplicateKeysInLocaleRule { | ||
* | ||
* | ||
* @see [no-duplicate-keys-in-locale](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-duplicate-keys-in-locale.html) | ||
*/ | ||
'@intlify/vue-i18n/no-duplicate-keys-in-locale': NoDuplicateKeysInLocaleRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-dynamic-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-dynamic-keys.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoDynamicKeysRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-dynamic-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-dynamic-keys.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoDynamicKeysRule { | ||
* | ||
* | ||
* @see [no-dynamic-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-dynamic-keys.html) | ||
*/ | ||
'@intlify/vue-i18n/no-dynamic-keys': NoDynamicKeysRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-html-messages](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-html-messages.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoHtmlMessagesRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-html-messages](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-html-messages.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoHtmlMessagesRule { | ||
* | ||
* | ||
* @see [no-html-messages](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-html-messages.html) | ||
*/ | ||
'@intlify/vue-i18n/no-html-messages': NoHtmlMessagesRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-i18n-t-path-prop](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-i18n-t-path-prop.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoI18nTPathPropRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-i18n-t-path-prop](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-i18n-t-path-prop.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoI18nTPathPropRule { | ||
* | ||
* | ||
* @see [no-i18n-t-path-prop](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-i18n-t-path-prop.html) | ||
*/ | ||
'@intlify/vue-i18n/no-i18n-t-path-prop': NoI18nTPathPropRuleConfig; | ||
} |
@@ -20,3 +20,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-missing-keys-in-other-locales](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys-in-other-locales.html) | ||
*/ | ||
@@ -29,3 +29,3 @@ export type NoMissingKeysInOtherLocalesRuleConfig = | ||
* | ||
* | ||
* @see [no-missing-keys-in-other-locales](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys-in-other-locales.html) | ||
*/ | ||
@@ -36,5 +36,5 @@ export interface NoMissingKeysInOtherLocalesRule { | ||
* | ||
* | ||
* @see [no-missing-keys-in-other-locales](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys-in-other-locales.html) | ||
*/ | ||
'@intlify/vue-i18n/no-missing-keys-in-other-locales': NoMissingKeysInOtherLocalesRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-missing-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoMissingKeysRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-missing-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoMissingKeysRule { | ||
* | ||
* | ||
* @see [no-missing-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-missing-keys.html) | ||
*/ | ||
'@intlify/vue-i18n/no-missing-keys': NoMissingKeysRuleConfig; | ||
} |
@@ -9,2 +9,3 @@ import type { RuleConfig } from '../rule-config'; | ||
extensions?: string[]; | ||
ignores?: string[]; | ||
enableFix?: boolean; | ||
@@ -21,3 +22,3 @@ } | ||
* | ||
* | ||
* @see [no-unused-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-unused-keys.html) | ||
*/ | ||
@@ -29,3 +30,3 @@ export type NoUnusedKeysRuleConfig = RuleConfig<NoUnusedKeysOptions>; | ||
* | ||
* | ||
* @see [no-unused-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-unused-keys.html) | ||
*/ | ||
@@ -36,5 +37,5 @@ export interface NoUnusedKeysRule { | ||
* | ||
* | ||
* @see [no-unused-keys](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-unused-keys.html) | ||
*/ | ||
'@intlify/vue-i18n/no-unused-keys': NoUnusedKeysRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [no-v-html](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-v-html.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type NoVHtmlRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [no-v-html](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-v-html.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface NoVHtmlRule { | ||
* | ||
* | ||
* @see [no-v-html](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-v-html.html) | ||
*/ | ||
'@intlify/vue-i18n/no-v-html': NoVHtmlRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [prefer-linked-key-with-paren](https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-linked-key-with-paren.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type PreferLinkedKeyWithParenRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [prefer-linked-key-with-paren](https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-linked-key-with-paren.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface PreferLinkedKeyWithParenRule { | ||
* | ||
* | ||
* @see [prefer-linked-key-with-paren](https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-linked-key-with-paren.html) | ||
*/ | ||
'@intlify/vue-i18n/prefer-linked-key-with-paren': PreferLinkedKeyWithParenRuleConfig; | ||
} |
@@ -6,3 +6,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [prefer-sfc-lang-attr](https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-sfc-lang-attr.html) | ||
*/ | ||
@@ -14,3 +14,3 @@ export type PreferSfcLangAttrRuleConfig = RuleConfig<[]>; | ||
* | ||
* | ||
* @see [prefer-sfc-lang-attr](https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-sfc-lang-attr.html) | ||
*/ | ||
@@ -21,5 +21,5 @@ export interface PreferSfcLangAttrRule { | ||
* | ||
* | ||
* @see [prefer-sfc-lang-attr](https://eslint-plugin-vue-i18n.intlify.dev/rules/prefer-sfc-lang-attr.html) | ||
*/ | ||
'@intlify/vue-i18n/prefer-sfc-lang-attr': PreferSfcLangAttrRuleConfig; | ||
} |
@@ -18,3 +18,3 @@ import type { RuleConfig } from '../rule-config'; | ||
* | ||
* | ||
* @see [valid-message-syntax](https://eslint-plugin-vue-i18n.intlify.dev/rules/valid-message-syntax.html) | ||
*/ | ||
@@ -27,3 +27,3 @@ export type ValidMessageSyntaxRuleConfig = | ||
* | ||
* | ||
* @see [valid-message-syntax](https://eslint-plugin-vue-i18n.intlify.dev/rules/valid-message-syntax.html) | ||
*/ | ||
@@ -34,5 +34,5 @@ export interface ValidMessageSyntaxRule { | ||
* | ||
* | ||
* @see [valid-message-syntax](https://eslint-plugin-vue-i18n.intlify.dev/rules/valid-message-syntax.html) | ||
*/ | ||
'@intlify/vue-i18n/valid-message-syntax': ValidMessageSyntaxRuleConfig; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
946901
890
30574