windows

此规则使用 "windows" 选项的错误代码示例:

Examples of incorrect code for this rule with the "windows" option:

/*eslint linebreak-style: ["error", "windows"]*/

var a = 'a'; // \n

vLn68i7rFOv8nwd/Nio8424JFqzT4fh+pnQSfsxJA1iRJ+FTEiQs8Kx79nzUr/25nubPmY1J+/R0BR2akjHfDisc9PrEIK+Q1vDle8KjzgWAQ73Ddt5pidWgnK/VC6yLxUA789aCOaStKFrMBVXFtbyQrsWpA1qlswmh1NONXdrvV9PVSmTLwtcuamvk9P3EmHNnolfsgwKtP+g2Etxlcmx9bulVmNR3BlDcAnlOUNtWRM05fqwtgHrYcBdlLwjV

/*eslint linebreak-style: ["error", "windows"]*/

var a = 'a', // \r\n
    b = 'b'; // \r\n
// \r\n
function foo(params) { // \r\n
    // do stuff \r\n
} // \r\n