diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..89fd678 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,6 @@ +'use strict' + +module.exports = require('neostandard')({ + ignores: require('neostandard').resolveIgnoresFromGitignore(), + ts: true +}) diff --git a/package.json b/package.json index 7a476fb..221fc74 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,13 @@ "devDependencies": { "@fastify/pre-commit": "^2.1.0", "c8": "^7.14.0", - "standard": "^17.1.0", + "neostandard": "^0.11.9", "tape": "^5.7.5", "tsd": "^0.31.0" }, "scripts": { - "lint": "standard", + "lint": "eslint", + "lint:fix": "eslint --fix", "test": "npm run test:unit && npm run test:typescript", "test:typescript": "tsd", "test:unit": "c8 tape test/*.js" diff --git a/types/index.d.ts b/types/index.d.ts index 5c1c5bd..dffe71e 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -5,5 +5,5 @@ declare namespace safeRegex { export { safeRegex as default } } -declare function safeRegex(...params: Parameters): ReturnType +declare function safeRegex (...params: Parameters): ReturnType export = safeRegex