@lumiose/eslint-plugin 0.3.0 → 0.4.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/README.md +38 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @lumiose/eslint-plugin
|
|
2
|
+
|
|
3
|
+
The [Lumiose](https://itsjavi.com/lumiose/) compiler's `LUMxxxx` diagnostics as lint rules for oxlint
|
|
4
|
+
(JS plugins) and ESLint, with their help text and fixes, so every tool agrees with `lumiose check`.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
pnpm add -D @lumiose/eslint-plugin
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
**oxlint** lints `.tsx` files (it cannot parse `.stsx` yet; `lumiose lint` covers those):
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
// .oxlintrc.json
|
|
14
|
+
{
|
|
15
|
+
"jsPlugins": ["@lumiose/eslint-plugin"],
|
|
16
|
+
"rules": { "lumiose/compiler": "error", "lumiose/compiler-warnings": "warn" }
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**ESLint 9** lints `.stsx` files too, through the recommended config's processor:
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
// eslint.config.js
|
|
24
|
+
import lumiose from "@lumiose/eslint-plugin";
|
|
25
|
+
import tseslint from "typescript-eslint";
|
|
26
|
+
|
|
27
|
+
export default [
|
|
28
|
+
...lumiose.configs.recommended,
|
|
29
|
+
{ files: ["**/*.tsx", "**/*.stsx/*.tsx"], languageOptions: { parser: tseslint.parser } },
|
|
30
|
+
];
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Project-wide checks need the whole project: run `lumiose check` for those. More:
|
|
34
|
+
[oxlint, ESLint and Prettier](https://itsjavi.com/lumiose/docs/reference/cli/#oxlint-eslint-and-prettier).
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
[MIT](https://github.com/itsjavi/lumiose/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumiose/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Lumiose's compiler diagnostics (LUMxxxx) as lint rules for oxlint (JS plugins) and ESLint, plus a .stsx processor for ESLint.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./package.json": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@lumiose/compiler": "0.
|
|
23
|
+
"@lumiose/compiler": "0.4.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"typecheck": "tsc -p tsconfig.json",
|