putout 26.1.3 → 26.2.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/ChangeLog CHANGED
@@ -1,3 +1,12 @@
1
+ 2022.05.15, v26.2.0
2
+
3
+ feature:
4
+ - (@putout/processor-typescript) convert to ESM
5
+ - (package) @putout/plugin-eslint v3.0.0
6
+ - (@putout/eslint-plugin-putout) drop support of 🐊 < 26
7
+ - (@putout/plugin-eslint) add convert-require-to-import
8
+
9
+
1
10
  2022.05.14, v26.1.3
2
11
 
3
12
  feature:
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  const {assign} = Object;
4
-
5
4
  const getRuleByType = (a) => a === 'module' ? 'convert-commonjs-to-esm' : 'convert-esm-to-commonjs';
6
5
 
7
6
  module.exports = ({type}, options) => {
@@ -15,6 +14,11 @@ module.exports = ({type}, options) => {
15
14
  ...options.match?.[js],
16
15
  [rule]: 'on',
17
16
  },
17
+ '.eslintrc.json': {
18
+ ...options.match?.['.eslintrc.json'],
19
+ 'eslint': 'on',
20
+ 'eslint/convert-require-to-import': type === 'module' ? 'on' : 'off',
21
+ },
18
22
  },
19
23
  });
20
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "26.1.3",
3
+ "version": "26.2.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in eslint and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
@@ -104,7 +104,7 @@
104
104
  "@putout/plugin-convert-typeof-to-is-type": "^2.0.0",
105
105
  "@putout/plugin-declare-before-reference": "^1.0.0",
106
106
  "@putout/plugin-declare-undefined-variables": "^7.0.0",
107
- "@putout/plugin-eslint": "^2.0.0",
107
+ "@putout/plugin-eslint": "^3.0.0",
108
108
  "@putout/plugin-extract-object-properties": "^8.0.0",
109
109
  "@putout/plugin-extract-sequence-expressions": "^3.0.0",
110
110
  "@putout/plugin-github": "^3.0.0",
package/putout.json CHANGED
@@ -63,7 +63,8 @@
63
63
  ".browserlistrc": "on"
64
64
  },
65
65
  ".eslintrc.json": {
66
- "eslint": "on"
66
+ "eslint": "on",
67
+ "eslint/convert-require-to-import": "off"
67
68
  },
68
69
  "package.json": {
69
70
  "package-json": "on"