@putout/eslint-config 7.2.0 → 7.4.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 (2) hide show
  1. package/eslintrc.js +4 -4
  2. package/package.json +6 -2
package/eslintrc.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ const js = require('@eslint/js');
4
+
3
5
  module.exports = {
4
6
  env: {
5
7
  es6: true,
@@ -14,6 +16,7 @@ module.exports = {
14
16
  },
15
17
  },
16
18
  rules: {
19
+ ...js.configs.recommended.rules,
17
20
  'array-bracket-spacing': 'error',
18
21
  'arrow-parens': ['error', 'always'],
19
22
  'arrow-spacing': 'error',
@@ -122,11 +125,8 @@ module.exports = {
122
125
  next: 'function',
123
126
  }],
124
127
  'require-atomic-updates': 'off',
125
- 'yoda': 'error',
128
+ 'yoda': 'off',
126
129
  },
127
- extends: [
128
- 'eslint:recommended',
129
- ],
130
130
  };
131
131
 
132
132
  function getPaddingExport() {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@putout/eslint-config",
3
- "version": "7.2.0",
3
+ "version": "7.4.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout config for ESLint",
7
7
  "homepage": "https://github.com/coderaiser/putout/tree/master/packages/eslint-config#readme",
8
8
  "main": "./eslintrc.js",
9
+ "commitType": "colon",
9
10
  "exports": "./eslintrc.js",
10
11
  "release": false,
11
12
  "tag": false,
@@ -23,7 +24,9 @@
23
24
  "fix:lint": "madrun fix:lint",
24
25
  "prepublishOnly": "madrun prepublishOnly"
25
26
  },
26
- "dependencies": {},
27
+ "dependencies": {
28
+ "@eslint/js": "^8.35.0"
29
+ },
27
30
  "peerDependencies": {
28
31
  "eslint": ">=8.0.0"
29
32
  },
@@ -36,6 +39,7 @@
36
39
  "devDependencies": {
37
40
  "@putout/test": "^5.0.0",
38
41
  "c8": "^7.5.0",
42
+ "eslint-plugin-n": "^15.2.4",
39
43
  "madrun": "^9.0.0",
40
44
  "putout": "*"
41
45
  },