@layerzerolabs/eslint-config-next 3.0.14 → 3.0.16

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,17 @@
1
1
  # @layerzerolabs/eslint-config-next
2
2
 
3
+ ## 3.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 87a4bc9: islander mainnet
8
+
9
+ ## 3.0.15
10
+
11
+ ### Patch Changes
12
+
13
+ - 67856bd: endpoints
14
+
3
15
  ## 3.0.14
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/eslint-config-next",
3
- "version": "3.0.14",
3
+ "version": "3.0.16",
4
4
  "description": "LayerZero Eslint Config",
5
5
  "keywords": [
6
6
  "config",
package/recommended.js CHANGED
@@ -83,13 +83,25 @@ const eslintConfig = {
83
83
  'import/order': [
84
84
  'error',
85
85
  {
86
- groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
86
+ groups: [
87
+ 'builtin', // Node "builtin" modules (e.g., fs, path)
88
+ 'external', // "external" modules (e.g., lodash, react)
89
+ 'internal', // "internal" modules (e.g., modules within the project)
90
+ ['parent', 'sibling', 'index'], // Parent, sibling, and index modules
91
+ 'object', // "object" imports (e.g., import { foo } from 'bar')
92
+ 'type', // "type" imports (e.g., import type { Foo } from 'bar')
93
+ ],
87
94
  pathGroups: [
88
95
  {
89
- pattern: '^@layerzerolabs/**',
96
+ pattern: '@layerzerolabs/**',
90
97
  group: 'internal',
91
98
  position: 'before',
92
99
  },
100
+ {
101
+ pattern: '@/**', // alias for the module itself which is defined in tsconfig.json
102
+ group: 'parent',
103
+ position: 'before',
104
+ }
93
105
  ],
94
106
  distinctGroup: true,
95
107
  'newlines-between': 'always',