aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packages/eslint-config/library.js34
-rw-r--r--packages/eslint-config/package.json17
-rw-r--r--packages/locusts/.eslintrc.js9
-rw-r--r--src/packages/eslint-config/README.md (renamed from packages/eslint-config/README.md)0
-rw-r--r--src/packages/locusts/package.json (renamed from packages/locusts/package.json)30
-rw-r--r--src/packages/locusts/src/index.ts (renamed from packages/locusts/src/index.ts)6
-rw-r--r--src/packages/locusts/tests/locusts.test.ts (renamed from packages/locusts/tests/locusts.test.ts)0
-rw-r--r--src/packages/locusts/tsconfig.json (renamed from packages/locusts/tsconfig.json)11
-rw-r--r--src/packages/typescript-config/base.json (renamed from packages/typescript-config/base.json)16
-rw-r--r--src/packages/typescript-config/package.json (renamed from packages/typescript-config/package.json)0
10 files changed, 42 insertions, 81 deletions
diff --git a/packages/eslint-config/library.js b/packages/eslint-config/library.js
deleted file mode 100644
index 9b59cc0..0000000
--- a/packages/eslint-config/library.js
+++ /dev/null
@@ -1,34 +0,0 @@
-const { resolve } = require("node:path");
-
-const project = resolve(process.cwd(), "tsconfig.json");
-
-/** @type {import("eslint").Linter.Config} */
-module.exports = {
- extends: ["eslint:recommended", "prettier", "turbo"],
- plugins: ["only-warn"],
- globals: {
- React: true,
- JSX: true,
- },
- env: {
- node: true,
- },
- settings: {
- "import/resolver": {
- typescript: {
- project,
- },
- },
- },
- ignorePatterns: [
- // Ignore dotfiles
- ".*.js",
- "node_modules/",
- "dist/",
- ],
- overrides: [
- {
- files: ["*.js?(x)", "*.ts?(x)"],
- },
- ],
-};
diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json
deleted file mode 100644
index 395c345..0000000
--- a/packages/eslint-config/package.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "name": "@repo/eslint-config",
- "version": "0.0.0",
- "devDependencies": {
- "@typescript-eslint/eslint-plugin": "8.6.0",
- "@typescript-eslint/parser": "8.6.0",
- "@vercel/style-guide": "6.0.0",
- "eslint-config-prettier": "^9.1.0",
- "eslint-config-turbo": "^2.1.2",
- "eslint-plugin-only-warn": "^1.1.0",
- "typescript": "^5.6.2"
- },
- "files": [
- "library.js"
- ],
- "private": true
-}
diff --git a/packages/locusts/.eslintrc.js b/packages/locusts/.eslintrc.js
deleted file mode 100644
index 1de713c..0000000
--- a/packages/locusts/.eslintrc.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/** @type {import("eslint").Linter.Config} */
-module.exports = {
- root: true,
- extends: ["@repo/eslint-config/library.js"],
- parser: "@typescript-eslint/parser",
- parserOptions: {
- project: true,
- },
-}; \ No newline at end of file
diff --git a/packages/eslint-config/README.md b/src/packages/eslint-config/README.md
index 8b42d90..8b42d90 100644
--- a/packages/eslint-config/README.md
+++ b/src/packages/eslint-config/README.md
diff --git a/packages/locusts/package.json b/src/packages/locusts/package.json
index 551a4f8..4d1319f 100644
--- a/packages/locusts/package.json
+++ b/src/packages/locusts/package.json
@@ -1,18 +1,26 @@
{
"name": "locusts",
"description": "An npm package that introduces locusts into your codebase.",
- "version": "1.0.0",
+ "version": "0.0.0",
"author": "Matt Strapp <matt+locusts@mattstrapp.net> (https://mattstrapp.net)",
"bugs": "https://github.com/locusts-r-us/locusts/issues",
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
- "@types/node": "^22.5.5",
- "tsup": "^8.2.4",
- "tsx": "^4.19.1",
- "typescript": "^5.6.2"
+ "@types/node": "^22.9.0",
+ "globals": "^15.12.0",
+ "publint": "^0.2.0",
+ "tsup": "^8.3.5",
+ "tsx": "^4.19.2",
+ "typescript": "^5.6.3"
},
- "keywords": [],
+ "keywords": [
+ "why",
+ "joke"
+ ],
+ "files": [
+ "dist"
+ ],
"license": "0BSD",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
@@ -22,11 +30,15 @@
"directory": "packages/locusts"
},
"scripts": {
- "build": "tsup src/index.ts --format cjs,esm --dts",
+ "build": "tsup src/index.ts --format cjs,esm --dts && publint",
+ "clean": "rm -rf dist && rm -rf node_modules",
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
- "lint": "eslint src --fix",
- "lint:ci": "eslint src",
+ "lint": "prettier --check . && eslint .",
+ "format": "prettier --write . && eslint --fix .",
"test": "node --test --import tsx ./tests/locusts.test.ts"
},
+ "publishConfig": {
+ "access": "public"
+ },
"types": "./dist/index.d.ts"
}
diff --git a/packages/locusts/src/index.ts b/src/packages/locusts/src/index.ts
index d78bab8..68f894d 100644
--- a/packages/locusts/src/index.ts
+++ b/src/packages/locusts/src/index.ts
@@ -10,6 +10,8 @@
* ```
* @returns void
*/
-export default function introduceLocusts() {
+export function introduceLocusts() {
// This space intentionally left blank
-} \ No newline at end of file
+}
+
+export default introduceLocusts;
diff --git a/packages/locusts/tests/locusts.test.ts b/src/packages/locusts/tests/locusts.test.ts
index 7875cbd..7875cbd 100644
--- a/packages/locusts/tests/locusts.test.ts
+++ b/src/packages/locusts/tests/locusts.test.ts
diff --git a/packages/locusts/tsconfig.json b/src/packages/locusts/tsconfig.json
index 0a5c316..5e3db2b 100644
--- a/packages/locusts/tsconfig.json
+++ b/src/packages/locusts/tsconfig.json
@@ -3,11 +3,6 @@
"compilerOptions": {
"outDir": "dist"
},
- "include": [
- "src"
- ],
- "exclude": [
- "node_modules",
- "dist"
- ]
-} \ No newline at end of file
+ "include": ["src"],
+ "exclude": ["node_modules", "dist"]
+}
diff --git a/packages/typescript-config/base.json b/src/packages/typescript-config/base.json
index 0f80cfd..7a30961 100644
--- a/packages/typescript-config/base.json
+++ b/src/packages/typescript-config/base.json
@@ -2,19 +2,31 @@
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
+ "allowJs": true,
+ "checkJs": true,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
"incremental": false,
"isolatedModules": true,
- "lib": ["es2022", "DOM", "DOM.Iterable"],
+ "lib": [
+ "es2022",
+ "DOM",
+ "DOM.Iterable"
+ ],
"module": "NodeNext",
"moduleDetection": "force",
"moduleResolution": "NodeNext",
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
+ "noUncheckedSideEffectImports": true,
"resolveJsonModule": true,
"skipLibCheck": true,
+ "sourceMap": true,
"strict": true,
"target": "ES2022"
}
-}
+} \ No newline at end of file
diff --git a/packages/typescript-config/package.json b/src/packages/typescript-config/package.json
index d658269..d658269 100644
--- a/packages/typescript-config/package.json
+++ b/src/packages/typescript-config/package.json