@ethlete/eslint-plugin 0.1.0-next.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/CHANGELOG.md +9 -0
- package/README.md +25 -0
- package/package.json +14 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2933](https://github.com/ethlete-io/ethdk/pull/2933) [`3f22771`](https://github.com/ethlete-io/ethdk/commit/3f22771bb3a339461ce8c70a48e573897579f3c4) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add basic set of styleguide based rules
|
|
8
|
+
|
|
9
|
+
All notable changes to this project will be documented in this file.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @ethlete/eslint-plugin
|
|
2
|
+
|
|
3
|
+
ESLint plugin with custom rules and shareable flat configs for the Ethlete coding styleguide.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save-dev @ethlete/eslint-plugin
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
// eslint.config.mjs
|
|
15
|
+
import ethlete from '@ethlete/eslint-plugin';
|
|
16
|
+
|
|
17
|
+
export default [...ethlete.configs.recommended];
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Rules
|
|
21
|
+
|
|
22
|
+
| Rule | Description |
|
|
23
|
+
| -------------------------------- | ----------------------------------------------------------------------------------------------- |
|
|
24
|
+
| `ethlete/no-inject-chain` | Disallows `inject(X).member` chaining — use a `const` instead |
|
|
25
|
+
| `ethlete/no-trivial-return-type` | Disallows explicit `void`, `boolean`, `string`, `number` return types that TypeScript can infer |
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ethlete/eslint-plugin",
|
|
3
|
+
"version": "0.1.0-next.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "./src/index.js",
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@angular-eslint/eslint-plugin-template": ">=21.0.0",
|
|
9
|
+
"@typescript-eslint/eslint-plugin": ">=8.0.0",
|
|
10
|
+
"eslint": ">=9.0.0",
|
|
11
|
+
"tslib": "2.8.1"
|
|
12
|
+
},
|
|
13
|
+
"types": "./src/index.d.ts"
|
|
14
|
+
}
|