@2digits/oxlint-config 0.0.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.
@@ -0,0 +1 @@
1
+ import{a as e,i as t,n,r,t as i}from"./globs-DHoOMEyI.mjs";const a=e({overrides:[{files:[...n],rules:{"eslint/no-duplicate-imports":`off`,"eslint/no-undef":`off`,"eslint/no-unused-vars":`off`}},{files:[...t],globals:{afterAll:`readonly`,afterEach:`readonly`,beforeAll:`readonly`,beforeEach:`readonly`,bench:`readonly`,describe:`readonly`,expect:`readonly`,expectTypeOf:`readonly`,it:`readonly`,suite:`readonly`,test:`readonly`,vi:`readonly`},rules:{"eslint/no-unused-expressions":`off`}},{files:[...i],rules:{"typescript/no-import-type-side-effects":`off`}}]}),o=e({options:{typeAware:!0},rules:{"typescript/await-thenable":`error`,"typescript/no-base-to-string":`error`,"typescript/no-duplicate-type-constituents":`error`,"typescript/no-floating-promises":`error`,"typescript/no-for-in-array":`error`,"typescript/no-implied-eval":`error`,"typescript/no-meaningless-void-operator":`error`,"typescript/no-misused-spread":`error`,"typescript/no-non-null-asserted-optional-chain":`error`,"typescript/no-redundant-type-constituents":`error`,"typescript/no-this-alias":`error`,"typescript/no-unnecessary-parameter-property-assignment":`error`,"typescript/no-unsafe-declaration-merging":`error`,"typescript/no-unsafe-unary-minus":`error`,"typescript/no-useless-empty-export":`error`,"typescript/require-array-sort-compare":`error`,"typescript/restrict-template-expressions":[`error`,{allowNumber:!0}],"typescript/triple-slash-reference":`error`,"typescript/unbound-method":`error`}}),s=e({options:{denyWarnings:!0,reportUnusedDisableDirectives:`deny`},categories:{nursery:`off`,pedantic:`off`,correctness:`off`,perf:`off`,style:`off`,restriction:`off`,suspicious:`off`},extends:[e({plugins:[`typescript`],rules:{"typescript/array-type":[`error`,{default:`generic`,readonly:`generic`}],"typescript/ban-ts-comment":[`error`,{"ts-ignore":`allow-with-description`}],"typescript/consistent-generic-constructors":`error`,"typescript/consistent-type-definitions":`error`,"typescript/consistent-type-exports":`error`,"typescript/consistent-type-imports":[`error`,{fixStyle:`inline-type-imports`}],"typescript/no-array-delete":`error`,"typescript/no-duplicate-enum-values":`error`,"typescript/no-empty-object-type":[`error`,{allowInterfaces:`with-single-extends`,allowObjectTypes:`never`}],"typescript/no-explicit-any":`error`,"typescript/no-import-type-side-effects":`error`,"typescript/no-misused-new":`error`,"typescript/no-non-null-assertion":`error`,"typescript/no-require-imports":`error`,"typescript/no-var-requires":`error`,"typescript/no-wrapper-object-types":`error`,"typescript/prefer-as-const":`error`,"typescript/prefer-namespace-keyword":`error`}}),o,e({plugins:[`vitest`],settings:{vitest:{typecheck:!0}},rules:{"vitest/consistent-each-for":[`error`,{describe:`each`,suite:`each`,it:`each`,test:`each`}],"vitest/consistent-test-filename":[`error`,{pattern:String.raw`.*\.spec\.[tj]sx?$`,allTestPattern:String.raw`.*\.(test|spec)\.[tj]sx?$`}],"vitest/consistent-vitest-vi":[`error`,{fn:`vi`}],"vitest/hoisted-apis-on-top":`error`,"vitest/no-conditional-tests":`error`,"vitest/no-import-node-test":`error`,"vitest/no-importing-vitest-globals":`off`,"vitest/prefer-called-once":`off`,"vitest/prefer-called-times":`error`,"vitest/prefer-describe-function-title":`error`,"vitest/prefer-expect-type-of":`error`,"vitest/prefer-import-in-mock":`error`,"vitest/prefer-to-be-falsy":`error`,"vitest/prefer-to-be-object":`error`,"vitest/prefer-to-be-truthy":`error`,"vitest/require-local-test-context-for-concurrent-snapshots":`error`,"vitest/warn-todo":`error`}}),a],ignorePatterns:[...r]});export{s as t};
@@ -0,0 +1,6 @@
1
+ import { n as TypedOxlintConfig } from "./types-BLNZLukd.mjs";
2
+
3
+ //#region src/typescript.d.ts
4
+ declare const typescriptConfig: TypedOxlintConfig;
5
+ //#endregion
6
+ export { typescriptConfig };
@@ -0,0 +1 @@
1
+ import{t as e}from"./typescript-ByxmKTma.mjs";export{e as typescriptConfig};
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@2digits/oxlint-config",
3
+ "version": "0.0.1",
4
+ "description": "Minimal Oxlint config for 2digits projects.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/2digits-agency/configs.git",
8
+ "directory": "packages/oxlint-config"
9
+ },
10
+ "type": "module",
11
+ "types": "./dist/index.d.mts",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "exports": {
16
+ ".": "./dist/index.mjs",
17
+ "./base": "./dist/base.mjs",
18
+ "./typescript": "./dist/typescript.mjs",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "sideEffects": false,
22
+ "keywords": [
23
+ "oxlint-config"
24
+ ],
25
+ "license": "MIT",
26
+ "public": true,
27
+ "dependencies": {
28
+ "defu": "6.1.4"
29
+ },
30
+ "devDependencies": {
31
+ "@arethetypeswrong/core": "0.18.2",
32
+ "@types/node": "24.12.0",
33
+ "@typescript/native-preview": "7.0.0-dev.20260325.1",
34
+ "dedent": "1.7.2",
35
+ "oxlint": "1.57.0",
36
+ "oxlint-tsgolint": "0.17.3",
37
+ "publint": "0.3.18",
38
+ "tsdown": "0.21.4",
39
+ "tsx": "4.21.0",
40
+ "typescript": "6.0.2",
41
+ "@2digits/tsconfig": "0.8.7"
42
+ },
43
+ "peerDependencies": {
44
+ "oxlint": "1.57.0",
45
+ "oxlint-tsgolint": "0.17.3"
46
+ },
47
+ "scripts": {
48
+ "build": "tsdown --minify --config-loader unconfig",
49
+ "dev": "tsdown --watch --config-loader unconfig",
50
+ "rules:check": "tsx ./scripts/check-rules.ts",
51
+ "types:generate": "tsx ./scripts/generate-types.ts",
52
+ "types": "tsgo --noEmit"
53
+ }
54
+ }