mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
linting for generated node/index.mjs
This commit is contained in:
parent
6db9521419
commit
dcf6564d0a
2 changed files with 6 additions and 4 deletions
|
@ -10,7 +10,6 @@
|
|||
*/
|
||||
|
||||
/*eslint no-console: 0 */
|
||||
/* eslint camelcase: 0 */
|
||||
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
@ -33,6 +32,9 @@ let code = `/**
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
/* eslint camelcase: 0 */
|
||||
|
||||
|
||||
import "babel-polyfill";
|
||||
import { wrap, translateTo } from "./apiUtils";
|
||||
import {
|
||||
|
@ -67,7 +69,7 @@ function generateChef() {
|
|||
`;
|
||||
|
||||
Object.keys(operations).forEach((op) => {
|
||||
code += ` '${decapitalise(op)}': wrap(core_${op}),\n`;
|
||||
code += ` "${decapitalise(op)}": wrap(core_${op}),\n`;
|
||||
});
|
||||
|
||||
code += ` };
|
||||
|
@ -78,7 +80,7 @@ chef.translateTo = translateTo;
|
|||
`;
|
||||
|
||||
Object.keys(operations).forEach((op) => {
|
||||
code += `const ${decapitalise(op)} = chef['${decapitalise(op)}'];\n`;
|
||||
code += `const ${decapitalise(op)} = chef.${decapitalise(op)};\n`;
|
||||
});
|
||||
|
||||
code +=`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue