@alexlit/config-eslint 84.3.0 → 84.3.2

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/index.js CHANGED
@@ -1,17 +1,12 @@
1
1
  const { FlatCompat } = require('@eslint/eslintrc');
2
2
 
3
- const { extendSpellChecker } = require('./utils/extend-spell-checker');
4
3
  const { createConfig } = require('./utils/create-config');
4
+ const { extendSpellChecker } = require('./utils/extend-spell-checker');
5
5
 
6
6
  const compat = new FlatCompat({
7
7
  baseDirectory: __dirname,
8
8
  });
9
9
 
10
- const createFlatConfig = () => [
11
- ...compat.extends('./legacy.js'),
12
- {
13
- ignores: ['.gitignore', '.eslintignore', '.prettierignore'],
14
- },
15
- ];
10
+ const createFlatConfig = () => [...compat.extends('./legacy.js')];
16
11
 
17
- module.exports = { createConfig, extendSpellChecker, createFlatConfig };
12
+ module.exports = { createConfig, createFlatConfig, extendSpellChecker };
package/legacy.js ADDED
@@ -0,0 +1,3 @@
1
+ const { createConfig } = require('./utils/create-config');
2
+
3
+ module.exports = createConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "84.3.0",
3
+ "version": "84.3.2",
4
4
  "private": false,
5
5
  "description": "Eslint config",
6
6
  "keywords": [
@@ -28,6 +28,7 @@
28
28
  "constants",
29
29
  "dictionaries",
30
30
  "index.js",
31
+ "legacy.js",
31
32
  "plugins",
32
33
  "utils"
33
34
  ],
@@ -45,9 +45,6 @@ const DEFAULT_PLUGINS = {
45
45
  /** @see [eslint-plugin-more](https://github.com/WebbyLab/eslint-plugin-more) */
46
46
  more: true,
47
47
 
48
- /** @see [eslint-plugin-no-await-in-promise](https://github.com/hugo-vrijswijk/eslint-plugin-no-await-in-promise/) */
49
- 'no-await-in-promise': true,
50
-
51
48
  /** @see [eslint-plugin-no-constructor-bind](https://github.com/markalfred/eslint-plugin-no-constructor-bind) */
52
49
  'no-constructor-bind': true,
53
50
 
@@ -128,6 +125,9 @@ const DEFAULT_PLUGINS = {
128
125
  };
129
126
 
130
127
  const OPTIONAL_PLUGINS = {
128
+ /** @see [eslint-plugin-no-await-in-promise](https://github.com/hugo-vrijswijk/eslint-plugin-no-await-in-promise/) */
129
+ 'no-await-in-promise': false, // won't work
130
+
131
131
  /** @see [eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node) */
132
132
  node: false,
133
133
 
@@ -190,7 +190,6 @@ const createConfig = (plugins = {}, options = {}) =>
190
190
  ],
191
191
 
192
192
  ignorePatterns: [
193
- '.*',
194
193
  'build',
195
194
  'dist',
196
195
  'docs',