@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 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 following values to your ESLint configuration file.
8
- ```json
9
- {
10
- "plugins": [
11
- "@daldalso/eslint-plugin"
12
- ],
13
- "extends": [
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 = context.getAncestors().reverse(); _i < _b.length; _i++) {
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.1",
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": "^8"
41
+ "eslint": "^9"
42
42
  }
43
43
  }
@@ -1 +0,0 @@
1
- "use strict";