@akinon/eslint-plugin-projectzero 2.0.6-rc.1 → 2.0.6-rc.2

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,5 +1,11 @@
1
1
  # @akinon/eslint-plugin-projectzero
2
2
 
3
+ ## 2.0.6-rc.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 89ed4e03: ZERO-4394: Add Next.js 16 ESLint migration v9 + flat config
8
+
3
9
  ## 2.0.6-rc.1
4
10
 
5
11
  ## 2.0.6-rc.0
@@ -74,8 +74,7 @@ exports.default = utils_1.ESLintUtils.RuleCreator.withoutDocs({
74
74
  meta: {
75
75
  type: 'problem',
76
76
  docs: {
77
- description: 'Enforces the correct order of pre-order middlewares',
78
- recommended: 'error'
77
+ description: 'Enforces the correct order of pre-order middlewares'
79
78
  },
80
79
  schema: [],
81
80
  messages: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/eslint-plugin-projectzero",
3
- "version": "2.0.6-rc.1",
3
+ "version": "2.0.6-rc.2",
4
4
  "private": false,
5
5
  "description": "ESLint plugin for Project Zero Next",
6
6
  "main": "dist/index.js",
@@ -12,8 +12,11 @@
12
12
  "keywords": [],
13
13
  "author": "",
14
14
  "license": "ISC",
15
+ "peerDependencies": {
16
+ "@typescript-eslint/utils": "^8.0.0",
17
+ "eslint": "^9.0.0"
18
+ },
15
19
  "devDependencies": {
16
- "@typescript-eslint/eslint-plugin": "5.44.0",
17
- "@typescript-eslint/parser": "5.44.0"
20
+ "@typescript-eslint/utils": "8.58.2"
18
21
  }
19
22
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AST_NODE_TYPES,
3
3
  ESLintUtils,
4
+ TSESLint,
4
5
  TSESTree
5
6
  } from '@typescript-eslint/utils';
6
- import { RuleContext } from '@typescript-eslint/utils/dist/ts-eslint';
7
7
 
8
8
  const CORRECT_PRE_ORDER_MIDDLEWARE_ORDER = [
9
9
  'shippingStepMiddleware',
@@ -23,9 +23,8 @@ const CORRECT_PRE_ORDER_MIDDLEWARE_ORDER = [
23
23
  type MessageIds = 'incorrectPreOrderMiddlewarePosition' | 'unknownMiddleware';
24
24
  type Options = [];
25
25
 
26
- // eslint-disable-next-line -eslint/no-explicit-any
27
- const rule: any = ESLintUtils.RuleCreator.withoutDocs({
28
- create(context: RuleContext<MessageIds, Options>) {
26
+ export default ESLintUtils.RuleCreator.withoutDocs({
27
+ create(context: TSESLint.RuleContext<MessageIds, Options>) {
29
28
  function checkPreOrderMiddlewareOrder(
30
29
  node: TSESTree.VariableDeclarator
31
30
  ): void {
@@ -102,8 +101,7 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
102
101
  meta: {
103
102
  type: 'problem',
104
103
  docs: {
105
- description: 'Enforces the correct order of pre-order middlewares',
106
- recommended: 'error'
104
+ description: 'Enforces the correct order of pre-order middlewares'
107
105
  },
108
106
  schema: [],
109
107
  messages: {
@@ -115,5 +113,3 @@ const rule: any = ESLintUtils.RuleCreator.withoutDocs({
115
113
  },
116
114
  defaultOptions: []
117
115
  });
118
-
119
- export default rule;