{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/coffeelint-json/latest.json",
  "title": "JSON schema for coffeelint.json files",
  "x-lintel": {
    "source": "https://www.schemastore.org/coffeelint.json",
    "sourceSha256": "f3351570a87a5b4b3483640a15657a70e735f8040cf20274e0d76a57d9550753",
    "fileMatch": [
      "coffeelint.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "arrow_spacing": {
      "description": "This rule checks to see that there is spacing before and after the arrow operator that declares a function. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "braces_spacing": {
      "description": "This rule checks to see that there is the proper spacing inside curly braces. The spacing amount is specified by `spaces`. The spacing amount for empty objects is specified by `empty_object_spaces`. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "empty_object_spaces": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        },
        "spaces": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "type": "object"
    },
    "camel_case_classes": {
      "description": "This rule mandates that all class names are CamelCased. Camel casing class names is a generally accepted way of distinguishing constructor functions - which require the `new` prefix to behave properly - from plain old functions. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "coffeescript_error": {
      "description": "[default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "colon_assignment_spacing": {
      "description": "This rule checks to see that there is spacing before and after the colon in a colon assignment (i.e., classes, objects). [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "spacing": {
          "type": "object",
          "properties": {
            "left": {
              "type": "integer",
              "enum": [
                0,
                1
              ]
            },
            "right": {
              "type": "integer",
              "enum": [
                0,
                1
              ]
            }
          }
        }
      },
      "type": "object"
    },
    "cyclomatic_complexity": {
      "description": "Examine the complexity of your application. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "value": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "duplicate_key": {
      "description": "Prevents defining duplicate keys in object literals and classes. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "empty_constructor_needs_parens": {
      "description": "Requires constructors with no parameters to include the parens. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "ensure_comprehensions": {
      "description": "This rule makes sure that parentheses are around comprehensions. [default level: warn]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "eol_last": {
      "description": "Checks that the file ends with a single newline. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "indentation": {
      "description": "This rule imposes a standard number of spaces to be used for indentation. Since whitespace is significant in CoffeeScript, it's critical that a project chooses a standard indentation format and stays consistent. Other roads lead to darkness. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "value": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "line_endings": {
      "description": "This rule ensures your project uses only windows or unix line endings. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "value": {
          "type": "string",
          "enum": [
            "unix",
            "windows"
          ]
        }
      },
      "type": "object"
    },
    "max_line_length": {
      "description": "This rule imposes a maximum line length on your code. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "value": {
          "type": "integer"
        },
        "limitComments": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "missing_fat_arrows": {
      "description": "Warns when you use `this` inside a function that wasn't defined with a fat arrow. This rule does not apply to methods defined in a class, since they have `this` bound to the class instance (or the class itself, for class methods). [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "newlines_after_classes": {
      "description": "Checks the number of newlines between classes and other code. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "value": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "no_backticks": {
      "description": "Backticks allow snippets of JavaScript to be embedded in CoffeeScript. While some folks consider backticks useful in a few niche circumstances, they should be avoided because so none of JavaScript's 'bad parts', like with and eval, sneak into CoffeeScript. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_debugger": {
      "description": "This rule detects the `debugger` statement. [default level: warn]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_empty_functions": {
      "description": "Disallows declaring empty functions. The goal of this rule is that unintentional empty callbacks can be detected. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_empty_param_list": {
      "description": "This rule prohibits empty parameter lists in function definitions. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_implicit_braces": {
      "description": "This rule prohibits implicit braces when declaring object literals. Implicit braces can make code more difficult to understand, especially when used in combination with optional parenthesis. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "strict": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "no_implicit_parens": {
      "description": "This rule prohibits implicit parens on function calls. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_interpolation_in_single_quotes": {
      "description": "This rule prohibits string interpolation in a single quoted string. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_nested_string_interpolation": {
      "description": "This rule warns about nested string interpolation, as it tends to make code harder to read and understand. [default level: warn]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_plusplus": {
      "description": "This rule forbids the increment and decrement arithmetic operators. Some people believe the `++` and `--` to be cryptic and the cause of bugs due to misunderstandings of their precedence rules. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_private_function_fat_arrows": {
      "description": "Warns when you use the fat arrow for a private function inside a class definition scope. It is not necessary and it does not do anything. [default level: warn]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_stand_alone_at": {
      "description": "This rule checks that no stand alone `@` are in use, they are discouraged. [default level: ignore]",
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_tabs": {
      "description": "This rule forbids tabs in indentation. Enough said. [default level: error]",
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_this": {
      "description": "This rule prohibits `this`. Use `@` instead. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_throwing_strings": {
      "description": "This rule forbids throwing string literals or interpolations. While JavaScript (and CoffeeScript by extension) allow any expression to be thrown, it is best to only throw `Error` objects, because they contain valuable debugging information like the stack trace. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_trailing_semicolons": {
      "description": "This rule prohibits trailing semicolons, since they are needless cruft in CoffeeScript. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_trailing_whitespace": {
      "description": "This rule forbids trailing whitespace in your code, since it is needless cruft. [default level: error]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ],
      "properties": {
        "allowed_in_comments": {
          "type": "boolean"
        },
        "allowed_in_empty_lines": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "no_unnecessary_double_quotes": {
      "description": "This rule prohibits double quotes unless string interpolation is used or the string contains single quotes. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "no_unnecessary_fat_arrows": {
      "description": "Disallows defining functions with fat arrows when `this` is not used within the function.  [default level: warn]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "non_empty_constructor_needs_parens": {
      "description": "Requires constructors with parameters to include the parens. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "prefer_english_operator": {
      "description": "This rule prohibits `&&`, `||`, `==`, `!=` and `!`. Use `and`, `or`, `is`, `isnt`, and `not` instead. `!!` (for converting to a boolean) is ignored. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "space_operators": {
      "description": "This rule enforces that operators have space around them.  [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "spacing_after_comma": {
      "description": "This rule checks to make sure you have a space after commas. [default level: ignore]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    },
    "transform_messes_up_line_numbers": {
      "description": "This rule detects when changes are made by transform function, and warns that line numbers are probably incorrect. [default level: warn]",
      "allOf": [
        {
          "$ref": "#/$defs/base"
        }
      ]
    }
  },
  "id": "https://json.schemastore.org/coffeelint.json",
  "$defs": {
    "base": {
      "type": "object",
      "properties": {
        "level": {
          "description": "Determines the error level",
          "type": "string",
          "enum": [
            "error",
            "warn",
            "ignore"
          ]
        }
      }
    }
  },
  "additionalProperties": true
}
