@deot/dev-eslint 2.8.1 → 2.8.3

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/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
4
 
5
5
  const pluginTs = require('@typescript-eslint/eslint-plugin');
6
6
  const parserTs = require('@typescript-eslint/parser');
@@ -345,4 +345,7 @@ const configure = async (options, ...userConfigs) => {
345
345
  return configs.concat(userConfigs);
346
346
  };
347
347
 
348
+ const index = configure();
349
+
348
350
  exports.configure = configure;
351
+ exports.default = index;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ESLint } from 'eslint';
2
- import type { Linter } from 'eslint';
2
+ import { Linter } from 'eslint';
3
3
 
4
4
  export declare interface ConfigOptions {
5
5
  enable?: boolean;
@@ -8,6 +8,9 @@ export declare interface ConfigOptions {
8
8
 
9
9
  export declare const configure: (options?: Options, ...userConfigs: FlatConfig[]) => Promise<FlatConfig[]>;
10
10
 
11
+ declare const _default: Promise<Linter[]>;
12
+ export default _default;
13
+
11
14
  export declare type FlatConfig = Linter.FlatConfig;
12
15
 
13
16
  export declare type Modules = 'stylistic' | 'javascript' | 'typescript' | 'markdown' | 'jsdoc' | 'vue' | 'react' | 'import';
package/dist/index.js CHANGED
@@ -341,4 +341,6 @@ const configure = async (options, ...userConfigs) => {
341
341
  return configs.concat(userConfigs);
342
342
  };
343
343
 
344
- export { configure };
344
+ const index = configure();
345
+
346
+ export { configure, index as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/dev-eslint",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",