diff --git a/.eslintrc.cjs b/.eslintrc.json similarity index 59% rename from .eslintrc.cjs rename to .eslintrc.json index 774a581..67de5ee 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.json @@ -1,15 +1,15 @@ -module.exports = { - env: { - es2021: true, - node: true, +{ + "env": { + "es2021": true, + "node": true }, - extends: ["xo", "prettier"], - plugins: ["import"], - overrides: [ + "extends": ["xo", "prettier"], + "plugins": ["import"], + "overrides": [ { - extends: ["xo-typescript", "prettier"], - files: ["*.ts", "*.tsx"], - rules: { + "extends": ["xo-typescript", "prettier"], + "files": ["*.ts", "*.tsx"], + "rules": { "import/first": "error", "import/no-duplicates": "error", "no-duplicate-imports": "error", @@ -17,24 +17,24 @@ module.exports = { "no-unused-vars": ["error"], "@typescript-eslint/consistent-type-definitions": [ "error", - "interface", + "interface" ], "@typescript-eslint/indent": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-extraneous-class": "off", - "guard-for-in": "off", - }, - }, + "guard-for-in": "off" + } + } ], - parserOptions: { - ecmaVersion: "latest", - sourceType: "module", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" }, - rules: { + "rules": { "import/first": "error", "import/no-duplicates": "error", "no-duplicate-imports": "error", - "no-implicit-coercion": "off", - }, -}; + "no-implicit-coercion": "off" + } +} diff --git a/.npmignore b/.npmignore index 160c01c..e5062b3 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,6 @@ .editorconfig -.eslintrc.cjs +.eslintrc.json +rome.json tsconfig.json renovate.json node_modules/ diff --git a/package.json b/package.json index 44898f5..87bc3a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "util-tiempo", - "version": "1.0.46", + "version": "1.0.47", "description": "util-tiempo para calcular tiempos, para obtener la fecha a elegir, con muchas opciones!", "author": "Tutitoos", "license": "MIT",