eslint-plugin-putout 22.4.1 → 22.5.1

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.
@@ -8,7 +8,8 @@ const {
8
8
  isProgram,
9
9
  } = types;
10
10
 
11
- const regExp = /^\n( +)?\n( +)?$/;
11
+ //const regExp = /^\n( +)?\n( +)?$/;
12
+ const regExp = /^\n(\s+)?\n(\s+)?((\n(\s+)+)?)$/;
12
13
 
13
14
  module.exports.report = () => 'Add newline before expression';
14
15
 
package/lib/ts.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const {rules} = require('@putout/eslint-config');
4
- const jsx = require('./jsx');
4
+ const {jsx} = require('./jsx');
5
5
 
6
6
  const reEnable = (rule) => ({
7
7
  [`@stylistic/ts/${rule}`]: 'error',
@@ -68,7 +68,11 @@ const ts = {
68
68
 
69
69
  module.exports = [ts, {
70
70
  ...ts,
71
- ...jsx.jsx,
71
+ ...jsx,
72
+ plugins: [
73
+ ...ts.plugins,
74
+ ...jsx.plugins,
75
+ ],
72
76
  files: '*.tsx',
73
77
  parserOptions: {
74
78
  warnOnUnsupportedTypeScriptVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-putout",
3
- "version": "22.4.1",
3
+ "version": "22.5.1",
4
4
  "type": "commonjs",
5
5
  "description": "ESLint plugin for 🐊Putout",
6
6
  "release": false,
@@ -49,7 +49,7 @@
49
49
  "@typescript-eslint/eslint-plugin": "^7.0.1",
50
50
  "@typescript-eslint/parser": "^7.0.1",
51
51
  "align-spaces": "^1.0.0",
52
- "eslint-plugin-n": "^17.0.0-0",
52
+ "eslint-plugin-n": "^17.0.0",
53
53
  "eslint-plugin-react": "^7.32.2",
54
54
  "parse-import-specifiers": "^1.0.1",
55
55
  "synckit": "^0.9.0",
@@ -62,7 +62,7 @@
62
62
  "@putout/plugin-eslint-plugin": "*",
63
63
  "@putout/test": "^9.0.0",
64
64
  "c8": "^9.0.0",
65
- "eslint": "^9.0.0-alpha.0",
65
+ "eslint": "^9.0.0",
66
66
  "eslint-plugin-eslint-plugin": "^5.0.6",
67
67
  "madrun": "^10.0.0",
68
68
  "mocha": "^10.0.0",