@mikey-pro/eslint-config 4.3.0 → 4.4.0
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 +4 -5
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -296,7 +296,7 @@ module.exports = {
|
|
|
296
296
|
node: true,
|
|
297
297
|
es6: true,
|
|
298
298
|
commonjs: true,
|
|
299
|
-
|
|
299
|
+
es2021: true,
|
|
300
300
|
},
|
|
301
301
|
rules: {
|
|
302
302
|
'no-restricted-syntax': [
|
|
@@ -336,9 +336,9 @@ module.exports = {
|
|
|
336
336
|
'newlines-between': 'always',
|
|
337
337
|
},
|
|
338
338
|
],
|
|
339
|
-
'import/extensions': [
|
|
339
|
+
'import/extensions': [1, 'never', { ignorePackages: true }],
|
|
340
340
|
'prefer-destructuring': [
|
|
341
|
-
|
|
341
|
+
1,
|
|
342
342
|
{
|
|
343
343
|
object: true,
|
|
344
344
|
array: false,
|
|
@@ -446,6 +446,7 @@ module.exports = {
|
|
|
446
446
|
'@babel',
|
|
447
447
|
'unicorn',
|
|
448
448
|
'sonarjs',
|
|
449
|
+
'only-warn',
|
|
449
450
|
],
|
|
450
451
|
ignorePatterns: [
|
|
451
452
|
'!.*',
|
|
@@ -459,8 +460,6 @@ module.exports = {
|
|
|
459
460
|
'tsconfig.json',
|
|
460
461
|
],
|
|
461
462
|
root: true,
|
|
462
|
-
failOnError: false,
|
|
463
|
-
emitWarning: true,
|
|
464
463
|
settings: {
|
|
465
464
|
'json/sort-package-json': 'pro',
|
|
466
465
|
polyfills: ['Promise'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"eslint-plugin-jsonc": "^2.0.0",
|
|
25
25
|
"eslint-plugin-md": "^1.0",
|
|
26
26
|
"eslint-plugin-node": "^11.1.0",
|
|
27
|
+
"eslint-plugin-only-warn": "^1.0.3",
|
|
27
28
|
"eslint-plugin-prettier": "^4.0",
|
|
28
29
|
"eslint-plugin-promise": "^6.0.0",
|
|
29
30
|
"eslint-plugin-sonarjs": "^0.11.0",
|