test: add eslint config validation

This commit is contained in:
Rainer Killinger
2022-04-25 12:58:21 +02:00
parent 7a841a554a
commit ab6173ccff
5 changed files with 1274 additions and 154 deletions

12
test/test-file.ts Normal file
View File

@@ -0,0 +1,12 @@
/**
* Simple TS source file to get linted
* Can be used to verify new/changed rule behavior
*/
function addNumbers(a: number, b: number) {
return a + b;
}
const sum: number = addNumbers(10, 15);
// eslint-disable-next-line no-console
console.log('Sum of the two numbers is: ' + sum);