@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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/base.js +2 -20
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @modern-js-app/eslint-config
2
2
 
3
+ ## 1.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - d6522e85: feat: remove max-params and max-statements rule
8
+ - Updated dependencies [17d0cc46]
9
+ - @modern-js/babel-preset-app@1.2.6
10
+
3
11
  ## 1.2.6
4
12
 
5
13
  ### Patch Changes
package/base.js CHANGED
@@ -1,5 +1,4 @@
1
- /* eslint-disable max-lines, no-magic-numbers */
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, no-magic-numbers */
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.6",
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.5"
35
+ "@modern-js/babel-preset-app": "^1.2.6"
36
36
  },
37
37
  "devDependencies": {
38
38
  "eslint": "^7.32.0",