@powerlines/plugin-eslint 0.8.682 → 0.8.684
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 +32 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -74,6 +74,38 @@ A package containing a Powerlines plugin that integrates ESLint into the Powerli
|
|
|
74
74
|
|
|
75
75
|
<!-- END doctoc -->
|
|
76
76
|
|
|
77
|
+
## Features
|
|
78
|
+
|
|
79
|
+
- Runs ESLint on project TypeScript files through the `lint` hook (artifacts and `node_modules` excluded)
|
|
80
|
+
- Supports flat and legacy ESLint via `loadESLint`; results written to `outputFile` or logged per file
|
|
81
|
+
- Exposes the instance on context (`this.eslint`) with a lint-message formatter under `./helpers/format-message`
|
|
82
|
+
|
|
83
|
+
## Usage
|
|
84
|
+
|
|
85
|
+
Install the plugin:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
pnpm add @powerlines/plugin-eslint
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Register it in `powerlines.config.ts`:
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import { defineConfig } from "powerlines";
|
|
95
|
+
import { plugin as eslint } from "@powerlines/plugin-eslint";
|
|
96
|
+
|
|
97
|
+
export default defineConfig({
|
|
98
|
+
plugins: [
|
|
99
|
+
eslint({
|
|
100
|
+
configFile: "./eslint.config.mjs",
|
|
101
|
+
fix: true
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
});
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Run the Powerlines build for your project to activate the plugin.
|
|
108
|
+
|
|
77
109
|
## Installing
|
|
78
110
|
|
|
79
111
|
Using [pnpm](http://pnpm.io):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-eslint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.684",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running ESLint on the codebase.",
|
|
6
6
|
"keywords": ["eslint", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -117,18 +117,18 @@
|
|
|
117
117
|
"types": "./dist/index.d.cts",
|
|
118
118
|
"files": ["dist/**/*"],
|
|
119
119
|
"dependencies": {
|
|
120
|
-
"@storm-software/config-tools": "^1.190.
|
|
121
|
-
"@stryke/fs": "^0.33.
|
|
122
|
-
"@stryke/path": "^0.29.
|
|
123
|
-
"@stryke/type-checks": "^0.6.
|
|
120
|
+
"@storm-software/config-tools": "^1.190.155",
|
|
121
|
+
"@stryke/fs": "^0.33.119",
|
|
122
|
+
"@stryke/path": "^0.29.44",
|
|
123
|
+
"@stryke/type-checks": "^0.6.50",
|
|
124
124
|
"defu": "^6.1.7",
|
|
125
125
|
"eslint": "^10.13.0",
|
|
126
|
-
"powerlines": "^0.47.
|
|
126
|
+
"powerlines": "^0.47.218"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
129
|
+
"@powerlines/plugin-plugin": "^0.12.631",
|
|
130
130
|
"@types/node": "^25.9.9"
|
|
131
131
|
},
|
|
132
132
|
"publishConfig": { "access": "public" },
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "c71daefe09bbd0d26190c3096e0a30120d3a244b"
|
|
134
134
|
}
|