@configg/bases 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/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.2",
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,19 @@
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
+ } as const satisfies OxlintConfig['rules']
16
+
3
17
  export const configs = {
4
18
  client: {
5
19
  categories: {
@@ -82,6 +96,7 @@ export const configs = {
82
96
  ],
83
97
  plugins: ['eslint', 'oxc', 'react', 'typescript', 'unicorn'],
84
98
  rules: {
99
+ ...sharedRules,
85
100
  'func-style': ['error', 'declaration'],
86
101
  'no-magic-numbers': 'off',
87
102
  'no-rest-spread-properties': 'off',
@@ -126,6 +141,7 @@ export const configs = {
126
141
  typeCheck: true,
127
142
  },
128
143
  rules: {
144
+ ...sharedRules,
129
145
  'func-style': ['error', 'declaration'],
130
146
  'no-magic-numbers': 'off',
131
147
  'no-rest-spread-properties': 'off',