Skip to content

Commit

Permalink
make sure test file hits all plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Nov 1, 2023
1 parent cd66504 commit f8f63c3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 8 deletions.
21 changes: 18 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
export function test_fn(varName) {
// This function is purposely formatted badly to ensure the
/* eslint-disable no-multi-spaces */
import './missing';
export async function test_fn(varName) {
// This files has purposely formatted badly to ensure the
// ESLint configuration is loading correctly.
return varName + ' ' + 2;
var VAR = /[0-9\d]/g;
return varName + 'test' + ' ' + 2;
}
let tst = `test`;
async function promiseTst(param1, param2, param3, param4, param5, param6) {
return new Promise(function (resolve, reject) {
for (let i = 1; i <= 1; i++) {
//
}
if (1 == 1)
return 'test' + 'test' + 'test' + 'test' + 'test';
return 'test' | 'test';
}).then((val) => {
});
}
32 changes: 27 additions & 5 deletions test/test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@

/* eslint-disable no-multi-spaces */

import path from 'path'
import fs from 'fs'

export function test_fn (varName) {
import './missing'


// This function is purposely formatted badly to ensure the
// ESLint configuration is loading correctly.
export async function test_fn (varName) {

// This files has purposely formatted badly to ensure the
// ESLint configuration is loading correctly.

var VAR = /[0-9\d]/g

return varName + ' ' + 2;
return varName + 'test' + ' ' + 2;

}

let tst = `test`

async function promiseTst (param1, param2, param3, param4, param5, param6) {
return new Promise(function (resolve, reject) {
for (let i = 1; i <= 1; i ++) {
//
}

if (1 == 1)
return 'test' + 'test' + 'test' + 'test'+ 'test'
return 'test' | 'test'
}).then((val) => {

})
}

}

0 comments on commit f8f63c3

Please sign in to comment.