@icebreakers/eslint-config 0.0.0 → 0.0.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.
- package/dist/index.cjs +8 -6
- package/dist/index.d.cts +12 -2
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.mjs +12 -2
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
const eslintConfig = require('@sxzz/eslint-config');
|
|
4
4
|
const eslintConfig$1 = require('@antfu/eslint-config');
|
|
5
5
|
|
|
6
|
-
function
|
|
6
|
+
function icebreaker(config, rules) {
|
|
7
|
+
return eslintConfig.sxzz(rules, config);
|
|
8
|
+
}
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
function icebreakerWithoutPrettier(options, ...userConfigs) {
|
|
11
|
+
return eslintConfig$1.antfu(options, ...userConfigs);
|
|
12
|
+
}
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.icebreaker = eslintConfig.sxzz;
|
|
13
|
-
exports.icebreakerWithoutPrettier = eslintConfig__default;
|
|
14
|
+
exports.icebreaker = icebreaker;
|
|
15
|
+
exports.icebreakerWithoutPrettier = icebreakerWithoutPrettier;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { sxzz } from '@sxzz/eslint-config';
|
|
2
|
+
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
3
|
+
import { Linter } from 'eslint';
|
|
4
|
+
import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames } from '@antfu/eslint-config';
|
|
5
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
6
|
+
|
|
7
|
+
type UserDefinedConfig = Parameters<typeof sxzz>[1];
|
|
8
|
+
declare function icebreaker(config?: UserDefinedConfig, rules?: FlatESLintConfigItem | FlatESLintConfigItem[]): FlatESLintConfigItem[];
|
|
9
|
+
|
|
10
|
+
declare function icebreakerWithoutPrettier(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
11
|
+
|
|
12
|
+
export { icebreaker, icebreakerWithoutPrettier };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { sxzz } from '@sxzz/eslint-config';
|
|
2
|
+
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
3
|
+
import { Linter } from 'eslint';
|
|
4
|
+
import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames } from '@antfu/eslint-config';
|
|
5
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
6
|
+
|
|
7
|
+
type UserDefinedConfig = Parameters<typeof sxzz>[1];
|
|
8
|
+
declare function icebreaker(config?: UserDefinedConfig, rules?: FlatESLintConfigItem | FlatESLintConfigItem[]): FlatESLintConfigItem[];
|
|
9
|
+
|
|
10
|
+
declare function icebreakerWithoutPrettier(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
11
|
+
|
|
12
|
+
export { icebreaker, icebreakerWithoutPrettier };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { sxzz } from '@sxzz/eslint-config';
|
|
2
|
+
import { FlatESLintConfigItem } from 'eslint-define-config';
|
|
3
|
+
import { Linter } from 'eslint';
|
|
4
|
+
import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames } from '@antfu/eslint-config';
|
|
5
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
6
|
+
|
|
7
|
+
type UserDefinedConfig = Parameters<typeof sxzz>[1];
|
|
8
|
+
declare function icebreaker(config?: UserDefinedConfig, rules?: FlatESLintConfigItem | FlatESLintConfigItem[]): FlatESLintConfigItem[];
|
|
9
|
+
|
|
10
|
+
declare function icebreakerWithoutPrettier(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
11
|
+
|
|
12
|
+
export { icebreaker, icebreakerWithoutPrettier };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { sxzz } from '@sxzz/eslint-config';
|
|
2
|
+
import { antfu } from '@antfu/eslint-config';
|
|
3
|
+
|
|
4
|
+
function icebreaker(config, rules) {
|
|
5
|
+
return sxzz(rules, config);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function icebreakerWithoutPrettier(options, ...userConfigs) {
|
|
9
|
+
return antfu(options, ...userConfigs);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { icebreaker, icebreakerWithoutPrettier };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "icebreakers's eslint config",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
|
-
"type": "
|
|
8
|
+
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@antfu/eslint-config": "2.17.0",
|
|
24
24
|
"@sxzz/eslint-config": "3.11.0"
|
|
25
25
|
},
|
|
26
|
+
"devDependencies": {},
|
|
26
27
|
"scripts": {
|
|
27
28
|
"dev": "unbuild --sourcemap",
|
|
28
29
|
"build": "unbuild",
|