Skip to content

Commit

Permalink
Update dependencies in tests (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 authored Mar 12, 2021
1 parent 4655fc1 commit cb48f59
Show file tree
Hide file tree
Showing 13 changed files with 2,097 additions and 1,734 deletions.
2 changes: 1 addition & 1 deletion test/linters/params/eslint-typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function getLintParams(dir) {
const stdoutFile1 = `{"filePath":"${joinDoubleBackslash(
dir,
"file1.ts",
)}","messages":[{"ruleId":"prefer-const","severity":2,"message":"'str' is never reassigned. Use 'const' instead.","line":1,"column":5,"nodeType":"Identifier","messageId":"useConst","endLine":1,"endColumn":8,"fix":{"range":[0,3],"text":"const"}},{"ruleId":"no-warning-comments","severity":1,"message":"Unexpected 'todo' comment: 'TODO: Change something'.","line":5,"column":31,"nodeType":"Line","messageId":"unexpectedComment","endLine":5,"endColumn":56}],"errorCount":1,"warningCount":1,"fixableErrorCount":1,"fixableWarningCount":0,"source":"let str = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main(): void {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n","usedDeprecatedRules":[]}`;
)}","messages":[{"ruleId":"prefer-const","severity":2,"message":"'str' is never reassigned. Use 'const' instead.","line":1,"column":5,"nodeType":"Identifier","messageId":"useConst","endLine":1,"endColumn":8,"fix":{"range":[0,18],"text":"const str = 'world';"}},{"ruleId":"no-warning-comments","severity":1,"message":"Unexpected 'todo' comment: 'TODO: Change something'.","line":5,"column":31,"nodeType":"Line","messageId":"unexpectedComment","endLine":5,"endColumn":56}],"errorCount":1,"warningCount":1,"fixableErrorCount":1,"fixableWarningCount":0,"source":"let str = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main(): void {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n","usedDeprecatedRules":[]}`;
const stdoutFile2 = `{"filePath":"${joinDoubleBackslash(
dir,
"file2.js",
Expand Down
2 changes: 1 addition & 1 deletion test/linters/params/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function getLintParams(dir) {
const stdoutFile1 = `{"filePath":"${joinDoubleBackslash(
dir,
"file1.js",
)}","messages":[{"ruleId":"prefer-const","severity":2,"message":"'str' is never reassigned. Use 'const' instead.","line":1,"column":5,"nodeType":"Identifier","messageId":"useConst","endLine":1,"endColumn":8,"fix":{"range":[0,3],"text":"const"}},{"ruleId":"no-warning-comments","severity":1,"message":"Unexpected 'todo' comment: 'TODO: Change something'.","line":5,"column":31,"nodeType":"Line","messageId":"unexpectedComment","endLine":5,"endColumn":56}],"errorCount":1,"warningCount":1,"fixableErrorCount":1,"fixableWarningCount":0,"source":"let str = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main() {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n","usedDeprecatedRules":[]}`;
)}","messages":[{"ruleId":"prefer-const","severity":2,"message":"'str' is never reassigned. Use 'const' instead.","line":1,"column":5,"nodeType":"Identifier","messageId":"useConst","endLine":1,"endColumn":8,"fix":{"range":[0,18],"text":"const str = 'world';"}},{"ruleId":"no-warning-comments","severity":1,"message":"Unexpected 'todo' comment: 'TODO: Change something'.","line":5,"column":31,"nodeType":"Line","messageId":"unexpectedComment","endLine":5,"endColumn":56}],"errorCount":1,"warningCount":1,"fixableErrorCount":1,"fixableWarningCount":0,"source":"let str = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main() {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n","usedDeprecatedRules":[]}`;
const stdoutFile2 = `{"filePath":"${joinDoubleBackslash(
dir,
"file2.js",
Expand Down
2 changes: 1 addition & 1 deletion test/linters/params/xo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function getLintParams(dir) {
const stdoutFile1 = `{"filePath":"${joinDoubleBackslash(
dir,
"file1.js",
)}","messages":[{"ruleId":"unicorn/prevent-abbreviations","severity":2,"message":"The variable \`str\` should be named \`string\`. A more descriptive name will do too.","line":1,"column":5,"nodeType":"Identifier","endLine":1,"endColumn":8,"fix":{"range":[4,123],"text":"string = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main() {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + string"}},{"ruleId":"prefer-const","severity":2,"message":"'str' is never reassigned. Use 'const' instead.","line":1,"column":5,"nodeType":"Identifier","messageId":"useConst","endLine":1,"endColumn":8,"fix":{"range":[0,3],"text":"const"}},{"ruleId":"no-warning-comments","severity":1,"message":"Unexpected 'todo' comment: 'TODO: Change something'.","line":5,"column":31,"nodeType":"Line","messageId":"unexpectedComment","endLine":5,"endColumn":56}],"errorCount":2,"warningCount":1,"fixableErrorCount":2,"fixableWarningCount":0,"source":"let str = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main() {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n"}`;
)}","messages":[{"ruleId":"unicorn/prevent-abbreviations","severity":2,"message":"The variable \`str\` should be named \`string\`. A more descriptive name will do too.","line":1,"column":5,"nodeType":"Identifier","endLine":1,"endColumn":8,"fix":{"range":[4,123],"text":"string = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main() {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + string"}},{"ruleId":"prefer-const","severity":2,"message":"'str' is never reassigned. Use 'const' instead.","line":1,"column":5,"nodeType":"Identifier","messageId":"useConst","endLine":1,"endColumn":8,"fix":{"range":[0,18],"text":"const str = 'world';"}},{"ruleId":"no-warning-comments","severity":1,"message":"Unexpected 'todo' comment: 'TODO: Change something'.","line":5,"column":31,"nodeType":"Line","messageId":"unexpectedComment","endLine":5,"endColumn":56}],"errorCount":2,"warningCount":1,"fixableErrorCount":2,"fixableWarningCount":0,"source":"let str = 'world'; // \\"prefer-const\\" warning\\n\\nfunction main() {\\n\\t// \\"no-warning-comments\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n"}`;
const stdoutFile2 = `{"filePath":"${joinDoubleBackslash(
dir,
"file2.js",
Expand Down
8 changes: 4 additions & 4 deletions test/linters/projects/eslint-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"main": "index.js",
"private": true,
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0",
"eslint": "^7.11.0",
"typescript": "^4.0.3"
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"eslint": "^7.21.0",
"typescript": "^4.2.3"
}
}
Loading

0 comments on commit cb48f59

Please sign in to comment.