@luism/configs 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +101 -2
- package/dist/oxfmt/index.cjs +57 -0
- package/dist/oxfmt/index.d.ts +3 -0
- package/dist/oxfmt/index.js +19 -0
- package/dist/oxlint/index.cjs +193 -0
- package/dist/oxlint/index.d.ts +3 -0
- package/dist/oxlint/index.js +155 -0
- package/dist/oxlint/node.cjs +59 -0
- package/dist/oxlint/node.d.ts +3 -0
- package/dist/oxlint/node.js +12 -0
- package/dist/prettier/index.cjs +45 -0
- package/dist/prettier/index.d.ts +3 -0
- package/dist/prettier/index.js +7 -0
- package/dist/rslib/index.cjs +57 -0
- package/dist/rslib/index.d.ts +2 -0
- package/dist/rslib/index.js +19 -0
- package/dist/vitest/index.cjs +41 -0
- package/dist/vitest/index.d.ts +2 -0
- package/dist/vitest/index.js +3 -0
- package/package.json +115 -3
- package/tsconfig/base.json +19 -0
- package/tsconfig/bundler.json +11 -0
- package/tsconfig/node.json +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Luis Middleton
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,102 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @luism/configs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared configurations for TypeScript tooling, including `gts`-parity **Oxlint**, **Oxfmt**, and **TypeScript (`tsconfig`)** presets, alongside Prettier, Vitest, and rslib configurations.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Purpose](#purpose)
|
|
8
|
+
- [Available Entrypoints](#available-entrypoints)
|
|
9
|
+
- [Usage (Oxlint, Oxfmt & TypeScript)](#usage-oxlint-oxfmt--typescript)
|
|
10
|
+
- [Other Tooling](#other-tooling)
|
|
11
|
+
- [Author](#author)
|
|
12
|
+
- [License](#license)
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
|
|
16
|
+
- Replace `gts` (ESLint + Prettier) with fast, native Oxc (`oxlint` + `oxfmt`) presets while preserving Google TypeScript Style (`gts`) rule and formatting semantics.
|
|
17
|
+
- Centralize and share configuration files across repositories with zero custom CLI wrapper—all linting, fixing, and formatting run directly via `oxlint` and `oxfmt`.
|
|
18
|
+
|
|
19
|
+
## Available Entrypoints
|
|
20
|
+
|
|
21
|
+
| Tool | Import / Extends Path | Description |
|
|
22
|
+
| ------------------ | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| Oxlint (Base) | `@luism/configs/oxlint` | `gts@7.0.0`-parity ESLint + TypeScript ruleset (`typeAware: true`) |
|
|
24
|
+
| Oxlint (Node) | `@luism/configs/oxlint/node` | Base preset + `node` environment globals |
|
|
25
|
+
| Oxfmt | `@luism/configs/oxfmt` | `gts` Prettier preset (`bracketSpacing: false`, `singleQuote: true`, `trailingComma: "all"`, `arrowParens: "avoid"`, `printWidth: 80`) |
|
|
26
|
+
| TSConfig (Base) | `@luism/configs/tsconfig` | `gts/tsconfig-google.json` baseline |
|
|
27
|
+
| TSConfig (Bundler) | `@luism/configs/tsconfig/bundler` | Extends base with `ESNext` + `bundler` resolution + DOM libs |
|
|
28
|
+
| TSConfig (Node) | `@luism/configs/tsconfig/node` | Extends base with `NodeNext` module & resolution |
|
|
29
|
+
| Prettier | `@luism/configs/prettier` | Legacy Prettier config |
|
|
30
|
+
| Vitest | `@luism/configs/vitest` | Shared Vitest config |
|
|
31
|
+
| rslib | `@luism/configs/rslib` | Shared rslib build config |
|
|
32
|
+
|
|
33
|
+
## Usage (Oxlint, Oxfmt & TypeScript)
|
|
34
|
+
|
|
35
|
+
1. Install `@luism/configs` and the Oxc peer dependencies in your repository:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm add -D @luism/configs oxlint oxlint-tsgolint oxfmt typescript
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
2. Create `oxlint.config.ts`:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import {defineConfig} from 'oxlint';
|
|
45
|
+
import node from '@luism/configs/oxlint/node';
|
|
46
|
+
|
|
47
|
+
export default defineConfig({
|
|
48
|
+
extends: [node],
|
|
49
|
+
// Oxlint does not inherit ignorePatterns via extends; reuse node.ignorePatterns
|
|
50
|
+
// (in addition to .gitignore) to skip dist/node_modules if needed.
|
|
51
|
+
ignorePatterns: node.ignorePatterns,
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
3. Create `oxfmt.config.ts`:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import {defineConfig} from 'oxfmt';
|
|
59
|
+
import oxfmtConfig from '@luism/configs/oxfmt';
|
|
60
|
+
|
|
61
|
+
export default defineConfig({
|
|
62
|
+
...oxfmtConfig,
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
4. Extend `@luism/configs/tsconfig` (or `/bundler` or `/node`) in `tsconfig.json`:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"extends": "@luism/configs/tsconfig/node"
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
5. Add scripts to `package.json`:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"scripts": {
|
|
79
|
+
"lint": "oxlint --type-aware",
|
|
80
|
+
"lint:fix": "oxlint --type-aware --fix",
|
|
81
|
+
"format": "oxfmt --write",
|
|
82
|
+
"format:check": "oxfmt --check",
|
|
83
|
+
"typecheck": "tsc --noEmit"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Other Tooling
|
|
89
|
+
|
|
90
|
+
Legacy presets are also available at:
|
|
91
|
+
|
|
92
|
+
- `@luism/configs/prettier`
|
|
93
|
+
- `@luism/configs/vitest`
|
|
94
|
+
- `@luism/configs/rslib`
|
|
95
|
+
|
|
96
|
+
## Author
|
|
97
|
+
|
|
98
|
+
Luis Middleton
|
|
99
|
+
|
|
100
|
+
## License
|
|
101
|
+
|
|
102
|
+
MIT
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rspack_context = {};
|
|
3
|
+
(function() {
|
|
4
|
+
var definePropertyGetters = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
__rspack_context.d = definePropertyGetters;
|
|
15
|
+
var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
16
|
+
var makeNamespaceObject = (exports1)=>{
|
|
17
|
+
Object.defineProperties(exports1, {
|
|
18
|
+
[Symbol.toStringTag]: {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
},
|
|
21
|
+
__esModule: {
|
|
22
|
+
value: true
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
__rspack_context.N = makeNamespaceObject;
|
|
27
|
+
})();
|
|
28
|
+
var __rspack_exports = {};
|
|
29
|
+
__rspack_context.N(__rspack_exports);
|
|
30
|
+
const config = {
|
|
31
|
+
printWidth: 80,
|
|
32
|
+
tabWidth: 2,
|
|
33
|
+
semi: true,
|
|
34
|
+
singleQuote: true,
|
|
35
|
+
trailingComma: 'all',
|
|
36
|
+
arrowParens: 'avoid',
|
|
37
|
+
bracketSpacing: false,
|
|
38
|
+
ignorePatterns: [
|
|
39
|
+
'package-lock.json',
|
|
40
|
+
'pnpm-lock.yaml',
|
|
41
|
+
'yarn.lock',
|
|
42
|
+
'**/dist/**',
|
|
43
|
+
'**/node_modules/**',
|
|
44
|
+
'**/storybook-static/**'
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
const __rspack_default_export = config;
|
|
48
|
+
__rspack_context.d(__rspack_exports, {}, {
|
|
49
|
+
default: __rspack_default_export
|
|
50
|
+
});
|
|
51
|
+
exports["default"] = __rspack_exports["default"];
|
|
52
|
+
for(var __rspack_i in __rspack_exports)if (-1 === [
|
|
53
|
+
"default"
|
|
54
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __rspack_exports[__rspack_i];
|
|
55
|
+
Object.defineProperty(exports, '__esModule', {
|
|
56
|
+
value: true
|
|
57
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
printWidth: 80,
|
|
3
|
+
tabWidth: 2,
|
|
4
|
+
semi: true,
|
|
5
|
+
singleQuote: true,
|
|
6
|
+
trailingComma: 'all',
|
|
7
|
+
arrowParens: 'avoid',
|
|
8
|
+
bracketSpacing: false,
|
|
9
|
+
ignorePatterns: [
|
|
10
|
+
'package-lock.json',
|
|
11
|
+
'pnpm-lock.yaml',
|
|
12
|
+
'yarn.lock',
|
|
13
|
+
'**/dist/**',
|
|
14
|
+
'**/node_modules/**',
|
|
15
|
+
'**/storybook-static/**'
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
const oxfmt = config;
|
|
19
|
+
export default oxfmt;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rspack_context = {};
|
|
3
|
+
(function() {
|
|
4
|
+
var definePropertyGetters = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
__rspack_context.d = definePropertyGetters;
|
|
15
|
+
var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
16
|
+
var makeNamespaceObject = (exports1)=>{
|
|
17
|
+
Object.defineProperties(exports1, {
|
|
18
|
+
[Symbol.toStringTag]: {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
},
|
|
21
|
+
__esModule: {
|
|
22
|
+
value: true
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
__rspack_context.N = makeNamespaceObject;
|
|
27
|
+
})();
|
|
28
|
+
var __rspack_exports = {};
|
|
29
|
+
__rspack_context.N(__rspack_exports);
|
|
30
|
+
const config = {
|
|
31
|
+
plugins: [
|
|
32
|
+
'eslint',
|
|
33
|
+
"typescript"
|
|
34
|
+
],
|
|
35
|
+
categories: {
|
|
36
|
+
correctness: 'off'
|
|
37
|
+
},
|
|
38
|
+
options: {
|
|
39
|
+
typeAware: true
|
|
40
|
+
},
|
|
41
|
+
env: {
|
|
42
|
+
builtin: true
|
|
43
|
+
},
|
|
44
|
+
ignorePatterns: [
|
|
45
|
+
'**/dist/**',
|
|
46
|
+
'dist/**',
|
|
47
|
+
'**/node_modules/**',
|
|
48
|
+
'node_modules/**',
|
|
49
|
+
'build/**',
|
|
50
|
+
'coverage/**'
|
|
51
|
+
],
|
|
52
|
+
rules: {
|
|
53
|
+
'constructor-super': 'error',
|
|
54
|
+
'for-direction': 'error',
|
|
55
|
+
'getter-return': 'error',
|
|
56
|
+
'no-async-promise-executor': 'error',
|
|
57
|
+
'no-case-declarations': 'error',
|
|
58
|
+
'no-class-assign': 'error',
|
|
59
|
+
'no-compare-neg-zero': 'error',
|
|
60
|
+
'no-cond-assign': 'error',
|
|
61
|
+
'no-const-assign': 'error',
|
|
62
|
+
'no-constant-binary-expression': 'error',
|
|
63
|
+
'no-constant-condition': 'error',
|
|
64
|
+
'no-control-regex': 'error',
|
|
65
|
+
'no-debugger': 'error',
|
|
66
|
+
'no-delete-var': 'error',
|
|
67
|
+
'no-dupe-class-members': 'error',
|
|
68
|
+
'no-dupe-else-if': 'error',
|
|
69
|
+
'no-dupe-keys': 'error',
|
|
70
|
+
'no-duplicate-case': 'error',
|
|
71
|
+
'no-empty': 'error',
|
|
72
|
+
'no-empty-character-class': 'error',
|
|
73
|
+
'no-empty-pattern': 'error',
|
|
74
|
+
'no-empty-static-block': 'error',
|
|
75
|
+
'no-ex-assign': 'error',
|
|
76
|
+
'no-extra-boolean-cast': 'error',
|
|
77
|
+
'no-fallthrough': 'error',
|
|
78
|
+
'no-func-assign': 'error',
|
|
79
|
+
'no-global-assign': 'error',
|
|
80
|
+
'no-import-assign': 'error',
|
|
81
|
+
'no-invalid-regexp': 'error',
|
|
82
|
+
'no-irregular-whitespace': 'error',
|
|
83
|
+
'no-loss-of-precision': 'error',
|
|
84
|
+
'no-misleading-character-class': 'error',
|
|
85
|
+
'no-new-native-nonconstructor': 'error',
|
|
86
|
+
'no-nonoctal-decimal-escape': 'error',
|
|
87
|
+
'no-obj-calls': 'error',
|
|
88
|
+
'no-prototype-builtins': 'error',
|
|
89
|
+
'no-redeclare': 'error',
|
|
90
|
+
'no-regex-spaces': 'error',
|
|
91
|
+
'no-self-assign': 'error',
|
|
92
|
+
'no-setter-return': 'error',
|
|
93
|
+
'no-shadow-restricted-names': 'error',
|
|
94
|
+
'no-sparse-arrays': 'error',
|
|
95
|
+
'no-this-before-super': 'error',
|
|
96
|
+
'no-unreachable': 'error',
|
|
97
|
+
'no-unsafe-finally': 'error',
|
|
98
|
+
'no-unsafe-negation': 'error',
|
|
99
|
+
'no-unsafe-optional-chaining': 'error',
|
|
100
|
+
'no-unused-labels': 'error',
|
|
101
|
+
'no-unused-private-class-members': 'error',
|
|
102
|
+
'no-unused-vars': 'error',
|
|
103
|
+
'no-useless-backreference': 'error',
|
|
104
|
+
'no-useless-catch': 'error',
|
|
105
|
+
'no-useless-escape': 'error',
|
|
106
|
+
'no-with': 'error',
|
|
107
|
+
'require-yield': 'error',
|
|
108
|
+
'use-isnan': 'error',
|
|
109
|
+
'valid-typeof': 'error',
|
|
110
|
+
'block-scoped-var': 'error',
|
|
111
|
+
eqeqeq: 'error',
|
|
112
|
+
'no-var': 'error',
|
|
113
|
+
'prefer-const': 'error',
|
|
114
|
+
'prefer-arrow-callback': 'error',
|
|
115
|
+
'no-restricted-properties': [
|
|
116
|
+
'error',
|
|
117
|
+
{
|
|
118
|
+
object: 'describe',
|
|
119
|
+
property: 'only'
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
object: 'it',
|
|
123
|
+
property: 'only'
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
overrides: [
|
|
128
|
+
{
|
|
129
|
+
files: [
|
|
130
|
+
'**/*.ts',
|
|
131
|
+
'**/*.tsx',
|
|
132
|
+
'**/*.mts',
|
|
133
|
+
'**/*.cts'
|
|
134
|
+
],
|
|
135
|
+
rules: {
|
|
136
|
+
'constructor-super': 'off',
|
|
137
|
+
'getter-return': 'off',
|
|
138
|
+
'no-class-assign': 'off',
|
|
139
|
+
'no-const-assign': 'off',
|
|
140
|
+
'no-dupe-class-members': 'off',
|
|
141
|
+
'no-dupe-keys': 'off',
|
|
142
|
+
'no-func-assign': 'off',
|
|
143
|
+
'no-import-assign': 'off',
|
|
144
|
+
'no-new-native-nonconstructor': 'off',
|
|
145
|
+
'no-obj-calls': 'off',
|
|
146
|
+
'no-redeclare': 'off',
|
|
147
|
+
'no-setter-return': 'off',
|
|
148
|
+
'no-this-before-super': 'off',
|
|
149
|
+
'no-unreachable': 'off',
|
|
150
|
+
'no-unsafe-negation': 'off',
|
|
151
|
+
'no-with': 'off',
|
|
152
|
+
'prefer-rest-params': 'error',
|
|
153
|
+
'prefer-spread': 'error',
|
|
154
|
+
'no-array-constructor': 'error',
|
|
155
|
+
'no-unused-expressions': 'error',
|
|
156
|
+
"typescript/no-duplicate-enum-values": 'error',
|
|
157
|
+
"typescript/no-explicit-any": 'error',
|
|
158
|
+
"typescript/no-extra-non-null-assertion": 'error',
|
|
159
|
+
"typescript/no-misused-new": 'error',
|
|
160
|
+
"typescript/no-namespace": 'error',
|
|
161
|
+
"typescript/no-non-null-asserted-optional-chain": 'error',
|
|
162
|
+
"typescript/no-this-alias": 'error',
|
|
163
|
+
"typescript/no-unnecessary-type-constraint": 'error',
|
|
164
|
+
"typescript/no-unsafe-declaration-merging": 'error',
|
|
165
|
+
"typescript/no-unsafe-function-type": 'error',
|
|
166
|
+
"typescript/no-wrapper-object-types": 'error',
|
|
167
|
+
"typescript/prefer-as-const": 'error',
|
|
168
|
+
"typescript/prefer-namespace-keyword": 'error',
|
|
169
|
+
"typescript/triple-slash-reference": 'error',
|
|
170
|
+
"typescript/ban-ts-comment": 'warn',
|
|
171
|
+
"typescript/no-floating-promises": 'error',
|
|
172
|
+
"typescript/no-non-null-assertion": 'off',
|
|
173
|
+
'no-use-before-define': 'off',
|
|
174
|
+
'no-empty-function': 'off',
|
|
175
|
+
"typescript/no-require-imports": 'off',
|
|
176
|
+
"typescript/no-empty-object-type": 'off',
|
|
177
|
+
"typescript/explicit-function-return-type": 'off',
|
|
178
|
+
"typescript/explicit-module-boundary-types": 'off'
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
};
|
|
183
|
+
const __rspack_default_export = config;
|
|
184
|
+
__rspack_context.d(__rspack_exports, {}, {
|
|
185
|
+
default: __rspack_default_export
|
|
186
|
+
});
|
|
187
|
+
exports["default"] = __rspack_exports["default"];
|
|
188
|
+
for(var __rspack_i in __rspack_exports)if (-1 === [
|
|
189
|
+
"default"
|
|
190
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __rspack_exports[__rspack_i];
|
|
191
|
+
Object.defineProperty(exports, '__esModule', {
|
|
192
|
+
value: true
|
|
193
|
+
});
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
plugins: [
|
|
3
|
+
'eslint',
|
|
4
|
+
"typescript"
|
|
5
|
+
],
|
|
6
|
+
categories: {
|
|
7
|
+
correctness: 'off'
|
|
8
|
+
},
|
|
9
|
+
options: {
|
|
10
|
+
typeAware: true
|
|
11
|
+
},
|
|
12
|
+
env: {
|
|
13
|
+
builtin: true
|
|
14
|
+
},
|
|
15
|
+
ignorePatterns: [
|
|
16
|
+
'**/dist/**',
|
|
17
|
+
'dist/**',
|
|
18
|
+
'**/node_modules/**',
|
|
19
|
+
'node_modules/**',
|
|
20
|
+
'build/**',
|
|
21
|
+
'coverage/**'
|
|
22
|
+
],
|
|
23
|
+
rules: {
|
|
24
|
+
'constructor-super': 'error',
|
|
25
|
+
'for-direction': 'error',
|
|
26
|
+
'getter-return': 'error',
|
|
27
|
+
'no-async-promise-executor': 'error',
|
|
28
|
+
'no-case-declarations': 'error',
|
|
29
|
+
'no-class-assign': 'error',
|
|
30
|
+
'no-compare-neg-zero': 'error',
|
|
31
|
+
'no-cond-assign': 'error',
|
|
32
|
+
'no-const-assign': 'error',
|
|
33
|
+
'no-constant-binary-expression': 'error',
|
|
34
|
+
'no-constant-condition': 'error',
|
|
35
|
+
'no-control-regex': 'error',
|
|
36
|
+
'no-debugger': 'error',
|
|
37
|
+
'no-delete-var': 'error',
|
|
38
|
+
'no-dupe-class-members': 'error',
|
|
39
|
+
'no-dupe-else-if': 'error',
|
|
40
|
+
'no-dupe-keys': 'error',
|
|
41
|
+
'no-duplicate-case': 'error',
|
|
42
|
+
'no-empty': 'error',
|
|
43
|
+
'no-empty-character-class': 'error',
|
|
44
|
+
'no-empty-pattern': 'error',
|
|
45
|
+
'no-empty-static-block': 'error',
|
|
46
|
+
'no-ex-assign': 'error',
|
|
47
|
+
'no-extra-boolean-cast': 'error',
|
|
48
|
+
'no-fallthrough': 'error',
|
|
49
|
+
'no-func-assign': 'error',
|
|
50
|
+
'no-global-assign': 'error',
|
|
51
|
+
'no-import-assign': 'error',
|
|
52
|
+
'no-invalid-regexp': 'error',
|
|
53
|
+
'no-irregular-whitespace': 'error',
|
|
54
|
+
'no-loss-of-precision': 'error',
|
|
55
|
+
'no-misleading-character-class': 'error',
|
|
56
|
+
'no-new-native-nonconstructor': 'error',
|
|
57
|
+
'no-nonoctal-decimal-escape': 'error',
|
|
58
|
+
'no-obj-calls': 'error',
|
|
59
|
+
'no-prototype-builtins': 'error',
|
|
60
|
+
'no-redeclare': 'error',
|
|
61
|
+
'no-regex-spaces': 'error',
|
|
62
|
+
'no-self-assign': 'error',
|
|
63
|
+
'no-setter-return': 'error',
|
|
64
|
+
'no-shadow-restricted-names': 'error',
|
|
65
|
+
'no-sparse-arrays': 'error',
|
|
66
|
+
'no-this-before-super': 'error',
|
|
67
|
+
'no-unreachable': 'error',
|
|
68
|
+
'no-unsafe-finally': 'error',
|
|
69
|
+
'no-unsafe-negation': 'error',
|
|
70
|
+
'no-unsafe-optional-chaining': 'error',
|
|
71
|
+
'no-unused-labels': 'error',
|
|
72
|
+
'no-unused-private-class-members': 'error',
|
|
73
|
+
'no-unused-vars': 'error',
|
|
74
|
+
'no-useless-backreference': 'error',
|
|
75
|
+
'no-useless-catch': 'error',
|
|
76
|
+
'no-useless-escape': 'error',
|
|
77
|
+
'no-with': 'error',
|
|
78
|
+
'require-yield': 'error',
|
|
79
|
+
'use-isnan': 'error',
|
|
80
|
+
'valid-typeof': 'error',
|
|
81
|
+
'block-scoped-var': 'error',
|
|
82
|
+
eqeqeq: 'error',
|
|
83
|
+
'no-var': 'error',
|
|
84
|
+
'prefer-const': 'error',
|
|
85
|
+
'prefer-arrow-callback': 'error',
|
|
86
|
+
'no-restricted-properties': [
|
|
87
|
+
'error',
|
|
88
|
+
{
|
|
89
|
+
object: 'describe',
|
|
90
|
+
property: 'only'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
object: 'it',
|
|
94
|
+
property: 'only'
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
overrides: [
|
|
99
|
+
{
|
|
100
|
+
files: [
|
|
101
|
+
'**/*.ts',
|
|
102
|
+
'**/*.tsx',
|
|
103
|
+
'**/*.mts',
|
|
104
|
+
'**/*.cts'
|
|
105
|
+
],
|
|
106
|
+
rules: {
|
|
107
|
+
'constructor-super': 'off',
|
|
108
|
+
'getter-return': 'off',
|
|
109
|
+
'no-class-assign': 'off',
|
|
110
|
+
'no-const-assign': 'off',
|
|
111
|
+
'no-dupe-class-members': 'off',
|
|
112
|
+
'no-dupe-keys': 'off',
|
|
113
|
+
'no-func-assign': 'off',
|
|
114
|
+
'no-import-assign': 'off',
|
|
115
|
+
'no-new-native-nonconstructor': 'off',
|
|
116
|
+
'no-obj-calls': 'off',
|
|
117
|
+
'no-redeclare': 'off',
|
|
118
|
+
'no-setter-return': 'off',
|
|
119
|
+
'no-this-before-super': 'off',
|
|
120
|
+
'no-unreachable': 'off',
|
|
121
|
+
'no-unsafe-negation': 'off',
|
|
122
|
+
'no-with': 'off',
|
|
123
|
+
'prefer-rest-params': 'error',
|
|
124
|
+
'prefer-spread': 'error',
|
|
125
|
+
'no-array-constructor': 'error',
|
|
126
|
+
'no-unused-expressions': 'error',
|
|
127
|
+
"typescript/no-duplicate-enum-values": 'error',
|
|
128
|
+
"typescript/no-explicit-any": 'error',
|
|
129
|
+
"typescript/no-extra-non-null-assertion": 'error',
|
|
130
|
+
"typescript/no-misused-new": 'error',
|
|
131
|
+
"typescript/no-namespace": 'error',
|
|
132
|
+
"typescript/no-non-null-asserted-optional-chain": 'error',
|
|
133
|
+
"typescript/no-this-alias": 'error',
|
|
134
|
+
"typescript/no-unnecessary-type-constraint": 'error',
|
|
135
|
+
"typescript/no-unsafe-declaration-merging": 'error',
|
|
136
|
+
"typescript/no-unsafe-function-type": 'error',
|
|
137
|
+
"typescript/no-wrapper-object-types": 'error',
|
|
138
|
+
"typescript/prefer-as-const": 'error',
|
|
139
|
+
"typescript/prefer-namespace-keyword": 'error',
|
|
140
|
+
"typescript/triple-slash-reference": 'error',
|
|
141
|
+
"typescript/ban-ts-comment": 'warn',
|
|
142
|
+
"typescript/no-floating-promises": 'error',
|
|
143
|
+
"typescript/no-non-null-assertion": 'off',
|
|
144
|
+
'no-use-before-define': 'off',
|
|
145
|
+
'no-empty-function': 'off',
|
|
146
|
+
"typescript/no-require-imports": 'off',
|
|
147
|
+
"typescript/no-empty-object-type": 'off',
|
|
148
|
+
"typescript/explicit-function-return-type": 'off',
|
|
149
|
+
"typescript/explicit-module-boundary-types": 'off'
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
};
|
|
154
|
+
const oxlint = config;
|
|
155
|
+
export default oxlint;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rspack_context = {};
|
|
3
|
+
(function() {
|
|
4
|
+
var compatGetDefaultExport = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
definePropertyGetters(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
__rspack_context.n = compatGetDefaultExport;
|
|
12
|
+
var definePropertyGetters = (exports1, getters, values)=>{
|
|
13
|
+
var define = (defs, kind)=>{
|
|
14
|
+
for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
[kind]: defs[key]
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
define(getters, "get");
|
|
20
|
+
define(values, "value");
|
|
21
|
+
};
|
|
22
|
+
__rspack_context.d = definePropertyGetters;
|
|
23
|
+
var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
24
|
+
var makeNamespaceObject = (exports1)=>{
|
|
25
|
+
Object.defineProperties(exports1, {
|
|
26
|
+
[Symbol.toStringTag]: {
|
|
27
|
+
value: 'Module'
|
|
28
|
+
},
|
|
29
|
+
__esModule: {
|
|
30
|
+
value: true
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
__rspack_context.N = makeNamespaceObject;
|
|
35
|
+
})();
|
|
36
|
+
var __rspack_exports = {};
|
|
37
|
+
__rspack_context.N(__rspack_exports);
|
|
38
|
+
__rspack_context.d(__rspack_exports, {
|
|
39
|
+
default: ()=>node
|
|
40
|
+
});
|
|
41
|
+
const external_index_cjs_namespaceObject = require("./index.cjs");
|
|
42
|
+
var external_index_cjs_default = /*#__PURE__*/ __rspack_context.n(external_index_cjs_namespaceObject);
|
|
43
|
+
const config = {
|
|
44
|
+
extends: [
|
|
45
|
+
external_index_cjs_default()
|
|
46
|
+
],
|
|
47
|
+
ignorePatterns: external_index_cjs_default().ignorePatterns,
|
|
48
|
+
env: {
|
|
49
|
+
node: true
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const node = config;
|
|
53
|
+
exports["default"] = __rspack_exports["default"];
|
|
54
|
+
for(var __rspack_i in __rspack_exports)if (-1 === [
|
|
55
|
+
"default"
|
|
56
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __rspack_exports[__rspack_i];
|
|
57
|
+
Object.defineProperty(exports, '__esModule', {
|
|
58
|
+
value: true
|
|
59
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rspack_context = {};
|
|
3
|
+
(function() {
|
|
4
|
+
var definePropertyGetters = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
__rspack_context.d = definePropertyGetters;
|
|
15
|
+
var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
16
|
+
var makeNamespaceObject = (exports1)=>{
|
|
17
|
+
Object.defineProperties(exports1, {
|
|
18
|
+
[Symbol.toStringTag]: {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
},
|
|
21
|
+
__esModule: {
|
|
22
|
+
value: true
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
__rspack_context.N = makeNamespaceObject;
|
|
27
|
+
})();
|
|
28
|
+
var __rspack_exports = {};
|
|
29
|
+
__rspack_context.N(__rspack_exports);
|
|
30
|
+
const config = {
|
|
31
|
+
trailingComma: 'es5',
|
|
32
|
+
tabWidth: 4,
|
|
33
|
+
singleQuote: true
|
|
34
|
+
};
|
|
35
|
+
const __rspack_default_export = config;
|
|
36
|
+
__rspack_context.d(__rspack_exports, {}, {
|
|
37
|
+
default: __rspack_default_export
|
|
38
|
+
});
|
|
39
|
+
exports["default"] = __rspack_exports["default"];
|
|
40
|
+
for(var __rspack_i in __rspack_exports)if (-1 === [
|
|
41
|
+
"default"
|
|
42
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __rspack_exports[__rspack_i];
|
|
43
|
+
Object.defineProperty(exports, '__esModule', {
|
|
44
|
+
value: true
|
|
45
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rspack_context = {};
|
|
3
|
+
(function() {
|
|
4
|
+
var definePropertyGetters = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
__rspack_context.d = definePropertyGetters;
|
|
15
|
+
var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
16
|
+
var makeNamespaceObject = (exports1)=>{
|
|
17
|
+
Object.defineProperties(exports1, {
|
|
18
|
+
[Symbol.toStringTag]: {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
},
|
|
21
|
+
__esModule: {
|
|
22
|
+
value: true
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
__rspack_context.N = makeNamespaceObject;
|
|
27
|
+
})();
|
|
28
|
+
var __rspack_exports = {};
|
|
29
|
+
__rspack_context.N(__rspack_exports);
|
|
30
|
+
__rspack_context.d(__rspack_exports, {
|
|
31
|
+
default: ()=>rslib
|
|
32
|
+
});
|
|
33
|
+
const core_namespaceObject = require("@rslib/core");
|
|
34
|
+
const rslib = (0, core_namespaceObject.defineConfig)({
|
|
35
|
+
lib: [
|
|
36
|
+
{
|
|
37
|
+
format: 'esm',
|
|
38
|
+
syntax: [
|
|
39
|
+
'node 18'
|
|
40
|
+
],
|
|
41
|
+
dts: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
format: 'cjs',
|
|
45
|
+
syntax: [
|
|
46
|
+
'node 18'
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
exports["default"] = __rspack_exports["default"];
|
|
52
|
+
for(var __rspack_i in __rspack_exports)if (-1 === [
|
|
53
|
+
"default"
|
|
54
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __rspack_exports[__rspack_i];
|
|
55
|
+
Object.defineProperty(exports, '__esModule', {
|
|
56
|
+
value: true
|
|
57
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineConfig } from "@rslib/core";
|
|
2
|
+
const rslib = defineConfig({
|
|
3
|
+
lib: [
|
|
4
|
+
{
|
|
5
|
+
format: 'esm',
|
|
6
|
+
syntax: [
|
|
7
|
+
'node 18'
|
|
8
|
+
],
|
|
9
|
+
dts: true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
format: 'cjs',
|
|
13
|
+
syntax: [
|
|
14
|
+
'node 18'
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
});
|
|
19
|
+
export default rslib;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rspack_context = {};
|
|
3
|
+
(function() {
|
|
4
|
+
var definePropertyGetters = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
__rspack_context.d = definePropertyGetters;
|
|
15
|
+
var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
16
|
+
var makeNamespaceObject = (exports1)=>{
|
|
17
|
+
Object.defineProperties(exports1, {
|
|
18
|
+
[Symbol.toStringTag]: {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
},
|
|
21
|
+
__esModule: {
|
|
22
|
+
value: true
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
__rspack_context.N = makeNamespaceObject;
|
|
27
|
+
})();
|
|
28
|
+
var __rspack_exports = {};
|
|
29
|
+
__rspack_context.N(__rspack_exports);
|
|
30
|
+
__rspack_context.d(__rspack_exports, {
|
|
31
|
+
default: ()=>vitest
|
|
32
|
+
});
|
|
33
|
+
const config_namespaceObject = require("vitest/config");
|
|
34
|
+
const vitest = (0, config_namespaceObject.defineConfig)({});
|
|
35
|
+
exports["default"] = __rspack_exports["default"];
|
|
36
|
+
for(var __rspack_i in __rspack_exports)if (-1 === [
|
|
37
|
+
"default"
|
|
38
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __rspack_exports[__rspack_i];
|
|
39
|
+
Object.defineProperty(exports, '__esModule', {
|
|
40
|
+
value: true
|
|
41
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,118 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luism/configs",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Shared configurations for common tooling",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"configs",
|
|
7
|
+
"gts",
|
|
8
|
+
"oxc",
|
|
9
|
+
"oxfmt",
|
|
10
|
+
"oxlint",
|
|
11
|
+
"prettier",
|
|
12
|
+
"rslib",
|
|
13
|
+
"typescript",
|
|
14
|
+
"vitest"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "Luis Middleton",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/luismiddleton/configs.git"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"tsconfig"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./oxlint": {
|
|
29
|
+
"types": "./dist/oxlint/index.d.ts",
|
|
30
|
+
"import": "./dist/oxlint/index.js",
|
|
31
|
+
"require": "./dist/oxlint/index.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./oxlint/node": {
|
|
34
|
+
"types": "./dist/oxlint/node.d.ts",
|
|
35
|
+
"import": "./dist/oxlint/node.js",
|
|
36
|
+
"require": "./dist/oxlint/node.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./oxfmt": {
|
|
39
|
+
"types": "./dist/oxfmt/index.d.ts",
|
|
40
|
+
"import": "./dist/oxfmt/index.js",
|
|
41
|
+
"require": "./dist/oxfmt/index.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./tsconfig": "./tsconfig/base.json",
|
|
44
|
+
"./tsconfig/bundler": "./tsconfig/bundler.json",
|
|
45
|
+
"./tsconfig/node": "./tsconfig/node.json",
|
|
46
|
+
"./prettier": {
|
|
47
|
+
"types": "./dist/prettier/index.d.ts",
|
|
48
|
+
"import": "./dist/prettier/index.js",
|
|
49
|
+
"require": "./dist/prettier/index.cjs"
|
|
50
|
+
},
|
|
51
|
+
"./rslib": {
|
|
52
|
+
"types": "./dist/rslib/index.d.ts",
|
|
53
|
+
"import": "./dist/rslib/index.js",
|
|
54
|
+
"require": "./dist/rslib/index.cjs"
|
|
55
|
+
},
|
|
56
|
+
"./vitest": {
|
|
57
|
+
"types": "./dist/vitest/index.d.ts",
|
|
58
|
+
"import": "./dist/vitest/index.js",
|
|
59
|
+
"require": "./dist/vitest/index.cjs"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public",
|
|
64
|
+
"provenance": true
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@changesets/cli": "^2.31.1",
|
|
68
|
+
"@rslib/core": "^1.1.0",
|
|
69
|
+
"@types/node": "^26.6.11",
|
|
70
|
+
"@types/prettier": "^3.0.0",
|
|
71
|
+
"oxfmt": "^0.80.0",
|
|
72
|
+
"oxlint": "^1.95.0",
|
|
73
|
+
"oxlint-tsgolint": "^7.0.2009",
|
|
74
|
+
"typescript": "^5.9.2",
|
|
75
|
+
"vitest": "^5.1.2"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"@rslib/core": ">=0.13.0 <2.0.0",
|
|
79
|
+
"oxfmt": ">=0.80.0 <1.0.0",
|
|
80
|
+
"oxlint": ">=1.0.0 <2.0.0",
|
|
81
|
+
"oxlint-tsgolint": ">=7.0.0 <8.0.0",
|
|
82
|
+
"prettier": ">=3.0.0 <4.0.0",
|
|
83
|
+
"vitest": ">=1.0.0 <6.0.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependenciesMeta": {
|
|
86
|
+
"@rslib/core": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"oxfmt": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"oxlint": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"oxlint-tsgolint": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"prettier": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"vitest": {
|
|
102
|
+
"optional": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"scripts": {
|
|
106
|
+
"build": "rslib build",
|
|
107
|
+
"lint": "oxlint --type-aware",
|
|
108
|
+
"lint:fix": "oxlint --type-aware --fix",
|
|
109
|
+
"format": "oxfmt --write",
|
|
110
|
+
"format:check": "oxfmt --check",
|
|
111
|
+
"typecheck": "tsc --noEmit",
|
|
112
|
+
"test": "vitest run",
|
|
113
|
+
"check": "pnpm lint && pnpm format:check && pnpm typecheck",
|
|
114
|
+
"changeset": "changeset",
|
|
115
|
+
"ci:version": "changeset version",
|
|
116
|
+
"ci:publish": "pnpm build && changeset publish"
|
|
117
|
+
}
|
|
6
118
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowUnreachableCode": false,
|
|
4
|
+
"allowUnusedLabels": false,
|
|
5
|
+
"composite": true,
|
|
6
|
+
"forceConsistentCasingInFileNames": true,
|
|
7
|
+
"lib": ["ES2023"],
|
|
8
|
+
"module": "commonjs",
|
|
9
|
+
"noEmitOnError": true,
|
|
10
|
+
"noFallthroughCasesInSwitch": true,
|
|
11
|
+
"noImplicitReturns": true,
|
|
12
|
+
"pretty": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"stripInternal": true,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"target": "ES2022"
|
|
17
|
+
},
|
|
18
|
+
"exclude": ["node_modules"]
|
|
19
|
+
}
|