@ffflorian/oxlint-config 0.0.1 → 1.0.0

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 CHANGED
@@ -1,23 +1,15 @@
1
1
  {
2
+ "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/refs/heads/main/npm/oxlint/configuration_schema.json",
2
3
  "categories": {
3
4
  "correctness": "off"
4
5
  },
5
6
  "env": {
6
7
  "builtin": true
7
8
  },
8
- "ignorePatterns": [
9
- "**/node_modules/**",
10
- "**/dist/**",
11
- ".yarn/**"
12
- ],
9
+ "ignorePatterns": ["**/node_modules/**", "**/dist/**", ".yarn/**"],
13
10
  "overrides": [
14
11
  {
15
- "files": [
16
- "**/*.ts",
17
- "**/*.tsx",
18
- "**/*.mts",
19
- "**/*.cts"
20
- ],
12
+ "files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
21
13
  "rules": {
22
14
  "constructor-super": "off",
23
15
  "getter-return": "off",
@@ -48,29 +40,21 @@
48
40
  "es2018": true,
49
41
  "node": true
50
42
  },
51
- "files": [
52
- "**/*.{js,mjs,cjs,ts,mts,cts}"
53
- ],
43
+ "files": ["**/*.{js,mjs,cjs,ts,mts,cts}"],
54
44
  "globals": {
55
45
  "AsyncDisposableStack": "readonly",
56
46
  "DisposableStack": "readonly",
57
47
  "SuppressedError": "readonly"
58
48
  },
59
- "jsPlugins": [
60
- "eslint-plugin-perfectionist"
61
- ],
62
- "plugins": [
63
- "import"
64
- ],
49
+ "jsPlugins": ["eslint-plugin-perfectionist"],
50
+ "plugins": ["import"],
65
51
  "rules": {
66
52
  "constructor-super": "error",
67
53
  "curly": "error",
68
54
  "id-length": [
69
55
  "error",
70
56
  {
71
- "exceptions": [
72
- "_"
73
- ]
57
+ "exceptions": ["_"]
74
58
  }
75
59
  ],
76
60
  "import/default": "error",
@@ -83,11 +67,7 @@
83
67
  "no-console": [
84
68
  "error",
85
69
  {
86
- "allow": [
87
- "error",
88
- "info",
89
- "warn"
90
- ]
70
+ "allow": ["error", "info", "warn"]
91
71
  }
92
72
  ],
93
73
  "no-const-assign": "error",
@@ -97,12 +77,7 @@
97
77
  "no-magic-numbers": [
98
78
  "error",
99
79
  {
100
- "ignore": [
101
- -1,
102
- 0,
103
- 1,
104
- 2
105
- ]
80
+ "ignore": [-1, 0, 1, 2]
106
81
  }
107
82
  ],
108
83
  "no-prototype-builtins": "off",
@@ -285,9 +260,7 @@
285
260
  }
286
261
  }
287
262
  ],
288
- "plugins": [
289
- "typescript"
290
- ],
263
+ "plugins": ["typescript"],
291
264
  "rules": {
292
265
  "constructor-super": "error",
293
266
  "for-direction": "error",
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # @ffflorian/oxlint-config 1.0.0 (2026-07-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **oxlint-config:** Add readme and schema ([6f36cd6](https://github.com/ffflorian/config/commit/6f36cd6d8afc0308e0fe270cec214a4a1404c4d7))
7
+
8
+
9
+ ### Features
10
+
11
+ * Add oxlint-config ([349415b](https://github.com/ffflorian/config/commit/349415bc410bb785ebca20c1fa5aaa3e202c1d84))
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @ffflorian/oxlint-config [![npm version](https://img.shields.io/npm/v/@ffflorian/oxlint-config.svg)](https://npmjs.com/package/@ffflorian/oxlint-config)
2
+
3
+ Opinionated oxlint config for JavaScript and TypeScript projects.
4
+
5
+ ## What Is Included
6
+
7
+ - oxlint recommended rules
8
+ - TypeScript ESLint recommended rules
9
+ - Import plugin rules (including TypeScript import resolution)
10
+ - Perfectionist alphabetical sorting rules
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ yarn add -D oxlint @ffflorian/oxlint-config
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ Create or update `eslint.config.ts`:
21
+
22
+ ```ts
23
+ import config from '@ffflorian/eslint-config';
24
+ import {defineConfig} from 'eslint/config';
25
+
26
+ export default defineConfig([config]);
27
+ ```
28
+
29
+ ## Notes
30
+
31
+ - This package is built for ESLint flat config (`eslint.config.*`).
32
+ - The config already includes TypeScript support via `typescript-eslint`.
33
+ - If your project uses custom path aliases, ensure your TypeScript config is set up so import resolution works as expected.
package/package.json CHANGED
@@ -22,5 +22,5 @@
22
22
  "type": "git",
23
23
  "url": "git+https://github.com/ffflorian/config.git"
24
24
  },
25
- "version": "0.0.1"
25
+ "version": "1.0.0"
26
26
  }