dekk-app/react-mops

View on GitHub
packages/react-mops/src/hooks/mouse-event-hooks.ts

Summary

Maintainability
D
1 day
Test Coverage

Function useMouseMove has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useMouseMove = (
    onMouseUp: Mops.MouseHandler,
    onMouseMove: Mops.MouseHandler,
    scale: number,
    rotation?: Mops.RotationModel
Severity: Major
Found in packages/react-mops/src/hooks/mouse-event-hooks.ts - About 2 hrs to fix

    Function useMouseMoveEvent has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const useMouseMoveEvent = (
        onMouseUp: (event: MouseEvent) => void,
        onMouseMove: (event: MouseEvent) => void,
        onMouseDown: (event: React.MouseEvent<HTMLElement>) => void
    ) => {
    Severity: Major
    Found in packages/react-mops/src/hooks/mouse-event-hooks.ts - About 2 hrs to fix

      Function useMouseMove has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
      Open

      export const useMouseMove = (
          onMouseUp: Mops.MouseHandler,
          onMouseMove: Mops.MouseHandler,
          scale: number,
          rotation?: Mops.RotationModel
      Severity: Minor
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts - About 55 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function useMouseMoveEvent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      export const useMouseMoveEvent = (
          onMouseUp: (event: MouseEvent) => void,
          onMouseMove: (event: MouseEvent) => void,
          onMouseDown: (event: React.MouseEvent<HTMLElement>) => void
      ) => {
      Severity: Minor
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Similar blocks of code found in 4 locations. Consider refactoring.
      Open

          React.useEffect(() => {
              document.addEventListener("mouseleave", handleMouseUp);
              document.addEventListener("mouseup", handleMouseUp);
              return () => {
                  document.removeEventListener("mouseleave", handleMouseUp);
      Severity: Major
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts and 3 other locations - About 2 hrs to fix
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 122..129
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 131..138
      packages/react-mops/src/hooks/use-hooks.ts on lines 58..65

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 75.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 4 locations. Consider refactoring.
      Open

          React.useEffect(() => {
              window.addEventListener("focus", handleFocus);
              window.addEventListener("blur", handleFocus);
              return () => {
                  document.removeEventListener("focus", handleFocus);
      Severity: Major
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts and 3 other locations - About 2 hrs to fix
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 58..65
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 131..138
      packages/react-mops/src/hooks/use-hooks.ts on lines 58..65

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 75.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 4 locations. Consider refactoring.
      Open

          React.useEffect(() => {
              document.addEventListener("mouseleave", handleMouseUp);
              document.addEventListener("mouseup", handleMouseUp);
              return () => {
                  document.removeEventListener("mouseleave", handleMouseUp);
      Severity: Major
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts and 3 other locations - About 2 hrs to fix
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 58..65
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 122..129
      packages/react-mops/src/hooks/use-hooks.ts on lines 58..65

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 75.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      export const useHandleMouse = ({
          addGuides,
          currentRotation,
          currentSize,
          initialPosition,
      Severity: Major
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts and 1 other location - About 1 hr to fix
      packages/react-mops/src/box.tsx on lines 182..194

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 56.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 4 locations. Consider refactoring.
      Open

          React.useEffect(() => {
              document.addEventListener("mousemove", handleMouseMove);
              return () => {
                  document.removeEventListener("mousemove", handleMouseMove);
              };
      Severity: Major
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts and 3 other locations - About 50 mins to fix
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 67..72
      packages/react-mops/src/hooks/use-hooks.ts on lines 67..72
      packages/react-mops/src/hooks/use-hooks.ts on lines 74..79

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 51.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 4 locations. Consider refactoring.
      Open

          React.useEffect(() => {
              document.addEventListener("mousemove", handleMouseMove);
              return () => {
                  document.removeEventListener("mousemove", handleMouseMove);
              };
      Severity: Major
      Found in packages/react-mops/src/hooks/mouse-event-hooks.ts and 3 other locations - About 50 mins to fix
      packages/react-mops/src/hooks/mouse-event-hooks.ts on lines 140..145
      packages/react-mops/src/hooks/use-hooks.ts on lines 67..72
      packages/react-mops/src/hooks/use-hooks.ts on lines 74..79

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 51.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      space indentation expected
      Open

                      const rotatedPosition = getRotatedPosition(event);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      setDown(false);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      setInitialPosition({x: event.clientX, y: event.clientY});

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const [isDown, setDown] = React.useState(false);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      event.preventDefault();

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              setDown(false);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("mouseup", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      !contentRef ||

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [contentRef, initialRotation, isRotatable]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                              {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                              model

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  ) as Mops.PositionModel;

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("focus", handleFocus);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              document.addEventListener("mousemove", handleMouseMove);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("mousemove", handleMouseMove);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const [initialPosition, setInitialPosition] = React.useState<Mops.PositionModel>({

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              x: 0,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      event.preventDefault();

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      const rotatedPosition = getRotatedPosition(event);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("mousemove", handleMouseMove);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          }, [setDown]);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      event.preventDefault();

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  }

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const center = {x: width / 2, y: height / 2};

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              ({x, y}) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("blur", handleFocus);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: MouseEvent): Mops.PositionModel => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [setDown, onMouseUp, getRotatedPosition]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              document.addEventListener("mouseup", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      event.preventDefault();

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: MouseEvent) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("focus", handleFocus);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          React.useEffect(() => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: React.MouseEvent<HTMLElement>) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      onMouseDown(event);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const deg = coordinatesToDeg(pointer, center);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      (model, fn) => ({

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  rotation: currentRotation,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              document.addEventListener("mouseleave", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              document.addEventListener("mouseleave", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          onMouseUp: Mops.MouseHandler,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          scale: number,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              return () => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("mouseup", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  if (isDown) {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  if (isDown) {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              document.addEventListener("mousemove", handleMouseMove);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      !(contentRef as React.RefObject<HTMLElement>).current

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  >).current.getBoundingClientRect();

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                          : newRotationZ

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  guides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  hideGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  if ((event.target as HTMLElement).tagName !== "INPUT" && event.button !== 2) {

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              document.addEventListener("mouseup", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          rotation?: Mops.RotationModel

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          });

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: MouseEvent) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  if (isDown) {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  }

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      setDown(true);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              return () => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const handleDown = React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      event.preventDefault();

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  if (

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  ) {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      HTMLElement

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                          ? to360(initialRotation.z)

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          initialPosition,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const newPosition = {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      x: initialPosition.x + x,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      }),

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [currentSize, currentRotation, initialPosition, shouldSnap, showGuides, hideGuides]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          onMouseDown: (event: React.MouseEvent<HTMLElement>) => void

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      setDown(false);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  }

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              return () => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("blur", handleFocus);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          }, [handleMouseMove]);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                          ? Math.round(newRotationZ / 15) * 15

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      deg,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          currentRotation,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          hideGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      newPosition

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      y: (event.clientY - initialPosition.y) / scale

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              document.addEventListener("mousemove", handleMouseMove);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          }, [handleMouseMove]);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          React.useEffect(() => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("mouseleave", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  }

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      x: state.x,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          addGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          currentSize,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          guides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          showGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                      ...currentSize,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  removeGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              document.addEventListener("mousemove", handleMouseMove);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              window.addEventListener("blur", handleFocus);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const handleMouseUp = React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      onMouseUp(rotatedPosition, event.altKey, event.shiftKey, event);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      onMouseMove(rotatedPosition, event.altKey, event.shiftKey, event);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  if ((event.target as HTMLElement).tagName !== "INPUT" && event.button !== 2) {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [initialPosition, scale, rotation]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("mousemove", handleMouseMove);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  }

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      !isRotatable ||

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          React.useEffect(() => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const newRotationZ = to360(initialRotation.z + (deg - additionalAngle.z));

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      rotation: newRotation

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          onMouseMove: (event: MouseEvent) => void,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      y: initialPosition.y + y

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                      angle: currentRotation.z

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: MouseEvent) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                              {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

      import React from "react";

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      setDown(true);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("mouseleave", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const newRotation = (state: Mops.RotationModel) => ({

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          shouldSnap,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          removeGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              document.addEventListener("mouseup", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              y: 0

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const handleFocus = React.useCallback(() => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [onMouseMove]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  if ((event.target as HTMLElement).tagName !== "INPUT" && event.button !== 2) {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const {left, top, width, height} = (contentRef as React.RefObject<

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                          : event.shiftKey

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  return shouldSnap.reduce(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  showGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

      import {Mops} from "../types";

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  if ((event.target as HTMLElement).tagName !== "INPUT" && event.button !== 2) {

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const getRotatedPosition = React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          }, [handleMouseUp]);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: React.MouseEvent<HTMLElement>) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          }, [handleFocus]);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              document.addEventListener("mouseup", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: MouseEvent) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  position: newPosition,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  if (isDown) {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          React.useEffect(() => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("mousemove", handleMouseMove);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const handleMouseUp = React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("mouseleave", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      onMouseMove(event);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              document.addEventListener("mouseleave", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          return [isDown, handleDown] as [boolean, (e: React.MouseEvent<HTMLElement>) => void];

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              (event: React.MouseEvent<HTMLElement> | MouseEvent, init?: boolean) => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  size: getBoundingBox({

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

      import {coordinatesToDeg, degToRad, getBoundingBox, to360, withRotation} from "../utils";

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          onMouseMove: Mops.MouseHandler,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      event.preventDefault();

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              return () => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  }

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const handleMouseMove = React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              window.addEventListener("focus", handleFocus);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              return () => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          React.useEffect(() => {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const {clientX, clientY} = event;

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      y: state.y,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  });

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  guideRequests,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                          ) as Mops.SnapHandler)

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("mouseup", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

                  document.removeEventListener("mouseup", handleMouseUp);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const [isDown, setDown] = React.useState(false);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const newPosition = {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              document.addEventListener("mouseleave", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          onMouseUp: (event: MouseEvent) => void,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  const pointer = {x: clientX - left, y: clientY - top};

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  return {

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const handleMouseMove = React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  };

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [onMouseMove, getRotatedPosition]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          );

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  document.removeEventListener("mouseleave", handleMouseUp);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          updateGuide

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  addGuides,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          const handleDown = React.useCallback(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              },

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      x: (event.clientX - initialPosition.x) / scale,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [setInitialPosition, setDown]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  return rotation ? withRotation(newPosition.x, newPosition.y, rotation.z) : newPosition;

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      onMouseUp(event);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          return [isDown, handleDown] as [boolean, (e: React.MouseEvent<HTMLElement>) => void];

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [onMouseUp, setDown]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              window.addEventListener("blur", handleFocus);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                  }

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          }, [handleMouseUp]);

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      return false;

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

              [onMouseDown, setDown]

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                      z: init

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

          guideRequests,

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                          ...(fn(

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  })

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      space indentation expected
      Open

                                  updateGuide

      Rule: indent

      Enforces indentation with tabs or spaces.

      Rationale

      Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

      Notes
      • Has Fix

      Config

      One of the following arguments must be provided:

      • spaces enforces consistent spaces.
      • tabs enforces consistent tabs.

      A second optional argument specifies indentation size:

      • 2 enforces 2 space indentation.
      • 4 enforces 4 space indentation.

      Indentation size is required for auto-fixing, but not for rule checking.

      NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

      Examples
      "indent": true,spaces
      "indent": true,spaces,4
      "indent": true,tabs,2
      Schema
      {
        "type": "array",
        "items": [
          {
            "type": "string",
            "enum": [
              "tabs",
              "spaces"
            ]
          },
          {
            "type": "number",
            "enum": [
              2,
              4
            ]
          }
        ],
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      " should be '
      Open

              window.addEventListener("focus", handleFocus);

      Rule: quotemark

      Enforces quote character for string literals.

      Notes
      • Has Fix

      Config

      Five arguments may be optionally provided:

      • "single" enforces single quotes.
      • "double" enforces double quotes.
      • "backtick" enforces backticks.
      • "jsx-single" enforces single quotes for JSX attributes.
      • "jsx-double" enforces double quotes for JSX attributes.
      • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
      • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
      Examples
      "quotemark": true,single,avoid-escape,avoid-template
      "quotemark": true,single,jsx-double
      Schema
      {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "single",
            "double",
            "backtick",
            "jsx-single",
            "jsx-double",
            "avoid-escape",
            "avoid-template"
          ]
        },
        "minLength": 0,
        "maxLength": 5
      }

      For more information see this page.

      There are no issues that match your filters.

      Category
      Status