mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure the JS-linter is running on all the tests files.
This commit is contained in:
parent
92ba055d66
commit
31e73f4096
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint no-console:off */
|
||||
/* eslint no-undef:off */
|
||||
'use strict';
|
||||
|
||||
const debug = (process.argv.indexOf('--debug') > -1),
|
||||
@ -18,9 +19,9 @@ if (debug) {
|
||||
require('debug').enable('eslint:*,-eslint:code-path');
|
||||
}
|
||||
|
||||
const fs = require('fs'),
|
||||
path = require('path'),
|
||||
read = (dir) =>
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const read = (dir) =>
|
||||
fs.readdirSync(dir)
|
||||
.reduce((files, file) =>
|
||||
fs.statSync(path.join(dir, file)).isDirectory() ?
|
||||
@ -38,6 +39,6 @@ process.exitCode = eslint_cli.execute(
|
||||
file_argv > -1 ? argv : argv.concat(
|
||||
read(path.join(__dirname, 'pgadmin'))
|
||||
).concat(
|
||||
'regression/javascript/**/*.jsx regression/javascript/**/*.js *.js'
|
||||
['regression/javascript/**/*.jsx','regression/javascript/**/*.js','*.js']
|
||||
)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user