@configg/bases 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![provenance](https://img.shields.io/badge/provenance-verified-brightgreen)](https://www.npmjs.com/package/@configg/bases)
6
6
  [![license](https://img.shields.io/github/license/crutchcrew/configg)](./LICENSE)
7
7
 
8
- Shared configuration presets for code tooling. One package per tool, or all of them in a single install.
8
+ Shared configuration presets for typescript tooling. One package per tool, or all of them in a single install.
9
9
 
10
10
  The presets ship as TypeScript and JSON source. There is no build step, so use them from a runtime or tool that can load `.ts` files from `node_modules` (Bun, or the tool's own loader).
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@configg/bases",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "All @configg presets in one package: oxc and tsconfig",
5
5
  "keywords": [
6
6
  "config",
@@ -67,7 +67,7 @@
67
67
  "peerDependencies": {
68
68
  "eslint-plugin-testing-library": "^7.16",
69
69
  "oxfmt": ">=0.65.0",
70
- "oxlint": "^1",
70
+ "oxlint": "^1.12.0",
71
71
  "oxlint-tsgolint": "^7",
72
72
  "typescript": "^7"
73
73
  },
@@ -1,5 +1,20 @@
1
1
  import type { OxlintConfig } from 'oxlint'
2
2
 
3
+ const sharedRules = {
4
+ 'eslint/max-classes-per-file': ['warn', { max: 2 }],
5
+ 'typescript/restrict-template-expressions': [
6
+ 'error',
7
+ {
8
+ allowBoolean: true,
9
+ allowNever: true,
10
+ allowNullish: true,
11
+ allowNumber: true,
12
+ },
13
+ ],
14
+ 'unicorn/no-array-reduce': 'off',
15
+ 'unicorn/no-process-exit': 'off',
16
+ } as const satisfies OxlintConfig['rules']
17
+
3
18
  export const configs = {
4
19
  client: {
5
20
  categories: {
@@ -82,6 +97,7 @@ export const configs = {
82
97
  ],
83
98
  plugins: ['eslint', 'oxc', 'react', 'typescript', 'unicorn'],
84
99
  rules: {
100
+ ...sharedRules,
85
101
  'func-style': ['error', 'declaration'],
86
102
  'no-magic-numbers': 'off',
87
103
  'no-rest-spread-properties': 'off',
@@ -126,6 +142,7 @@ export const configs = {
126
142
  typeCheck: true,
127
143
  },
128
144
  rules: {
145
+ ...sharedRules,
129
146
  'func-style': ['error', 'declaration'],
130
147
  'no-magic-numbers': 'off',
131
148
  'no-rest-spread-properties': 'off',