Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pnodet committed Sep 3, 2024
1 parent 1ea15a4 commit 1e2cd12
Show file tree
Hide file tree
Showing 34 changed files with 2,654 additions and 2,528 deletions.
4 changes: 0 additions & 4 deletions .npmrc

This file was deleted.

7 changes: 2 additions & 5 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { nivalis } from './src';
import { nivalis } from './src/factory';

export default nivalis(
{ typescript: { configPath: './tsconfig.json' } },
{ ignores: ['src/typegen.d.ts'] },
);
export default nivalis({});
74 changes: 43 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,71 +20,83 @@
"flat config"
],
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"LICENSE",
"README.md",
"dist"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "pnpm run typegen && pnpm tsup --format esm,cjs --clean --dts",
"dev": "pnpm dlx @eslint/config-inspector --config eslint.config.ts",
"lint": "eslint . --flag unstable_ts_config",
"lint:fix": "eslint . --fix --flag unstable_ts_config",
"prepublishOnly": "pnpm run build",
"typegen": "pnpm dlx tsx@latest ./scripts/typegen.ts",
"prepack": "pnpm run build",
"build": "unbuild",
"prepublishOnly": "unbuild",
"prepack": "unbuild",
"ts": "tsc --noEmit"
},
"peerDependencies": {
"eslint": ">=9.7.0",
"prettier": "3.3.3"
"eslint": ">=9.7.0"
},
"prettier": "@nivalis/prettier-config",
"dependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
"@next/eslint-plugin-next": "15.0.0-canary.130",
"@stylistic/eslint-plugin": "^2.6.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import-x": "4.0.0",
"@stylistic/eslint-plugin": "2.7.2",
"@typescript-eslint/parser": "8.4.0",
"@typescript-eslint/utils": "8.4.0",
"eslint-config-prettier": "9.1.0",
"eslint-flat-config-utils": "0.3.1",
"eslint-plugin-import-x": "4.1.1",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-jsonc": "2.16.0",
"eslint-plugin-n": "17.10.2",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-promise": "7.1.0",
"eslint-plugin-react": "git://github.com/jsx-eslint/eslint-plugin-react.git#a2306e7a88762ced2c15cefa3df5a865e9976617",
"eslint-plugin-react-compiler": "0.0.0-experimental-9ed098e-20240725",
"eslint-plugin-react-hooks": "5.1.0-rc-b57d2823-20240822",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-tailwindcss": "^3.17.4",
"eslint-plugin-regexp": "2.6.0",
"eslint-plugin-tailwindcss": "3.17.4",
"eslint-plugin-unicorn": "git://github.com/sindresorhus/eslint-plugin-unicorn.git#891842d539d0d002119e9c476a050a12d3936a75",
"globals": "^15.9.0",
"local-pkg": "^0.5.0",
"typescript-eslint": "8.2.0"
"local-pkg": "0.5.0",
"typescript-eslint": "8.4.0"
},
"devDependencies": {
"@commitlint/cli": "19.4.1",
"@commitlint/config-conventional": "19.4.1",
"@eslint/js": "^9.9.1",
"@nivalis/prettier-config": "^3.3.3",
"@swc/core": "^1.7.18",
"@types/eslint__js": "^8.42.3",
"@types/node": "^20.16.1",
"@nivalis/prettier-config": "3.3.3",
"@types/node": "22.5.2",
"eslint": "9.9.1",
"eslint-flat-config-utils": "^0.3.1",
"eslint-typegen": "^0.3.1",
"lefthook": "1.7.14",
"lint-staged": "^15.2.9",
"prettier": "^3.3.3",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
"typescript": "5.5.4",
"unbuild": "2.0.0"
},
"unbuild": {
"declaration": true,
"failOnWarn": false,
"exports": "named",
"preserveModules": true,
"sourcemap": true
},
"lint-staged": {
"*": "eslint --fix --no-warn-ignored --flag unstable_ts_config"
Expand Down
Loading

0 comments on commit 1e2cd12

Please sign in to comment.