Skip to content

Commit 510b11b

Browse files
committed
chore: format
1 parent 160e971 commit 510b11b

5 files changed

Lines changed: 37 additions & 31 deletions

File tree

CONTRIBUTORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
This handcrafted artisinal software is brought to you by:
44

5-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/NicTool/validate/commits?author=msimerson">21</a>)|
6-
| :---: |
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/NicTool/validate/commits?author=msimerson">21</a>) |
6+
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

88
<sub>this file is generated by [.release](https://github.com/msimerson/.release).
99
Contribute to this project to get your GitHub profile included here.</sub>

eslint.config.mjs

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
import globals from "globals";
2-
import path from "node:path";
3-
import { fileURLToPath } from "node:url";
4-
import js from "@eslint/js";
5-
import { FlatCompat } from "@eslint/eslintrc";
1+
import globals from 'globals'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
4+
import js from '@eslint/js'
5+
import { FlatCompat } from '@eslint/eslintrc'
66

7-
const __filename = fileURLToPath(import.meta.url);
8-
const __dirname = path.dirname(__filename);
7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
99
const compat = new FlatCompat({
10-
baseDirectory: __dirname,
11-
recommendedConfig: js.configs.recommended,
12-
allConfig: js.configs.all
13-
});
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all,
13+
})
1414

15-
export default [{
16-
ignores: ["**/package-lock.json"],
17-
}, ...compat.extends("eslint:recommended", "prettier"), {
15+
export default [
16+
{
17+
ignores: ['**/package-lock.json'],
18+
},
19+
...compat.extends('eslint:recommended', 'prettier'),
20+
{
1821
languageOptions: {
19-
globals: {
20-
...globals.node,
21-
...globals.mocha,
22-
},
22+
globals: {
23+
...globals.node,
24+
...globals.mocha,
25+
},
2326
},
24-
}];
27+
},
28+
]

lib/zone.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const shared = require('./shared')
55
exports.id = shared.uint32
66

77
exports.zone = Joi.string()
8-
.min(3)
9-
.max(255)
10-
.domain({ allowFullyQualified: true, tlds: false })
11-
.required()
8+
.min(3)
9+
.max(255)
10+
.domain({ allowFullyQualified: true, tlds: false })
11+
.required()
1212

1313
exports.v3 = Joi.object({
1414
id: exports.id,

lib/zone_record.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const shared = require('./shared')
55
exports.id = shared.uint32.min(1).required()
66

77
exports.owner = Joi.string()
8-
.min(1)
9-
.max(255)
10-
.domain({ minDomainSegments: 1, allowFullyQualified: false, tlds: false })
11-
.required()
8+
.min(1)
9+
.max(255)
10+
.domain({ minDomainSegments: 1, allowFullyQualified: false, tlds: false })
11+
.required()
1212

1313
exports.v3 = Joi.object({
1414
id: exports.id,
@@ -48,4 +48,4 @@ exports.POST = exports.v3
4848
exports.DELETE = Joi.object({
4949
id: exports.id,
5050
deleted: Joi.boolean(),
51-
})
51+
})

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.8.2",
44
"description": "NicTool Object Validation",
55
"files": [
6-
"lib", "index.js", "CHANGELOG.md"
6+
"lib",
7+
"index.js",
8+
"CHANGELOG.md"
79
],
810
"main": "index.js",
911
"directories": {

0 commit comments

Comments
 (0)