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
3 changes: 3 additions & 0 deletions alessiofrittoli-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// <reference types="@alessiofrittoli/type-utils" />

// NOTE: This file should not be edited
10 changes: 2 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import tseslint from 'typescript-eslint'
import { FlatCompat } from '@eslint/eslintrc'
import { fixupConfigRules } from '@eslint/compat'

// Initial file generated with `npm lint -- --init`

const __filename = fileURLToPath( import.meta.url )
const __dirname = dirname( __filename )
Expand All @@ -15,18 +16,11 @@ const compat = new FlatCompat( {
} )



// Initial file generated with `npm lint -- --init`

/** @type {import('eslint').Linter.Config[]} */
// @ts-expect-error `languageOptions` property in `tseslint.configs.recommended` result incompatible with `eslint` config types.
const tseslintReccommended = tseslint.configs.recommended

/** @type {import('eslint').Linter.Config[]} */
const config = [
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslintReccommended,
...tseslint.configs.recommended,
...fixupConfigRules( compat.extends( 'plugin:react/recommended' ) ),
...fixupConfigRules( compat.extends( 'plugin:react-hooks/recommended' ) ),
...fixupConfigRules( compat.extends( 'plugin:react-server-components/recommended' ) ),
Expand Down
82 changes: 0 additions & 82 deletions github/Default branch ruleset.json

This file was deleted.

55 changes: 0 additions & 55 deletions github/Tagging ruleset.json

This file was deleted.

56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
"//1a": "*********************************************************************",
"//1b": "******************** DEV - BUILD - LINT - RELEASE *******************",
"//1c": "*********************************************************************",
"dev": "NODE_ENV=development tsup --watch",
"build:prod": "NODE_ENV=production tsup",
"dev": "cross-env NODE_ENV=development tsup --watch",
"build:prod": "cross-env NODE_ENV=production tsup",
"build": "pnpm lint && pnpm test:ci && pnpm build:prod",
"lint": "eslint",
"release": "node scripts/publish.js --verbose --npm",
"release": "node scripts/release.js --verbose --npm",
"//2a": "*********************************************************************",
"//2b": "***************************** UNIT TESTS ****************************",
"//2c": "*********************************************************************",
Expand All @@ -81,43 +81,43 @@
"//4a": "*********************************************************************",
"//4b": "************************ TARGETED UNIT TESTS ************************",
"//4c": "*********************************************************************",
"test:components": "pnpm test:watch components/*",
"test:utils": "pnpm test:watch utils.test.tsx"
},
"peerDependencies": {
"@types/react": ">=19",
"@types/react-dom": ">=19",
"react": ">=19",
"react-dom": ">=19"
},
"devDependencies": {
"@alessiofrittoli/node-scripts": "^2.7.0",
"@eslint/compat": "^1.3.1",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.30.1",
"@jest/globals": "^30.0.4",
"@testing-library/jest-dom": "^6.6.3",
"@alessiofrittoli/node-scripts": "^3.2.0",
"@eslint/compat": "^2.0.0",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.1",
"@jest/globals": "^30.2.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/jest": "^30.0.0",
"@types/node": "^24.0.13",
"@types/node": "^24.10.1",
"@types/react": ">=19",
"@types/react-dom": ">=19",
"concurrently": "^9.2.0",
"dotenv": "^17.2.0",
"eslint": "^9.30.1",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"dotenv": "^17.2.3",
"eslint": "^9.39.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-server-components": "^1.2.0",
"globals": "^16.3.0",
"globals": "^16.5.0",
"http-server": "^14.1.1",
"jest": "^30.0.4",
"jest-environment-jsdom": "^30.0.4",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"react": ">=19",
"react-dom": ">=19",
"ts-jest": "^29.4.0",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.36.0"
},
"peerDependencies": {
"@types/react": ">=19",
"@types/react-dom": ">=19",
"react": ">=19",
"react-dom": ">=19"
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.1"
}
}
Loading
Loading