Browse Source

Updated the settings of the static analyzer

master
Cédric Belin 6 months ago
parent
commit
719b73398b
3 changed files with 2 additions and 3 deletions
  1. +0
    -1
      etc/eslint.yaml
  2. +1
    -1
      lib/checker.js
  3. +1
    -1
      src/checker.ts

+ 0
- 1
etc/eslint.yaml View File

@@ -127,7 +127,6 @@ rules:
arrow-parens: [error, as-needed]
arrow-spacing: error
generator-star-spacing: error
no-confusing-arrow: error
no-dupe-class-members: 'off'
no-duplicate-imports: error
no-useless-computed-key: error


+ 1
- 1
lib/checker.js View File

@@ -66,7 +66,7 @@ export class Checker extends Transform {
* @return The transformed chunk.
*/
async _transform(file, encoding = 'utf8', callback) {
const getDeps = (mf) => (this.verbose ? this.getDependencies(mf) : this.getUpdatedDependencies(mf));
const getDeps = (mf) => this.verbose ? this.getDependencies(mf) : this.getUpdatedDependencies(mf);
try {
const manifest = this.parseManifest(file);
const deps = await getDeps(manifest);


+ 1
- 1
src/checker.ts View File

@@ -100,7 +100,7 @@ export class Checker extends Transform {
* @return The transformed chunk.
*/
async _transform(file: File, encoding: string = 'utf8', callback?: TransformCallback): Promise<File> {
const getDeps = (mf: object): Promise<DependencyReport> => (this.verbose ? this.getDependencies(mf) : this.getUpdatedDependencies(mf));
const getDeps = (mf: object): Promise<DependencyReport> => this.verbose ? this.getDependencies(mf) : this.getUpdatedDependencies(mf);

try {
const manifest = this.parseManifest(file);


Loading…
Cancel
Save