@coko/lint 3.0.0-alpha.2 → 3.0.0-alpha.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/eslint.mjs +4 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.0.0-alpha.3](https://gitlab.coko.foundation/cokoapps/lint/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2025-10-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **eslint:** fix ecma version ([66f0ae8](https://gitlab.coko.foundation/cokoapps/lint/commit/66f0ae8a6d0d36d4e527f7d820445100df4231eb))
|
|
11
|
+
|
|
5
12
|
## [3.0.0-alpha.2](https://gitlab.coko.foundation/cokoapps/lint/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2025-10-24)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/src/eslint.mjs
CHANGED
|
@@ -159,6 +159,7 @@ const server = [
|
|
|
159
159
|
files: ['**/*.{js,mjs,ts}'],
|
|
160
160
|
languageOptions: {
|
|
161
161
|
globals: { ...globals.node },
|
|
162
|
+
ecmaVersion: 'latest',
|
|
162
163
|
},
|
|
163
164
|
plugins: {
|
|
164
165
|
n: nodePlugin,
|
|
@@ -190,6 +191,9 @@ const server = [
|
|
|
190
191
|
|
|
191
192
|
{
|
|
192
193
|
files: ['**/*.mjs', '**/*.ts'],
|
|
194
|
+
languageOptions: {
|
|
195
|
+
sourceType: 'module',
|
|
196
|
+
},
|
|
193
197
|
rules: {
|
|
194
198
|
'no-restricted-globals': [
|
|
195
199
|
'error',
|
|
@@ -203,26 +207,12 @@ const server = [
|
|
|
203
207
|
message:
|
|
204
208
|
'Do not use __filename in ES modules or TypeScript; use import.meta.url or path.resolve() instead.',
|
|
205
209
|
},
|
|
206
|
-
{
|
|
207
|
-
name: 'isFinite',
|
|
208
|
-
message:
|
|
209
|
-
'Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite',
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: 'isNaN',
|
|
213
|
-
message:
|
|
214
|
-
'Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan',
|
|
215
|
-
},
|
|
216
210
|
],
|
|
217
211
|
},
|
|
218
212
|
},
|
|
219
213
|
|
|
220
214
|
{
|
|
221
215
|
files: ['**/*.mjs'],
|
|
222
|
-
languageOptions: {
|
|
223
|
-
ecmaVersion: 2022,
|
|
224
|
-
sourceType: 'module',
|
|
225
|
-
},
|
|
226
216
|
rules: {
|
|
227
217
|
...nodePlugin.configs['flat/recommended-module'].rules,
|
|
228
218
|
},
|
|
@@ -232,7 +222,6 @@ const server = [
|
|
|
232
222
|
files: ['**/*.ts'],
|
|
233
223
|
languageOptions: {
|
|
234
224
|
parser: tseslint.parser,
|
|
235
|
-
sourceType: 'module',
|
|
236
225
|
},
|
|
237
226
|
plugins: {
|
|
238
227
|
'@typescript-eslint': tseslint.plugin,
|