@icebreakers/eslint-config 0.0.0 → 0.0.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/dist/index.cjs +13 -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 +17 -2
- package/package.json +5 -3
package/dist/index.cjs
CHANGED
|
@@ -3,11 +3,18 @@
|
|
|
3
3
|
const eslintConfig = require('@sxzz/eslint-config');
|
|
4
4
|
const eslintConfig$1 = require('@antfu/eslint-config');
|
|
5
5
|
|
|
6
|
-
function
|
|
6
|
+
function icebreakerWithPrettier(config, rules) {
|
|
7
|
+
return eslintConfig.sxzz(rules, config);
|
|
8
|
+
}
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
function icebreaker(options, ...userConfigs) {
|
|
11
|
+
return eslintConfig$1.antfu(options, {
|
|
12
|
+
rules: {
|
|
13
|
+
"curly": ["error", "all"],
|
|
14
|
+
"no-console": ["warn"]
|
|
15
|
+
}
|
|
16
|
+
}, ...userConfigs);
|
|
17
|
+
}
|
|
9
18
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.icebreaker = eslintConfig.sxzz;
|
|
13
|
-
exports.icebreakerWithoutPrettier = eslintConfig__default;
|
|
19
|
+
exports.icebreaker = icebreaker;
|
|
20
|
+
exports.icebreakerWithPrettier = icebreakerWithPrettier;
|
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 icebreakerWithPrettier(config?: UserDefinedConfig, rules?: FlatESLintConfigItem | FlatESLintConfigItem[]): FlatESLintConfigItem[];
|
|
9
|
+
|
|
10
|
+
declare function icebreaker(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
11
|
+
|
|
12
|
+
export { icebreaker, icebreakerWithPrettier };
|
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 icebreakerWithPrettier(config?: UserDefinedConfig, rules?: FlatESLintConfigItem | FlatESLintConfigItem[]): FlatESLintConfigItem[];
|
|
9
|
+
|
|
10
|
+
declare function icebreaker(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
11
|
+
|
|
12
|
+
export { icebreaker, icebreakerWithPrettier };
|
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 icebreakerWithPrettier(config?: UserDefinedConfig, rules?: FlatESLintConfigItem | FlatESLintConfigItem[]): FlatESLintConfigItem[];
|
|
9
|
+
|
|
10
|
+
declare function icebreaker(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
11
|
+
|
|
12
|
+
export { icebreaker, icebreakerWithPrettier };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { sxzz } from '@sxzz/eslint-config';
|
|
2
|
+
import { antfu } from '@antfu/eslint-config';
|
|
3
|
+
|
|
4
|
+
function icebreakerWithPrettier(config, rules) {
|
|
5
|
+
return sxzz(rules, config);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function icebreaker(options, ...userConfigs) {
|
|
9
|
+
return antfu(options, {
|
|
10
|
+
rules: {
|
|
11
|
+
"curly": ["error", "all"],
|
|
12
|
+
"no-console": ["warn"]
|
|
13
|
+
}
|
|
14
|
+
}, ...userConfigs);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { icebreaker, icebreakerWithPrettier };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
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,12 +23,14 @@
|
|
|
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",
|
|
29
30
|
"build:up": "tsup --format esm,cjs --clean --dts",
|
|
30
31
|
"test": "vitest run",
|
|
31
32
|
"test:dev": "vitest",
|
|
32
|
-
"release": "pnpm publish"
|
|
33
|
+
"release": "pnpm publish",
|
|
34
|
+
"sync": "cnpm sync @icebreakers/eslint-config"
|
|
33
35
|
}
|
|
34
36
|
}
|