@daldalso/eslint-plugin 1.2.1 → 1.2.3
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 +7 -13
- package/dist/rules/semantic-quotes.js +1 -1
- package/package.json +2 -2
- package/dist/rules/test.js +0 -1
package/README.md
CHANGED
|
@@ -4,19 +4,13 @@ ESLint plugin for [Daldalso](https://daldal.so)-style programming.
|
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
1. `yarn add @daldalso/eslint-plugin`
|
|
7
|
-
2. Add
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"plugin:@daldalso/eslint-plugin/all"
|
|
15
|
-
],
|
|
16
|
-
"parserOptions": {
|
|
17
|
-
"project": "./tsconfig.json"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
7
|
+
2. Add the plugin to your ESLint 9 configuration file like below:
|
|
8
|
+
```js
|
|
9
|
+
import daldalsoPlugin from "@daldalso/eslint-plugin";
|
|
10
|
+
|
|
11
|
+
export default [
|
|
12
|
+
daldalsoPlugin.configs.all
|
|
13
|
+
];
|
|
20
14
|
```
|
|
21
15
|
|
|
22
16
|
## Caveats
|
|
@@ -203,7 +203,7 @@ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
|
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
205
|
var fromGeneric = false;
|
|
206
|
-
v: for (var _i = 0, _b =
|
|
206
|
+
v: for (var _i = 0, _b = sourceCode.getAncestors(node).reverse(); _i < _b.length; _i++) {
|
|
207
207
|
var v = _b[_i];
|
|
208
208
|
switch (v.type) {
|
|
209
209
|
case utils_1.AST_NODE_TYPES.TSPropertySignature:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daldalso/eslint-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/JJoriping/eslint-plugin.git"
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"typescript": "^5"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"eslint": "^
|
|
41
|
+
"eslint": "^9"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/dist/rules/test.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|