{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "Rule",
  "title": "",
  "type": "object",
  "properties": {
    "projectName": {
      "type": "string",
      "description": "The name of the frontend project to test. (You can leave blank if you fill in 'sourceRoot')",
      "$default": {
        "$source": "projectName"
      },
      "x-priority": "important"
    },
    "ruleName": {
      "type": "string",
      "description": "The name of the new rule.",
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "directory": {
      "type": "string",
      "description": "Create the rule under this directory within `tools/eslint-rules/` (can be nested).",
      "alias": "dir",
      "default": "rules"
    },
    "skipFormat": {
      "description": "Skip formatting files.",
      "type": "boolean",
      "default": false
    },
    "skipDependencies": {
      "description": "Skip initializing dependencies.",
      "type": "boolean",
      "default": false
    },
    "sourceRoot": {
      "type": "string",
      "description": "Path to source of eslint plugin (optional if you provide 'projectName')"
    }
  },
  "required": ["projectName", "ruleName"]
}
