From 8a06ecc0a169592badc82c1073ce6e5750e48ce5 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Fri, 13 Sep 2024 19:16:52 +0200 Subject: [PATCH] chore(deps): use neostandard linting --- .eslintignore | 1 - .eslintrc | 4 ---- .knip.jsonc | 4 ++-- README.md | 2 +- eslint.config.js | 1 + index.d.ts | 2 +- package.json | 21 ++++++--------------- test/.eslintrc | 3 --- test/main.spec.js | 2 -- 9 files changed, 11 insertions(+), 29 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc create mode 100644 eslint.config.js delete mode 100644 test/.eslintrc diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index a0d4ce0..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -/coverage/**/* diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 42926ee..0000000 --- a/.eslintrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "@voxpelli/eslint-config/esm", - "root": true -} diff --git a/.knip.jsonc b/.knip.jsonc index 29a4eb8..12a0cc5 100644 --- a/.knip.jsonc +++ b/.knip.jsonc @@ -1,4 +1,4 @@ { - "$schema": "https://unpkg.com/knip@2/schema.json", - "ignoreDependencies": ["@types/mocha", "mocha"] + "$schema": "https://unpkg.com/knip@5/schema.json", + "ignoreDependencies": ["@types/mocha"] } diff --git a/README.md b/README.md index 46494c3..252199c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Checks whether a string path matches a posix path [![npm version](https://img.shields.io/npm/v/chai-posix-path.svg?style=flat)](https://www.npmjs.com/package/chai-posix-path) [![npm downloads](https://img.shields.io/npm/dm/chai-posix-path.svg?style=flat)](https://www.npmjs.com/package/chai-posix-path) -[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/voxpelli/eslint-config) +[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard) [![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm) [![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js) [![Follow @voxpelli@mastodon.social](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli) diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..d83e366 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1 @@ +export { default } from '@voxpelli/eslint-config'; diff --git a/index.d.ts b/index.d.ts index 115bec4..b861fbf 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,2 +1,2 @@ -export { default } from "./lib/index.js"; +export { default } from './lib/index.js'; export type {} from './lib/advanced-types.js'; diff --git a/package.json b/package.json index 97c992c..b566222 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,9 @@ "build:0": "run-s clean", "build:1-declaration": "tsc -p declaration.tsconfig.json", "build": "run-s build:*", - "check:installed-check": "installed-check -i eslint-plugin-jsdoc -i knip -i installed-check", + "check:installed-check": "installed-check", "check:knip": "knip", - "check:lint": "eslint --report-unused-disable-directives .", + "check:lint": "eslint", "check:tsc": "tsc", "check": "run-s clean && run-p check:*", "clean:declarations-top": "rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*' ! -name 'index.d.ts')", @@ -54,23 +54,14 @@ "@types/chai": "^4.3.5", "@types/mocha": "^10.0.1", "@types/node": "^18.19.50", - "@voxpelli/eslint-config": "^18.0.0", + "@voxpelli/eslint-config": "^21.0.0", "@voxpelli/tsconfig": "^8.0.0", "c8": "^8.0.0", "chai": "^4.3.7", - "eslint": "^8.44.0", - "eslint-plugin-es-x": "^7.1.0", - "eslint-plugin-import": "^2.27.5", - "eslint-plugin-jsdoc": "^46.4.3", - "eslint-plugin-mocha": "^10.1.0", - "eslint-plugin-n": "^16.0.1", - "eslint-plugin-promise": "^6.1.1", - "eslint-plugin-security": "^1.7.1", - "eslint-plugin-sort-destructure-keys": "^1.5.0", - "eslint-plugin-unicorn": "^47.0.0", + "eslint": "^9.10.0", "husky": "^8.0.3", - "installed-check": "^8.0.0", - "knip": "^2.15.2", + "installed-check": "^9.3.0", + "knip": "^5.30.2", "mocha": "^10.2.0", "npm-run-all2": "^6.0.6", "typescript": "~5.1.6" diff --git a/test/.eslintrc b/test/.eslintrc deleted file mode 100644 index d8a372c..0000000 --- a/test/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@voxpelli/eslint-config/mocha" -} diff --git a/test/main.spec.js b/test/main.spec.js index 4ad0e48..b2882ca 100644 --- a/test/main.spec.js +++ b/test/main.spec.js @@ -29,7 +29,6 @@ describe('chaiPosixPath', () => { 'foo\\bar'.should.be.posixPath('foo'); }, AssertionError, - // eslint-disable-next-line quotes `expected 'foo\\bar' to be 'foo' but got 'foo/bar'` ); }); @@ -40,7 +39,6 @@ describe('chaiPosixPath', () => { 'foo\\bar'.should.not.be.posixPath('foo/bar'); }, AssertionError, - // eslint-disable-next-line quotes `expected 'foo\\bar' to not be matching 'foo/bar'` ); });