@aarongoldenthal/eslint-config-standard 22.0.0 → 22.1.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 +7 -3
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
const complexityThreshold = 20;
|
|
5
5
|
const maxFunctionLinesThreshold = 30;
|
|
6
6
|
const maxLinesThreshold = 300;
|
|
7
|
-
const maxParametersThreshold =
|
|
7
|
+
const maxParametersThreshold = 4;
|
|
8
8
|
const maxStatementsPerLineThreshold = 1;
|
|
9
9
|
const maxStatementsThreshold = 50;
|
|
10
10
|
const nestedThreshold = 5;
|
|
@@ -227,7 +227,8 @@ module.exports = {
|
|
|
227
227
|
'no-ternary': 'off',
|
|
228
228
|
'no-throw-literal': 'error',
|
|
229
229
|
'no-undef-init': 'error',
|
|
230
|
-
|
|
230
|
+
// Disabled, too many valid positives
|
|
231
|
+
'no-undefined': 'off',
|
|
231
232
|
'no-underscore-dangle': 'error',
|
|
232
233
|
'no-unneeded-ternary': 'error',
|
|
233
234
|
'no-unused-expressions': [
|
|
@@ -245,7 +246,10 @@ module.exports = {
|
|
|
245
246
|
'no-useless-return': 'error',
|
|
246
247
|
'no-var': 'error',
|
|
247
248
|
'no-void': 'error',
|
|
248
|
-
'no-warning-comments':
|
|
249
|
+
'no-warning-comments': [
|
|
250
|
+
'error',
|
|
251
|
+
{ terms: ['TODO', 'FIXME', 'HACK', 'XXX', 'BUG'] }
|
|
252
|
+
],
|
|
249
253
|
'no-with': 'error', // Recommended
|
|
250
254
|
'object-shorthand': 'error',
|
|
251
255
|
'one-var': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarongoldenthal/eslint-config-standard",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.1.0",
|
|
4
4
|
"description": "Standard ESLint configuration settings",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"@eslint-community/eslint-plugin-eslint-comments": "3.2.1",
|
|
39
39
|
"eslint-config-prettier": "8.8.0",
|
|
40
40
|
"eslint-plugin-jest": "27.2.1",
|
|
41
|
-
"eslint-plugin-jsdoc": "44.2.
|
|
42
|
-
"eslint-plugin-n": "
|
|
41
|
+
"eslint-plugin-jsdoc": "44.2.5",
|
|
42
|
+
"eslint-plugin-n": "16.0.0",
|
|
43
43
|
"eslint-plugin-playwright": "0.12.0",
|
|
44
44
|
"eslint-plugin-promise": "6.1.1",
|
|
45
45
|
"eslint-plugin-sonarjs": "0.19.0",
|
|
46
46
|
"eslint-plugin-unicorn": "47.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"eslint": "^8.
|
|
49
|
+
"eslint": "^8.41.0",
|
|
50
50
|
"jest": "^29.5.0",
|
|
51
51
|
"jest-junit": "^16.0.0",
|
|
52
52
|
"markdownlint-cli2": "^0.7.1",
|