test: remove unnecessary `eslint-disable`
parent
3cc9083f1d
commit
ca7be87f9e
|
@ -1,27 +1,21 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`boolean flags do not swallow the next argument 1`] = `
|
||||
"/* eslint-disable */
|
||||
|
||||
console.log('could be single quote and without semi');
|
||||
"console.log('could be single quote and without semi');
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`boolean flags do not swallow the next argument 2`] = `""`;
|
||||
|
||||
exports[`negated options work 1`] = `
|
||||
"/* eslint-disable */
|
||||
|
||||
console.log(\\"could be single quote and without semi\\")
|
||||
"console.log(\\"could be single quote and without semi\\")
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`negated options work 2`] = `""`;
|
||||
|
||||
exports[`unknown negated options are warned 1`] = `
|
||||
"/* eslint-disable */
|
||||
|
||||
console.log(\\"could be single quote and without semi\\");
|
||||
"console.log(\\"could be single quote and without semi\\");
|
||||
"
|
||||
`;
|
||||
|
||||
|
@ -32,9 +26,7 @@ exports[`unknown negated options are warned 2`] = `
|
|||
`;
|
||||
|
||||
exports[`unknown options are warned 1`] = `
|
||||
"/* eslint-disable */
|
||||
|
||||
console.log(\\"could be single quote and without semi\\");
|
||||
"console.log(\\"could be single quote and without semi\\");
|
||||
"
|
||||
`;
|
||||
|
||||
|
|
|
@ -1,20 +1,15 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`CLI overrides take precedence 1`] = `
|
||||
"/* eslint-disable */
|
||||
console.log(
|
||||
"console.log(
|
||||
\\"should have semi\\"
|
||||
);
|
||||
/* eslint-disable */
|
||||
console.log(
|
||||
\\"should not have semi\\"
|
||||
)
|
||||
/* eslint-disable */
|
||||
console.log(
|
||||
\\"should have semi\\"
|
||||
);
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log(
|
||||
\\"should have tab width 8\\"
|
||||
|
@ -25,22 +20,16 @@ function f() {
|
|||
module.exports = {
|
||||
tabWidth: 8
|
||||
};
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log(
|
||||
\\"should have no semicolons\\"
|
||||
)
|
||||
}
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log(
|
||||
\\"should have tab width 3\\"
|
||||
);
|
||||
}
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log.apply(
|
||||
null,
|
||||
|
@ -55,9 +44,7 @@ function f() {
|
|||
`;
|
||||
|
||||
exports[`accepts configuration from --config 1`] = `
|
||||
"/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
"function f() {
|
||||
console.log(\\"should have tab width 8\\")
|
||||
}
|
||||
"
|
||||
|
@ -69,14 +56,9 @@ exports[`resolves configuration file with --find-config-path file 1`] = `
|
|||
`;
|
||||
|
||||
exports[`resolves configuration from external files 1`] = `
|
||||
"/* eslint-disable */
|
||||
console.log(\\"should have semi\\");
|
||||
/* eslint-disable */
|
||||
"console.log(\\"should have semi\\");
|
||||
console.log(\\"should not have semi\\")
|
||||
/* eslint-disable */
|
||||
console.log(\\"should have semi\\");
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log(\\"should have tab width 8\\");
|
||||
}
|
||||
|
@ -85,18 +67,12 @@ function f() {
|
|||
module.exports = {
|
||||
tabWidth: 8
|
||||
};
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log(\\"should have no semicolons\\")
|
||||
}
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log(\\"should have tab width 3\\");
|
||||
}
|
||||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log.apply(null, [
|
||||
'this file',
|
||||
|
|
|
@ -10,7 +10,7 @@ exports[`do not write file with --write + invalid file 1`] = `
|
|||
exports[`write file with --write + unformated file 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"content": "var x = 1; // eslint-disable-line
|
||||
"content": "var x = 1;
|
||||
",
|
||||
"filename": "unformated.js",
|
||||
},
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
/* eslint-disable */
|
||||
|
||||
console.log("could be single quote and without semi")
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
console.log("should not have semi")
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
console.log("should have semi");
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
console.log("should have semi");
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log("should have tab width 8");
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log("should have no semicolons");
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log("should have tab width 3");
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable */
|
||||
|
||||
function f() {
|
||||
console.log.apply(null, [
|
||||
"this file",
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
|
|
@ -1 +1 @@
|
|||
var x = 1; // eslint-disable-line
|
||||
var x = 1;
|
||||
|
|
|
@ -1 +1 @@
|
|||
var x = 1; // eslint-disable-line
|
||||
var x = 1;
|
Loading…
Reference in New Issue