@powerlines/plugin-eslint 0.8.681 → 0.8.683

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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +5 -5
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.681",
3
+ "version": "0.8.683",
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.151",
120
+ "@storm-software/config-tools": "^1.190.154",
121
121
  "@stryke/fs": "^0.33.118",
122
122
  "@stryke/path": "^0.29.43",
123
123
  "@stryke/type-checks": "^0.6.49",
124
124
  "defu": "^6.1.7",
125
125
  "eslint": "^10.13.0",
126
- "powerlines": "^0.47.215"
126
+ "powerlines": "^0.47.217"
127
127
  },
128
128
  "devDependencies": {
129
- "@powerlines/plugin-plugin": "^0.12.628",
129
+ "@powerlines/plugin-plugin": "^0.12.630",
130
130
  "@types/node": "^25.9.9"
131
131
  },
132
132
  "publishConfig": { "access": "public" },
133
- "gitHead": "810bc635d1503594d09d9f0c8c93ea413745a9df"
133
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
134
134
  }