@akinon/eslint-plugin-projectzero 2.0.157-rc.13 → 2.0.157

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 CHANGED
@@ -1,12 +1,6 @@
1
1
  # @akinon/eslint-plugin-projectzero
2
2
 
3
- ## 2.0.157-rc.13
4
-
5
- ## 2.0.157-rc.12
6
-
7
- ### Patch Changes
8
-
9
- - c0228aff0: ZERO-4159: Upgrade the package versions
3
+ ## 2.0.157
10
4
 
11
5
  ## 2.0.156
12
6
 
@@ -49,8 +49,7 @@ const getAllKeysFromObject = (obj, prefix = '') => {
49
49
  return result.concat(`${prefix}${key}`);
50
50
  }, []);
51
51
  };
52
- // eslint-disable-next-line -eslint/no-explicit-any
53
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
52
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
54
53
  create(context) {
55
54
  return {
56
55
  CallExpression(node) {
@@ -94,4 +93,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
94
93
  },
95
94
  defaultOptions: []
96
95
  });
97
- exports.default = rule;
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
4
  const types_1 = require("@typescript-eslint/types");
5
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
5
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
7
6
  create: function (context) {
8
7
  return {
9
8
  CallExpression(node) {
@@ -42,4 +41,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
42
41
  },
43
42
  defaultOptions: []
44
43
  });
45
- exports.default = rule;
@@ -13,8 +13,7 @@ const correctOrder = [
13
13
  'withCompleteGpay',
14
14
  'withCompleteMasterpass'
15
15
  ];
16
- // eslint-disable-next-line -eslint/no-explicit-any
17
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
16
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
18
17
  create(context) {
19
18
  return {
20
19
  CallExpression(node) {
@@ -56,4 +55,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
56
55
  },
57
56
  defaultOptions: []
58
57
  });
59
- exports.default = rule;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
4
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  return {
8
7
  CallExpression(node) {
@@ -51,4 +50,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
51
50
  },
52
51
  defaultOptions: []
53
52
  });
54
- exports.default = rule;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
4
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  if (!context.getFilename().includes('urls.ts')) {
8
7
  return {};
@@ -35,4 +34,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
35
34
  },
36
35
  defaultOptions: []
37
36
  });
38
- exports.default = rule;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
4
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  if (context.getFilename().includes('components/image.tsx')) {
8
7
  return {};
@@ -36,4 +35,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
36
35
  },
37
36
  defaultOptions: []
38
37
  });
39
- exports.default = rule;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
4
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  if (!context.getFilename().includes('akinon-next')) {
8
7
  return {};
@@ -36,4 +35,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
36
35
  },
37
36
  defaultOptions: []
38
37
  });
39
- exports.default = rule;
@@ -35,8 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const utils_1 = require("@typescript-eslint/utils");
37
37
  const path = __importStar(require("path"));
38
- // eslint-disable-next-line -eslint/no-explicit-any
39
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
38
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
40
39
  create(context) {
41
40
  const currentFilePath = path.normalize(context.getFilename());
42
41
  const linkComponentPath = path.normalize(path.join('components', 'link.tsx'));
@@ -72,4 +71,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
72
71
  },
73
72
  defaultOptions: []
74
73
  });
75
- exports.default = rule;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
4
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  return {
8
7
  ImportDeclaration(node) {
@@ -38,4 +37,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
38
37
  },
39
38
  defaultOptions: []
40
39
  });
41
- exports.default = rule;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@typescript-eslint/utils");
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
4
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  if (context.getFilename().includes('@akinon/next/hooks/use-router.ts')) {
8
7
  return {};
@@ -36,4 +35,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
36
35
  },
37
36
  defaultOptions: []
38
37
  });
39
- exports.default = rule;
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const types_1 = require("@typescript-eslint/types");
4
4
  const utils_1 = require("@typescript-eslint/utils");
5
- // eslint-disable-next-line -eslint/no-explicit-any
6
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
5
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
7
6
  create(context) {
8
7
  return {
9
8
  VariableDeclarator(node) {
@@ -46,4 +45,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
46
45
  },
47
46
  defaultOptions: []
48
47
  });
49
- exports.default = rule;
@@ -4,8 +4,7 @@ const utils_1 = require("@typescript-eslint/utils");
4
4
  const URLS = [
5
5
  '/users/logout/'
6
6
  ];
7
- // eslint-disable-next-line -eslint/no-explicit-any
8
- const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
7
+ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
9
8
  create(context) {
10
9
  if (!context.getFilename().includes('urls.ts')) {
11
10
  return {};
@@ -39,4 +38,3 @@ const rule = utils_1.ESLintUtils.RuleCreator.withoutDocs({
39
38
  },
40
39
  defaultOptions: []
41
40
  });
42
- exports.default = rule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/eslint-plugin-projectzero",
3
- "version": "2.0.157-rc.13",
3
+ "version": "2.0.157",
4
4
  "private": false,
5
5
  "description": "ESLint plugin for Project Zero Next",
6
6
  "main": "dist/index.js",
@@ -22,8 +22,7 @@ const getAllKeysFromObject = (obj: any, prefix = ''): string[] => {
22
22
  }, [] as string[]);
23
23
  };
24
24
 
