1 # disallow mixed spaces and tabs for indentation (no-mixed-spaces-and-tabs)
3 Most code conventions require either tabs or spaces be used for indentation. As such, it's usually an error if a single line of code is indented with both tabs and spaces.
7 This rule disallows mixed spaces and tabs for indentation.
9 Examples of **incorrect** code for this rule:
12 /*eslint no-mixed-spaces-and-tabs: "error"*/
15 // --->..return x + y;
29 Examples of **correct** code for this rule:
32 /*eslint no-mixed-spaces-and-tabs: "error"*/
42 This rule has a string option.
44 * `"smart-tabs"` allows mixed tabs and spaces when the spaces are used for alignment.
48 Examples of **correct** code for this rule with the `"smart-tabs"` option:
51 /*eslint no-mixed-spaces-and-tabs: ["error", "smart-tabs"]*/
65 * [Smart Tabs](https://www.emacswiki.org/emacs/SmartTabs)