@anolilab/oxlint-config 0.0.0 → 1.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.
package/.oxlintrc.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "../../node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["typescript", "unicorn", "oxc", "import", "promise", "node", "jsdoc", "react", "jsx-a11y"],
4
+ "categories": {
5
+ "correctness": "error",
6
+ "suspicious": "warn",
7
+ "pedantic": "warn"
8
+ },
9
+ "rules": {}
10
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ ## @anolilab/oxlint-config [1.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/oxlint-config@1.0.0...@anolilab/oxlint-config@1.0.1) (2026-09-07)
2
+
3
+
4
+ ### Dependencies
5
+
6
+ * **@anolilab/eslint-config:** upgraded to 30.0.2
7
+
8
+ ## @anolilab/oxlint-config 1.0.0 (2026-07-21)
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * **@anolilab/eslint-config:** upgraded to 28.1.0
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Anolilab
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,5 +1,99 @@
1
- # @anolilab/oxlint-config
1
+ <!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
2
2
 
3
- Placeholder release to reserve the package name. The first real version is published from CI.
3
+ <a href="https://github.com/anolilab/semantic-release" align="center">
4
4
 
5
- See [anolilab/javascript-style-guide](https://github.com/anolilab/javascript-style-guide/tree/main/packages/oxlint-config).
5
+ <img src="__assets__/package-og.svg" alt="oxlint-config" />
6
+
7
+ </a>
8
+
9
+ <h3 align="center">oxlint shareable config for Anolilab.</h3>
10
+
11
+ <!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
12
+
13
+ <br />
14
+
15
+ <div align="center">
16
+
17
+ [![typescript-image][typescript-badge]][typescript-url]
18
+ [![mit licence][license-badge]][license]
19
+
20
+ </div>
21
+
22
+ ---
23
+
24
+ A shareable [oxlint](https://oxc.rs/docs/guide/usage/linter) configuration for Anolilab. It
25
+ enables the `correctness`, `suspicious` and `pedantic` rule categories across a broad plugin set
26
+ and leaves the `style` category to [`@anolilab/oxfmt-config`](https://anolilab.com/nodejs/packages/oxfmt-config).
27
+
28
+ ## Install
29
+
30
+ ```sh
31
+ npm install --save-dev @anolilab/oxlint-config oxlint
32
+ ```
33
+
34
+ ```sh
35
+ pnpm add -D @anolilab/oxlint-config oxlint
36
+ ```
37
+
38
+ > `oxlint` is a peer dependency, install it alongside this package.
39
+
40
+ ## Setup
41
+
42
+ Run the installer to scaffold a `.oxlintrc.json` for you:
43
+
44
+ ```sh
45
+ npx oxlint-config:install
46
+ ```
47
+
48
+ Or wire it up manually — there are two ways to consume it.
49
+
50
+ **`.oxlintrc.json` (extends by path)**
51
+
52
+ oxlint's JSON config cannot import npm packages, so `extends` points at the file inside `node_modules`:
53
+
54
+ ```json
55
+ {
56
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
57
+ "extends": ["./node_modules/@anolilab/oxlint-config/.oxlintrc.json"],
58
+ "rules": {}
59
+ }
60
+ ```
61
+
62
+ **`oxlint.config.ts` (import the object)**
63
+
64
+ ```ts
65
+ import config from "@anolilab/oxlint-config";
66
+
67
+ export default config;
68
+ ```
69
+
70
+ ## Overriding
71
+
72
+ Relax or tighten individual rules on top of the shared base:
73
+
74
+ ```json
75
+ {
76
+ "extends": ["./node_modules/@anolilab/oxlint-config/.oxlintrc.json"],
77
+ "rules": {
78
+ "no-console": "off"
79
+ }
80
+ }
81
+ ```
82
+
83
+ ## What it sets
84
+
85
+ - `categories`: `correctness: "error"`, `suspicious: "warn"`, `pedantic: "warn"`
86
+ - `plugins`: `typescript`, `unicorn`, `oxc`, `import`, `promise`, `node`, `jsdoc`, `react`, `jsx-a11y`
87
+
88
+ The `style` category is intentionally left off — formatting is the formatter's job. Pair this
89
+ with [`@anolilab/oxfmt-config`](https://anolilab.com/nodejs/packages/oxfmt-config).
90
+
91
+ ## Related
92
+
93
+ - [`@anolilab/oxfmt-config`](https://anolilab.com/nodejs/packages/oxfmt-config)
94
+ - [`@anolilab/eslint-config`](https://anolilab.com/nodejs/packages/eslint-config)
95
+
96
+ [typescript-badge]: https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=fff&style=flat-square
97
+ [typescript-url]: https://www.typescriptlang.org/ "TypeScript"
98
+ [license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
99
+ [license]: LICENSE.md
package/dist/bin.mjs ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import{existsSync as s}from"node:fs";import{writeFile as l}from"node:fs/promises";import{join as n}from"node:path";import{exit as i}from"node:process";const r="./node_modules/@anolilab/oxlint-config/.oxlintrc.json",a=async o=>{for(const e of[".oxlintrc.json",".oxlintrc.jsonc","oxlint.config.ts","oxlint.config.mts","oxlint.config.cts"])if(s(n(o,e))){console.warn(`⚠️ ${e} already exists;
3
+ Make sure that it extends @anolilab/oxlint-config for it to work as it should:
4
+ ${JSON.stringify({extends:[r]},void 0,4)}
5
+ `);return}const c=n(o,".oxlintrc.json");await l(c,`${JSON.stringify({$schema:"./node_modules/oxlint/configuration_schema.json",extends:[r],rules:{}},void 0,4)}
6
+ `,"utf8")},t=process.cwd(),f=n(t,"package.json");s(f)||(console.error("No package.json found in the current directory. You need to run this command in a directory with a package.json file."),i(1));console.log("Configuring @anolilab/oxlint-config",t,`
7
+ `);try{await a(t),console.log("Everything went well, have fun!"),i(0)}catch(o){console.error("Something went wrong:",o),i(1)}
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./packem_shared/default-DLYJuchD.cjs");module.exports=e.default;
@@ -0,0 +1,12 @@
1
+ declare let $schema: string;
2
+ declare let plugins: string[];
3
+ declare namespace categories {
4
+ let correctness: string;
5
+ let suspicious: string;
6
+ let pedantic: string;
7
+ }
8
+ declare let rules: {};
9
+ declare namespace __json_default_export {
10
+ export { $schema, plugins, categories, rules };
11
+ }
12
+ export = __json_default_export;
@@ -0,0 +1,12 @@
1
+ declare let $schema: string;
2
+ declare let plugins: string[];
3
+ declare namespace categories {
4
+ let correctness: string;
5
+ let suspicious: string;
6
+ let pedantic: string;
7
+ }
8
+ declare let rules: {};
9
+ declare namespace __json_default_export {
10
+ export { $schema, plugins, categories, rules };
11
+ }
12
+ export { __json_default_export as default };
@@ -0,0 +1,12 @@
1
+ declare let $schema: string;
2
+ declare let plugins: string[];
3
+ declare namespace categories {
4
+ let correctness: string;
5
+ let suspicious: string;
6
+ let pedantic: string;
7
+ }
8
+ declare let rules: {};
9
+ declare namespace __json_default_export {
10
+ export { $schema, plugins, categories, rules };
11
+ }
12
+ export = __json_default_export;
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{default as o}from"./packem_shared/default-CQcEbHEy.mjs";export{o as default};
@@ -0,0 +1 @@
1
+ var r="../../node_modules/oxlint/configuration_schema.json",s=["typescript","unicorn","oxc","import","promise","node","jsdoc","react","jsx-a11y"],e={correctness:"error",suspicious:"warn",pedantic:"warn"},o={};const a={$schema:r,plugins:s,categories:e,rules:o};export{r as $schema,e as categories,a as default,s as plugins,o as rules};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e="../../node_modules/oxlint/configuration_schema.json",r=["typescript","unicorn","oxc","import","promise","node","jsdoc","react","jsx-a11y"],s={correctness:"error",suspicious:"warn",pedantic:"warn"},o={};const a={$schema:e,plugins:r,categories:s,rules:o};exports.$schema=e;exports.categories=s;exports.default=a;exports.plugins=r;exports.rules=o;
package/package.json CHANGED
@@ -1,15 +1,82 @@
1
1
  {
2
- "name": "@anolilab/oxlint-config",
3
- "version": "0.0.0",
4
- "description": "Placeholder to reserve the package name. The first real release is published from CI.",
5
- "license": "MIT",
6
- "homepage": "https://anolilab.com/nodejs/packages/oxlint-config",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/anolilab/javascript-style-guide.git",
10
- "directory": "packages/oxlint-config"
2
+ "name": "@anolilab/oxlint-config",
3
+ "version": "1.0.1",
4
+ "description": "oxlint shareable config for Anolilab.",
5
+ "keywords": [
6
+ "anolilab",
7
+ "lint",
8
+ "linter",
9
+ "oxc",
10
+ "oxlint",
11
+ "oxlintconfig",
12
+ "config",
13
+ "oxlint-config"
14
+ ],
15
+ "homepage": "https://anolilab.com/nodejs/packages/oxlint-config",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/anolilab/javascript-style-guide.git",
19
+ "directory": "packages/oxlint-config"
20
+ },
21
+ "funding": [
22
+ {
23
+ "type": "github",
24
+ "url": "https://github.com/sponsors/prisis"
11
25
  },
12
- "publishConfig": {
13
- "access": "public"
26
+ {
27
+ "type": "consulting",
28
+ "url": "https://anolilab.com/support"
14
29
  }
15
- }
30
+ ],
31
+ "license": "MIT",
32
+ "author": {
33
+ "name": "Daniel Bannert",
34
+ "email": "d.bannert@anolilab.de"
35
+ },
36
+ "sideEffects": false,
37
+ "type": "module",
38
+ "exports": {
39
+ ".": {
40
+ "import": {
41
+ "types": "./dist/index.d.mts",
42
+ "default": "./dist/index.mjs"
43
+ },
44
+ "require": {
45
+ "types": "./dist/index.d.cts",
46
+ "default": "./dist/index.cjs"
47
+ }
48
+ },
49
+ "./.oxlintrc.json": "./.oxlintrc.json",
50
+ "./package.json": "./package.json"
51
+ },
52
+ "main": "dist/index.cjs",
53
+ "module": "dist/index.mjs",
54
+ "types": "dist/index.d.ts",
55
+ "typesVersions": {
56
+ ">=5.0": {
57
+ ".": [
58
+ "./dist/index.d.ts"
59
+ ]
60
+ }
61
+ },
62
+ "bin": {
63
+ "oxlint-config:install": "./dist/bin.mjs"
64
+ },
65
+ "files": [
66
+ ".oxlintrc.json",
67
+ "CHANGELOG.md",
68
+ "LICENSE.md",
69
+ "README.md",
70
+ "dist"
71
+ ],
72
+ "peerDependencies": {
73
+ "oxlint": "1.78.0"
74
+ },
75
+ "engines": {
76
+ "node": ">=22.12.0 <=25.*"
77
+ },
78
+ "publishConfig": {
79
+ "access": "public",
80
+ "provenance": true
81
+ }
82
+ }