25
- // eslint-disable-next-line -eslint/no-explicit-any
26
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
25
+ export default ESLintUtils.RuleCreator.withoutDocs({
27
26
  create(context: any) {
28
27
  return {
29
28
  CallExpression(node: any) {
@@ -77,5 +76,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
77
76
  },
78
77
  defaultOptions: []
79
78
  });
80
-
81
- export default rule;
@@ -1,8 +1,7 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
4
+ export default ESLintUtils.RuleCreator.withoutDocs({
6
5
  create: function (context) {
7
6
  return {
8
7
  CallExpression(node) {
@@ -47,5 +46,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
47
46
  },
48
47
  defaultOptions: []
49
48
  });
50
-
51
- export default rule;
@@ -13,8 +13,7 @@ const correctOrder = [
13
13
  'withCompleteMasterpass'
14
14
  ];
15
15
 
16
- // eslint-disable-next-line -eslint/no-explicit-any
17
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
16
+ export default ESLintUtils.RuleCreator.withoutDocs({
18
17
  create(context: any) {
19
18
  return {
20
19
  CallExpression(node: any) {
@@ -66,5 +65,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
66
65
  },
67
66
  defaultOptions: []
68
67
  });
69
-
70
- export default rule;
@@ -1,7 +1,6 @@
1
1
  import { ESLintUtils, TSESTree } from '@typescript-eslint/utils';
2
2
 
3
- // eslint-disable-next-line -eslint/no-explicit-any
4
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
3
+ export default ESLintUtils.RuleCreator.withoutDocs({
5
4
  create(context) {
6
5
  return {
7
6
  CallExpression(node: TSESTree.CallExpression) {
@@ -60,5 +59,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
60
59
  },
61
60
  defaultOptions: []
62
61
  });
63
-
64
- export default rule;
@@ -1,7 +1,6 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
 
3
- // eslint-disable-next-line -eslint/no-explicit-any
4
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
3
+ export default ESLintUtils.RuleCreator.withoutDocs({
5
4
  create(context) {
6
5
  if (!context.getFilename().includes('urls.ts')) {
7
6
  return {};
@@ -43,5 +42,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
43
42
  },
44
43
  defaultOptions: []
45
44
  });
46
-
47
- export default rule;
@@ -1,7 +1,6 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
 
3
- // eslint-disable-next-line -eslint/no-explicit-any
4
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
3
+ export default ESLintUtils.RuleCreator.withoutDocs({
5
4
  create(context) {
6
5
  if (context.getFilename().includes('components/image.tsx')) {
7
6
  return {};
@@ -43,5 +42,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
43
42
  },
44
43
  defaultOptions: []
45
44
  });
46
-
47
- export default rule;
@@ -1,7 +1,6 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
 
3
- // eslint-disable-next-line -eslint/no-explicit-any
4
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
3
+ export default ESLintUtils.RuleCreator.withoutDocs({
5
4
  create(context) {
6
5
  if (!context.getFilename().includes('akinon-next')) {
7
6
  return {};
@@ -42,5 +41,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
42
41
  },
43
42
  defaultOptions: []
44
43
  });
45
-
46
- export default rule;
@@ -1,8 +1,7 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import * as path from 'path';
3
3
 
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
4
+ export default ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  const currentFilePath = path.normalize(context.getFilename());
8
7
  const linkComponentPath = path.normalize(
@@ -49,5 +48,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
49
48
  },
50
49
  defaultOptions: []
51
50
  });
52
-
53
- export default rule;
@@ -1,7 +1,6 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
 
3
- // eslint-disable-next-line -eslint/no-explicit-any
4
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
3
+ export default ESLintUtils.RuleCreator.withoutDocs({
5
4
  create(context) {
6
5
  return {
7
6
  ImportDeclaration(node) {
@@ -49,5 +48,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
49
48
  },
50
49
  defaultOptions: []
51
50
  });
52
-
53
- export default rule;
@@ -1,7 +1,6 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
 
3
- // eslint-disable-next-line -eslint/no-explicit-any
4
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
3
+ export default ESLintUtils.RuleCreator.withoutDocs({
5
4
  create(context) {
6
5
  if (context.getFilename().includes('@akinon/next/hooks/use-router.ts')) {
7
6
  return {};
@@ -43,5 +42,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
43
42
  },
44
43
  defaultOptions: []
45
44
  });
46
-
47
- export default rule;
@@ -1,8 +1,7 @@
1
1
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
2
2
  import { ESLintUtils } from '@typescript-eslint/utils';
3
3
 
4
- // eslint-disable-next-line -eslint/no-explicit-any
5
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
4
+ export default ESLintUtils.RuleCreator.withoutDocs({
6
5
  create(context) {
7
6
  return {
8
7
  VariableDeclarator(node) {
@@ -59,5 +58,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
59
58
  },
60
59
  defaultOptions: []
61
60
  });
62
-
63
- export default rule;
@@ -4,8 +4,7 @@ const URLS = [
4
4
  '/users/logout/'
5
5
  ];
6
6
 
7
- // eslint-disable-next-line -eslint/no-explicit-any
8
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
7
+ export default ESLintUtils.RuleCreator.withoutDocs({
9
8
  create(context) {
10
9
  if (!context.getFilename().includes('urls.ts')) {
11
10
  return {};
@@ -43,5 +42,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
43
42
  },
44
43
  defaultOptions: []
45
44
  });
46
-
47
- export default rule;