diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index 56d6de8..0000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,14 +0,0 @@ -env: - node: true - mocha: true - es2020: true - es2021: true - -root: true - -extends: - - eslint:recommended - - prettier - -ignorePatterns: - - 'package-lock.json' diff --git a/.release b/.release index 2c9d138..80c3d1a 160000 --- a/.release +++ b/.release @@ -1 +1 @@ -Subproject commit 2c9d1384a3929cd4199fbcbc6519959c44381e25 +Subproject commit 80c3d1a67344cc321e054a23a8b4ae59b284909a diff --git a/CHANGELOG.md b/CHANGELOG.md index db047cc..fc70cf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,17 @@ +# Changelog + +The format is based on [Keep a Changelog](https://keepachangelog.com/). + # CHANGES ### Unreleased +### [0.8.1] - 2024-12-16 + +- doc(CONTRIBUTORS): added +- dep(eslint): bump to 9.17.0 +- dep(joi): bump to 17.3.3 + ### [0.8.0] - 2024-03-06 - feat(nameserver): added GET_req, GET_res, POST, DELETE @@ -50,6 +60,13 @@ - feat: import user & group tests from v2 - add group & permission +[0.1.0]: https://github.com/NicTool/validate/releases/tag/0.1.0 +[0.1.1]: https://github.com/NicTool/validate/releases/tag/0.1.1 +[0.3.0]: https://github.com/NicTool/validate/releases/tag/0.3.0 +[0.4.0]: https://github.com/NicTool/validate/releases/tag/0.4.0 +[0.5.0]: https://github.com/NicTool/validate/releases/tag/0.5.0 +[0.6.0]: https://github.com/NicTool/validate/releases/tag/0.6.0 +[0.6.1]: https://github.com/NicTool/validate/releases/tag/0.6.1 [0.6.3]: https://github.com/NicTool/validate/releases/tag/0.6.3 [0.7.0]: https://github.com/NicTool/validate/releases/tag/0.7.0 [0.7.1]: https://github.com/NicTool/validate/releases/tag/0.7.1 @@ -57,3 +74,4 @@ [0.7.3]: https://github.com/NicTool/validate/releases/tag/0.7.3 [0.7.4]: https://github.com/NicTool/validate/releases/tag/0.7.4 [0.8.0]: https://github.com/NicTool/validate/releases/tag/0.8.0 +[0.8.1]: https://github.com/NicTool/validate/releases/tag/v0.8.1 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 0000000..b0adecc --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +# Contributors + +This handcrafted artisinal software is brought to you by: + +|
msimerson (20)| +| :---: | + +this file is generated by [.release](https://github.com/msimerson/.release). +Contribute to this project to get your GitHub profile included here. diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..c8fcfd8 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,24 @@ +import globals from "globals"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import js from "@eslint/js"; +import { FlatCompat } from "@eslint/eslintrc"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all +}); + +export default [{ + ignores: ["**/package-lock.json"], +}, ...compat.extends("eslint:recommended", "prettier"), { + languageOptions: { + globals: { + ...globals.node, + ...globals.mocha, + }, + }, +}]; \ No newline at end of file diff --git a/package.json b/package.json index 38b5cbb..c4fad3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nictool/validate", - "version": "0.8.0", + "version": "0.8.1", "description": "NicTool Object Validation", "main": "index.js", "directories": { @@ -34,11 +34,14 @@ }, "homepage": "https://github.com/NicTool/validate#readme", "devDependencies": { - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0" + "@eslint/eslintrc": "^3.2.0", + "eslint": "^9.17.0", + "@eslint/js": "^9.17.0", + "eslint-config-prettier": "^9.1.0", + "globals": "^15.13.0" }, "dependencies": { - "joi": "^17.12.2", + "joi": "^17.13.3", "joi-password": "^4.2.0" } }