Skip to content

Commit

Permalink
Run ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed May 29, 2024
1 parent d78334f commit 305169b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
23 changes: 12 additions & 11 deletions bump-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
fs.writeFileSync('./package.json', JSON.stringify(pJson, null, 4))
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* * */

import nodeConfig from './rules/node.rule.js';
import nodeConfig from './rules/node.rule.js'

/* * */

export default nodeConfig;
export default nodeConfig
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -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,
};
node,
}

0 comments on commit 305169b

Please sign in to comment.