@modern-js-app/eslint-config 1.2.6 → 1.2.7
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 +8 -0
- package/base.js +2 -20
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/base.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/* eslint-disable max-lines
|
|
2
|
-
|
|
1
|
+
/* eslint-disable max-lines */
|
|
3
2
|
const { jsExtensions } = require('./utils');
|
|
4
3
|
|
|
5
4
|
module.exports = {
|
|
@@ -619,28 +618,11 @@ module.exports = {
|
|
|
619
618
|
skipComments: true,
|
|
620
619
|
},
|
|
621
620
|
],
|
|
622
|
-
// https://eslint.org/docs/rules/max-lines-per-function
|
|
623
|
-
'max-lines-per-function': 'off',
|
|
624
621
|
|
|
625
622
|
/*
|
|
626
|
-
* 'max-lines-per-function': [
|
|
627
|
-
* 'error',
|
|
628
|
-
* {
|
|
629
|
-
* max: 50,
|
|
630
|
-
* skipBlankLines: true,
|
|
631
|
-
* skipComments: true,
|
|
632
|
-
* IIFEs: true,
|
|
633
|
-
* },
|
|
634
|
-
* ],
|
|
635
623
|
* https://eslint.org/docs/rules/max-nested-callbacks
|
|
636
624
|
*/
|
|
637
625
|
'max-nested-callbacks': ['warn', 4],
|
|
638
|
-
// https://eslint.org/docs/rules/max-params
|
|
639
|
-
'max-params': ['warn', 4],
|
|
640
|
-
// https://eslint.org/docs/rules/max-statements
|
|
641
|
-
'max-statements': ['warn', 20],
|
|
642
|
-
// https://eslint.org/docs/rules/max-statements-per-line
|
|
643
|
-
'max-statements-per-line': ['error', { max: 1 }],
|
|
644
626
|
// https://eslint.org/docs/rules/multiline-comment-style
|
|
645
627
|
// @TODO bug:
|
|
646
628
|
// // class Foo {
|
|
@@ -1560,4 +1542,4 @@ module.exports = {
|
|
|
1560
1542
|
},
|
|
1561
1543
|
],
|
|
1562
1544
|
};
|
|
1563
|
-
/* eslint-enable max-lines
|
|
1545
|
+
/* eslint-enable max-lines */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js-app/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "The meta-framework suite designed from scratch for frontend-focused modern web development.",
|
|
5
5
|
"homepage": "https://modernjs.dev",
|
|
6
6
|
"bugs": "https://github.com/modern-js-dev/modern.js/issues",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prettier": "^2.5.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@modern-js/babel-preset-app": "^1.2.
|
|
35
|
+
"@modern-js/babel-preset-app": "^1.2.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"eslint": "^7.32.0",
|