Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

45 changes: 45 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
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 [
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.node,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: "module",

parserOptions: {
project: "./tsconfig.json",
},
},

rules: {},
},
];
2 changes: 2 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
node = "lts"
66 changes: 34 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
"name": "narou",
"version": "1.0.0",
"description": "Narou API Wrapper",
"repository": {
"type": "git",
"url": "git+https://github.com/deflis/node-narou.git"
},
"license": "MIT",
"author": "deflis <deflis@gmail.com>",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"exports": {
".": {
"default": "./dist/index.js",
Expand Down Expand Up @@ -37,40 +40,15 @@
"types": "./dist/utils/*.d.ts"
}
},
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"files": [
"dist",
"src",
"package.json",
"package-lock.json",
"pnpm-lock.yaml",
"README.md"
],
"engines": {
"node": ">=16.0.0",
"pnpm": ">=8"
},
"author": "deflis <deflis@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/deflis/node-narou.git"
},
"dependencies": {
"date-fns": "^3.3.1"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vitest/coverage-v8": "^1.3.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"run-z": "^2.0.0",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
},
"scripts": {
"build": "run-z check build:tsc",
"build:tsc": "tsup ./src",
Expand All @@ -83,5 +61,29 @@
"docs": "run-z docs:clean docs:typedoc",
"docs:clean": "pnpm dlx rimraf docs",
"docs:typedoc": "pnpm dlx typedoc --out ./docs src/index.ts"
}
},
"dependencies": {
"date-fns": "^4.1.0"
},
"devDependencies": {
"@types/node": "^22.10.3",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"@vitest/coverage-v8": "^2.1.8",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.14.0",
"prettier": "^3.4.2",
"run-z": "^2.1.0",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"engines": {
"node": ">=16.0.0",
"pnpm": ">=8"
},
"module": "dist/index.js",
"packageManager": "pnpm@8.3.1+sha1.75c6e8a4075abfc494770f998bf37b9ada110f51"
}
Loading
Loading