@putout/eslint-config 6.10.0 → 6.13.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.
Files changed (3) hide show
  1. package/README.md +7 -9
  2. package/eslintrc.js +10 -1
  3. package/package.json +5 -4
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [NPMIMGURL]: https://img.shields.io/npm/v/@putout/eslint-config.svg?style=flat&longCache=true
4
4
  [NPMURL]: https://npmjs.org/package/@putout/eslint-config "npm"
5
5
 
6
- 🐊[`Putout`](https://github.com/coderaiser/putout) config for `eslint`. If `putout` brokes formatting `eslint` will fix it 😉.
6
+ 🐊[**Putout**](https://github.com/coderaiser/putout) config for **ESLint**. If 🐊**Putout** brakes formatting **ESLint** will fix it back 😉.
7
7
 
8
8
  ## Install
9
9
 
@@ -34,22 +34,20 @@ Add `scripts` section to `package.json`:
34
34
  }
35
35
  ```
36
36
 
37
- And create file [madrun file](https://github.com/coderaiser/madrun) `.madrun.js`:
37
+ And create [`.madrun.mjs`](https://github.com/coderaiser/madrun):
38
38
 
39
39
  ```js
40
- const {series} = require('madrun');
40
+ import {series} from 'madrun';
41
41
 
42
- module.exports = {
43
- 'eslint': () => `eslint lib test`,
44
- 'putout': () => `putout lib test`,
45
- 'lint': () => series(['putout', 'eslint']),
46
- 'fix:lint': () => series(['putout', 'eslint'], '--fix'),
42
+ export default {
43
+ 'lint': () => 'putout lib test',
44
+ 'fix:lint': () => run('lint', '--fix'),
47
45
  };
48
46
  ```
49
47
 
50
48
  ```sh
51
49
  $ npm run lint
52
- $ npm run lint:fix
50
+ $ npm run fix:lint
53
51
 
54
52
  ```
55
53
 
package/eslintrc.js CHANGED
@@ -33,6 +33,7 @@ module.exports = {
33
33
  }],
34
34
  'function-paren-newline': ['error', 'multiline-arguments'],
35
35
  'key-spacing': 'error',
36
+ 'newline-per-chained-call': 'error',
36
37
  'space-infix-ops': ['error', {
37
38
  int32Hint: false,
38
39
  }],
@@ -91,7 +92,7 @@ module.exports = {
91
92
  'no-useless-return': 'error',
92
93
  'nonblock-statement-body-position': ['error', 'below'],
93
94
  'lines-around-directive': 'error',
94
- 'lines-between-class-members': 'error',
95
+ 'lines-between-class-members': 'off',
95
96
  'linebreak-style': ['error', 'unix'],
96
97
  'padded-blocks': ['error', 'never'],
97
98
  'padding-line-between-statements': ['error',
@@ -131,6 +132,14 @@ module.exports = {
131
132
  blankLine: 'always',
132
133
  prev: '*',
133
134
  next: 'while',
135
+ }, {
136
+ blankLine: 'always',
137
+ prev: '*',
138
+ next: 'function',
139
+ }, {
140
+ blankLine: 'any',
141
+ prev: 'cjs-export',
142
+ next: 'function',
134
143
  }],
135
144
  'require-atomic-updates': 'off',
136
145
  'yoda': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/eslint-config",
3
- "version": "6.10.0",
3
+ "version": "6.13.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "putout config for eslint",
@@ -21,7 +21,8 @@
21
21
  "fresh:lint": "madrun fresh:lint",
22
22
  "lint:fresh": "madrun lint:fresh",
23
23
  "fix:lint": "madrun fix:lint",
24
- "prepublishOnly": "madrun prepublishOnly"
24
+ "prepublishOnly": "madrun prepublishOnly",
25
+ "wisdom": "madrun wisdom"
25
26
  },
26
27
  "dependencies": {},
27
28
  "peerDependencies": {
@@ -34,9 +35,9 @@
34
35
  "eslint-config"
35
36
  ],
36
37
  "devDependencies": {
37
- "@putout/test": "^4.3.0",
38
+ "@putout/test": "^5.0.0",
38
39
  "c8": "^7.5.0",
39
- "madrun": "^8.0.1",
40
+ "madrun": "^9.0.0",
40
41
  "putout": "*"
41
42
  },
42
43
  "license": "MIT",