File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "NOT_A_SECRET" :" Hopefully not a secret"
2
+ "NOT_A_SECRET" :" Hopefully not a secret" ,
3
+ "NOT_A_SECRET_ARRAY" :[" No secrets here" ]
3
4
}
File renamed without changes.
Original file line number Diff line number Diff line change 1
- const exec = require ( 'util' ) . promisify ( require ( 'child_process' ) . execFile ) ;
1
+ const path = require ( 'path' ) ;
2
2
const ESLint = require ( "eslint" ) . ESLint ;
3
3
const assert = require ( 'assert' ) ;
4
4
5
5
6
6
const TESTS = {
7
- './staging.config .js' :[
7
+ 'jsonc.eslintrc .js' :[
8
8
{
9
9
name :'Should not detect non-secrets' ,
10
10
file :'./staging/has-no-secret.json' ,
@@ -22,7 +22,7 @@ const TESTS = {
22
22
describe ( 'JSON compat testing' , async ( ) => {
23
23
const configs = Object . entries ( TESTS ) ;
24
24
for ( const [ config , tests ] of configs ) {
25
- const eslint = new ESLint ( ) ;
25
+ const eslint = new ESLint ( { overrideConfigFile : path . join ( __dirname , config ) } ) ;
26
26
const files = tests . map ( test => test . file ) ;
27
27
const results = await eslint . lintFiles ( files ) ;
28
28
describe ( config , ( ) => {
You can’t perform that action at this time.
0 commit comments