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
5 changes: 0 additions & 5 deletions .changeset/clever-cloths-push.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/dependabot-update-11993.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/hip-spies-wash.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/rare-seals-exist.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/rude-cows-cheat.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/salty-ways-call.md

This file was deleted.

56 changes: 0 additions & 56 deletions .changeset/tall-hairs-send.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/witty-taxes-itch.md

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,5 @@ dist/**
.env*
!.env.example
.node-cache/

AGENTS.local.md
6 changes: 6 additions & 0 deletions packages/eslint-config-shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @cloudflare/eslint-config-shared

## 1.2.0

### Minor Changes

- [#11902](https://github.com/cloudflare/workers-sdk/pull/11902) [`2aa769c`](https://github.com/cloudflare/workers-sdk/commit/2aa769c8730a0ef99f315f9a1dd5d25d52c51974) Thanks [@emily-shen](https://github.com/emily-shen)! - Add a custom eslint rule that checks for unsafe command execution

## 1.1.0

### Minor Changes
Expand Down
25 changes: 25 additions & 0 deletions packages/eslint-config-shared/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import turbo from "eslint-plugin-turbo";
import unusedImports from "eslint-plugin-unused-imports";
import { defineConfig, globalIgnores } from "eslint/config";
import tseslint from "typescript-eslint";
import noUnsafeCommandExecution from "./rules/no-unsafe-command-execution.mjs";

export default defineConfig(
globalIgnores([
Expand All @@ -30,6 +31,11 @@ export default defineConfig(
plugins: {
"unused-imports": unusedImports,
"no-only-tests": noOnlyTests,
"workers-sdk": {
rules: {
"no-unsafe-command-execution": noUnsafeCommandExecution,
},
},
},
},

Expand Down Expand Up @@ -79,6 +85,25 @@ export default defineConfig(
argsIgnorePattern: "^_",
},
],
"workers-sdk/no-unsafe-command-execution": "error",
},
},
{
files: [
"**/*.test.ts",
"**/*.test.mts",
"**/*.test.tsx",
"**/test/**/*.ts",
"**/__tests__/**/*.ts",
"**/__tests__/**/*.mts",
"**/__tests__/**/*.tsx",
"**/e2e/**/*.ts",
"**/e2e/**/*.mts",
"**/fixtures/**/*.ts",
"**/fixtures/**/*.mts",
],
rules: {
"workers-sdk/no-unsafe-command-execution": "off",
},
}
);
7 changes: 6 additions & 1 deletion packages/eslint-config-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "@cloudflare/eslint-config-shared",
"version": "1.1.0",
"version": "1.2.0",
"private": true,
"description": "ESLint config for workers-sdk",
"type": "module",
"exports": {
".": "./index.js",
"./react": "./react.js"
},
"scripts": {
"deploy": "echo 'no deploy'",
"test": "node rules/__tests__/no-unsafe-command-execution.test.mjs",
"test:ci": "node rules/__tests__/no-unsafe-command-execution.test.mjs"
},
"devDependencies": {
"@cloudflare/workers-tsconfig": "workspace:*",
"@eslint/js": "^9.39.1",
Expand Down
Loading
Loading