@ffflorian/oxlint-config 0.0.1 → 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/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ ## @ffflorian/oxlint-config [1.0.1](https://github.com/ffflorian/config/compare/@ffflorian/oxlint-config@1.0.0...@ffflorian/oxlint-config@1.0.1) (2026-07-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **oxlint-config:** Fix patterns and peer dependencies ([c86a858](https://github.com/ffflorian/config/commit/c86a858adc54c37c5caea57a377b1c38e56f7472))
7
+
8
+ # @ffflorian/oxlint-config 1.0.0 (2026-07-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **oxlint-config:** Add readme and schema ([6f36cd6](https://github.com/ffflorian/config/commit/6f36cd6d8afc0308e0fe270cec214a4a1404c4d7))
14
+
15
+
16
+ ### Features
17
+
18
+ * Add oxlint-config ([349415b](https://github.com/ffflorian/config/commit/349415bc410bb785ebca20c1fa5aaa3e202c1d84))
package/README.md ADDED
@@ -0,0 +1,36 @@
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 \
16
+ eslint \
17
+ eslint-plugin-perfectionist \
18
+ @ffflorian/oxlint-config
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ Create or update `eslint.config.ts`:
24
+
25
+ ```ts
26
+ import config from '@ffflorian/eslint-config';
27
+ import {defineConfig} from 'eslint/config';
28
+
29
+ export default defineConfig([config]);
30
+ ```
31
+
32
+ ## Notes
33
+
34
+ - This package is built for ESLint flat config (`eslint.config.*`).
35
+ - The config already includes TypeScript support via `typescript-eslint`.
36
+ - If your project uses custom path aliases, ensure your TypeScript config is set up so import resolution works as expected.
@@ -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", "**/*.js", "**/*.mjs", "**/*.cjs"],
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/package.json CHANGED
@@ -9,9 +9,11 @@
9
9
  "oxlintconfig"
10
10
  ],
11
11
  "license": "GPL-3.0",
12
- "main": "index.ts",
12
+ "main": "index.json",
13
13
  "name": "@ffflorian/oxlint-config",
14
14
  "peerDependencies": {
15
+ "eslint": ">=10.8.0",
16
+ "eslint-plugin-perfectionist": ">=5.10.0",
15
17
  "oxlint": ">=1.76.0"
16
18
  },
17
19
  "scripts": {
@@ -22,5 +24,5 @@
22
24
  "type": "git",
23
25
  "url": "git+https://github.com/ffflorian/config.git"
24
26
  },
25
- "version": "0.0.1"
27
+ "version": "1.0.1"
26
28
  }