mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 21:25:53 +08:00
chore: removed unnessesary eslint check (#1668)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
This commit is contained in:
parent
78d2377520
commit
b8c58a9812
@ -1,7 +1,3 @@
|
|||||||
/* eslint-disable */
|
|
||||||
// @ts-ignore
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const glob = require('glob');
|
const glob = require('glob');
|
||||||
@ -15,7 +11,7 @@ function generateChecksum(str, algorithm, encoding) {
|
|||||||
|
|
||||||
const result = {};
|
const result = {};
|
||||||
|
|
||||||
glob.sync(`public/locales/**/*.json`).forEach(path => {
|
glob.sync(`public/locales/**/*.json`).forEach((path) => {
|
||||||
const [_, lang] = path.split('public/locales');
|
const [_, lang] = path.split('public/locales');
|
||||||
const content = fs.readFileSync(path, { encoding: 'utf-8' });
|
const content = fs.readFileSync(path, { encoding: 'utf-8' });
|
||||||
result[lang.replace('.json', '')] = generateChecksum(content);
|
result[lang.replace('.json', '')] = generateChecksum(content);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user