Skip to content

Commit

Permalink
fix(linter): add schema for nx plugin checks rule (#19447)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Oct 4, 2023
1 parent 2c05520 commit 6c37113
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion packages/eslint-plugin/src/rules/nx-plugin-checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,40 @@ export default createESLintRule<Options, MessageIds>({
description: 'Checks common nx-plugin configuration files for validity',
recommended: 'error',
},
schema: [],
schema: [
{
type: 'object',
properties: {
generatorsJson: {
type: 'string',
description:
"The path to the project's generators.json file, relative to the project root",
},
executorsJson: {
type: 'string',
description:
"The path to the project's executors.json file, relative to the project root",
},
migrationsJson: {
type: 'string',
description:
"The path to the project's migrations.json file, relative to the project root",
},
packageJson: {
type: 'string',
description:
"The path to the project's package.json file, relative to the project root",
},
allowedVersionStrings: {
type: 'array',
description:
'A list of specifiers that are valid for versions within package group. Defaults to ["*", "latest", "next"]',
items: { type: 'string' },
},
},
additionalProperties: false,
},
],
type: 'problem',
messages: {
invalidSchemaPath: 'Schema path should point to a valid file',
Expand Down

0 comments on commit 6c37113

Please sign in to comment.