eslint-plugin-drizzle 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-drizzle",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Eslint plugin for drizzle users to avoid common pitfalls",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -6,3 +6,8 @@ export const rules = {
6
6
  "enforce-delete-with-where": deleteRule,
7
7
  "enforce-update-with-where": updateRule,
8
8
  } satisfies Record<string, TSESLint.RuleModule<string, Array<unknown>>>;
9
+
10
+ export const configs = {
11
+ all: require("./configs/all"),
12
+ recommended: require("./configs/recommended"),
13
+ };
package/tsconfig.json CHANGED
@@ -30,5 +30,6 @@
30
30
  "include": [
31
31
  "src/**/*.ts",
32
32
  "src/**/*.js",
33
+ "package.json",
33
34
  ],
34
35
  }
package/configs/all.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- module.exports = {
3
- env: {
4
- es2024: true,
5
- },
6
- parserOptions: {
7
- ecmaVersion: "latest",
8
- sourceType: "module",
9
- },
10
- plugins: ["drizzle"],
11
- rules: {
12
- "drizzle/enforce-delete-with-where": "error",
13
- "drizzle/enforce-update-with-where": "error",
14
- },
15
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- module.exports = {
3
- env: {
4
- es2024: true,
5
- },
6
- parserOptions: {
7
- ecmaVersion: "latest",
8
- sourceType: "module",
9
- },
10
- plugins: ["drizzle"],
11
- rules: {
12
- "drizzle/enforce-delete-with-where": "error",
13
- "drizzle/enforce-update-with-where": "error",
14
- },
15
- };