@meistrari/mise-en-place 1.0.5 → 1.0.7

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.
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+
3
+ export { _default as default };
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+
3
+ export { _default as default };
@@ -0,0 +1,86 @@
1
+ import antfu from '@antfu/eslint-config';
2
+ import drizzle from 'eslint-plugin-drizzle';
3
+ import * as eslintPluginDiff from 'eslint-plugin-diff';
4
+
5
+ const isCI = process.env.CI === "true";
6
+ function getTsConfig() {
7
+ if (isCI) {
8
+ return void 0;
9
+ }
10
+ return {
11
+ tsconfigPath: "./tsconfig.json",
12
+ overridesTypeAware: {
13
+ "ts/no-floating-promises": "error",
14
+ "ts/no-unnecessary-condition": "error"
15
+ }
16
+ };
17
+ }
18
+ const eslint = antfu(
19
+ {
20
+ stylistic: {
21
+ indent: 4
22
+ // quotes: 'single',
23
+ // semi: false,
24
+ },
25
+ // Only lint changed lines when running in CI
26
+ // This speeds up the linting process significantly and also allows us to
27
+ // rollout new rules gradually.
28
+ ...isCI ? {
29
+ processor: eslintPluginDiff.processors.ci
30
+ } : void 0,
31
+ typescript: getTsConfig(),
32
+ ignores: [
33
+ ".github",
34
+ "*.yaml",
35
+ "*.yml",
36
+ "*/**/storybook-static/",
37
+ ".devbox/",
38
+ "**/migrations/**/*.json",
39
+ ".wrangler",
40
+ "**/*.timestamp*",
41
+ "**/node_modules"
42
+ ],
43
+ rules: {
44
+ "ts/strict-boolean-expressions": "off",
45
+ "node/prefer-global/process": ["off", "always"],
46
+ "ts/consistent-type-definitions": "off",
47
+ "style/member-delimiter-style": ["off", {
48
+ multiline: {
49
+ delimiter: "none"
50
+ },
51
+ singleline: {
52
+ delimiter: "comma",
53
+ requireLast: true
54
+ }
55
+ }],
56
+ "antfu/no-top-level-await": "off",
57
+ "antfu/sort-imports": "off",
58
+ "perfectionist/sort-imports": "off",
59
+ "perfectionist/sort-named-imports": "off",
60
+ "jsonc/comma-dangle": ["error", "always-multiline"],
61
+ "jsonc/sort-keys": "off"
62
+ }
63
+ },
64
+ {
65
+ plugins: {
66
+ drizzle
67
+ },
68
+ files: ["*.ts"],
69
+ rules: {
70
+ "drizzle/enforce-update-with-where": [
71
+ "error",
72
+ {
73
+ drizzleObjectName: ["db"]
74
+ }
75
+ ],
76
+ "drizzle/enforce-delete-with-where": [
77
+ "error",
78
+ {
79
+ drizzleObjectName: ["db"]
80
+ }
81
+ ]
82
+ }
83
+ }
84
+ );
85
+
86
+ export { eslint as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/mise-en-place",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,6 +16,12 @@
16
16
  "import": "./dist/eslint.mjs"
17
17
  }
18
18
  },
19
+ "files": [
20
+ "dist",
21
+ "Makefile",
22
+ ".editorconfig",
23
+ "tsconfig.json"
24
+ ],
19
25
  "keywords": [],
20
26
  "author": "",
21
27
  "license": "ISC",
@@ -1,29 +0,0 @@
1
- name: Publish SDK Package
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- paths:
8
- - "package.json"
9
-
10
- jobs:
11
- publish:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - name: Checkout repository
15
- uses: actions/checkout@v4
16
-
17
- - name: Setup Bun
18
- uses: oven-sh/setup-bun@v2
19
-
20
- - name: Install dependencies
21
- run: bun install --frozen-lockfile
22
-
23
- - name: Install dependencies
24
- run: bun run build
25
-
26
- - name: Publish mise-en-place package
27
- run: bun publish --access public --no-git-checks
28
- env:
29
- NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
package/src/eslint.ts DELETED
@@ -1,93 +0,0 @@
1
- import antfu, { OptionsTypescript } from '@antfu/eslint-config'
2
- // @ts-expect-error Missing types
3
- import drizzle from 'eslint-plugin-drizzle'
4
- import * as eslintPluginDiff from 'eslint-plugin-diff'
5
-
6
- const isCI = process.env.CI === 'true'
7
-
8
- // Enabling type-aware linting in CI is making the linting process too slow and
9
- // even crashing sometimes due to memory limits.
10
- // Thus, we only enable it for local development.
11
- // We need to fix this, so we can have type-aware linting in CI as well.
12
- function getTsConfig(): OptionsTypescript | undefined {
13
- if (isCI) {
14
- return undefined
15
- }
16
-
17
- return {
18
- tsconfigPath: './tsconfig.json',
19
- overridesTypeAware: {
20
- 'ts/no-floating-promises': 'error',
21
- 'ts/no-unnecessary-condition': 'error',
22
- },
23
- }
24
- }
25
-
26
- export default antfu(
27
- {
28
- stylistic: {
29
- indent: 4,
30
-
31
- // quotes: 'single',
32
- // semi: false,
33
- },
34
- // Only lint changed lines when running in CI
35
- // This speeds up the linting process significantly and also allows us to
36
- // rollout new rules gradually.
37
- ...isCI
38
- ? {
39
- processor: eslintPluginDiff.processors.ci,
40
- }
41
- : undefined,
42
- typescript: getTsConfig(),
43
- ignores: [
44
- '.github',
45
- '*.yaml',
46
- '*.yml',
47
- '*/**/storybook-static/',
48
- '.devbox/',
49
- '**/migrations/**/*.json',
50
- '.wrangler',
51
- '**/*.timestamp*',
52
- '**/node_modules',
53
- ],
54
- rules: {
55
- 'ts/strict-boolean-expressions': 'off',
56
- 'node/prefer-global/process': ['off', 'always'],
57
- 'ts/consistent-type-definitions': 'off',
58
- 'style/member-delimiter-style': ['off', {
59
- multiline: {
60
- delimiter: 'none',
61
- },
62
- singleline: {
63
- delimiter: 'comma',
64
- requireLast: true,
65
- }
66
- }],
67
- 'antfu/no-top-level-await': 'off',
68
- 'antfu/sort-imports': 'off',
69
- 'perfectionist/sort-imports': 'off',
70
- 'perfectionist/sort-named-imports': 'off',
71
- },
72
- },
73
- {
74
- plugins: {
75
- drizzle,
76
- },
77
- files: ['*.ts'],
78
- rules: {
79
- 'drizzle/enforce-update-with-where': [
80
- 'error',
81
- {
82
- drizzleObjectName: ['db'],
83
- },
84
- ],
85
- 'drizzle/enforce-delete-with-where': [
86
- 'error',
87
- {
88
- drizzleObjectName: ['db'],
89
- },
90
- ],
91
- },
92
- },
93
- )