From 305169b3935bc49a00a210fceb9dae863f9da442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20de=20Vasconcelos?= Date: Wed, 29 May 2024 01:03:04 +0100 Subject: [PATCH] Run ESLint --- bump-version.js | 23 ++++++++++++----------- eslint.config.js | 4 ++-- index.ts | 8 ++++---- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/bump-version.js b/bump-version.js index f38c0f9..84afecf 100644 --- a/bump-version.js +++ b/bump-version.js @@ -3,20 +3,21 @@ /* * */ -import fs from 'fs'; -import pJson from './package.json' with { type: 'json' }; +import fs from 'fs' + +import pJson from './package.json' with { type: 'json' } /* * */ -const now = new Date; -const year = now.getFullYear(); -const month = Number(now.getMonth() + 1); -const day = Number(now.getDate()); -const hours = Number(now.getHours()); -const minutes = Number(now.getMinutes()); +const now = new Date() +const year = now.getFullYear() +const month = Number(now.getMonth() + 1) +const day = Number(now.getDate()) +const hours = Number(now.getHours()) +const minutes = Number(now.getMinutes()) -const version = `${year}.${month}.${day}${hours}${minutes}`; +const version = `${year}.${month}.${day}${hours}${minutes}` -pJson.version = version; +pJson.version = version -fs.writeFileSync('./package.json', JSON.stringify(pJson, null, 4)); \ No newline at end of file +fs.writeFileSync('./package.json', JSON.stringify(pJson, null, 4)) diff --git a/eslint.config.js b/eslint.config.js index 81306b7..0de57da 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,7 +1,7 @@ /* * */ -import nodeConfig from './rules/node.rule.js'; +import nodeConfig from './rules/node.rule.js' /* * */ -export default nodeConfig; \ No newline at end of file +export default nodeConfig diff --git a/index.ts b/index.ts index 1d24644..028ba12 100644 --- a/index.ts +++ b/index.ts @@ -1,11 +1,11 @@ /* * */ -import node from './rules/node.rule.js'; -import next from './rules/next.rule.js'; +import next from './rules/next.rule.js' +import node from './rules/node.rule.js' /* * */ export { - node, next, -}; \ No newline at end of file + node, +}