@ivanmaxlogiudice/eslint-config 0.1.8 → 0.1.10
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/index.js +16 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -264,6 +264,19 @@ module.exports = {
|
|
|
264
264
|
},
|
|
265
265
|
],
|
|
266
266
|
'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
|
|
267
|
+
'no-restricted-globals': [
|
|
268
|
+
'error',
|
|
269
|
+
{ name: 'global', message: 'Use `globalThis` instead.' },
|
|
270
|
+
{ name: 'self', message: 'Use `globalThis` instead.' },
|
|
271
|
+
],
|
|
272
|
+
'no-restricted-properties': [
|
|
273
|
+
'error',
|
|
274
|
+
{ property: '__proto__', message: 'Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.' },
|
|
275
|
+
{ property: '__defineGetter__', message: 'Use `Object.defineProperty` instead.' },
|
|
276
|
+
{ property: '__defineSetter__', message: 'Use `Object.defineProperty` instead.' },
|
|
277
|
+
{ property: '__lookupGetter__', message: 'Use `Object.getOwnPropertyDescriptor` instead.' },
|
|
278
|
+
{ property: '__lookupSetter__', message: 'Use `Object.getOwnPropertyDescriptor` instead.' },
|
|
279
|
+
],
|
|
267
280
|
|
|
268
281
|
// ES6
|
|
269
282
|
'no-var': 'error',
|
|
@@ -312,7 +325,7 @@ module.exports = {
|
|
|
312
325
|
'array-callback-return': 'error',
|
|
313
326
|
'block-scoped-var': 'error',
|
|
314
327
|
'consistent-return': 'off',
|
|
315
|
-
'complexity':
|
|
328
|
+
'complexity': 'off',
|
|
316
329
|
'eqeqeq': ['error', 'smart'],
|
|
317
330
|
'no-alert': 'warn',
|
|
318
331
|
'no-case-declarations': 'error',
|
|
@@ -359,6 +372,8 @@ module.exports = {
|
|
|
359
372
|
'unicorn/prefer-logical-operator-over-ternary': 'error',
|
|
360
373
|
// Prefer using the node: protocol when importing Node.js builtin modules
|
|
361
374
|
'unicorn/prefer-node-protocol': 'error',
|
|
375
|
+
// Prefer using number properties like `Number.isNaN` rather than `isNaN`
|
|
376
|
+
'unicorn/prefer-number-properties': 'error',
|
|
362
377
|
|
|
363
378
|
'eslint-comments/disable-enable-pair': 'off',
|
|
364
379
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivanmaxlogiudice/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Personal ESLint configuration",
|
|
5
5
|
"author": "Iván Máximiliano, Lo Giudice <ivanmaxlogiudice@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"eslint": ">=8.37.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"eslint-config-standard": "^17.
|
|
33
|
-
"eslint-plugin-antfu": "^0.39.
|
|
32
|
+
"eslint-config-standard": "^17.1.0",
|
|
33
|
+
"eslint-plugin-antfu": "^0.39.5",
|
|
34
34
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
35
35
|
"eslint-plugin-html": "^7.1.0",
|
|
36
36
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"yaml-eslint-parser": "^1.2.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"eslint": "^8.
|
|
50
|
-
"typescript": "^5.
|
|
49
|
+
"eslint": "^8.42.0",
|
|
50
|
+
"typescript": "^5.1.3"
|
|
51
51
|
}
|
|
52
52
|
}
|