Skip to content

Commit 3110cc8

Browse files
committed
feat: update names for all config items
1 parent eea2c74 commit 3110cc8

18 files changed

+46
-41
lines changed

src/configs/comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { TypedFlatConfigItem } from '../types'
44
export async function comments(): Promise<TypedFlatConfigItem[]> {
55
return [
66
{
7-
name: 'coderwyd:eslint-comments',
7+
name: 'coderwyd/eslint-comments/rules',
88
plugins: {
99
'eslint-comments': pluginComments,
1010
},

src/configs/formatter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function formatter(
6161
languageOptions: {
6262
parser: parserPlain,
6363
},
64-
name: `coderwyd:formatter:${parser}`,
64+
name: `coderwyd/formatter/${parser}`,
6565
plugins: {
6666
prettier: pluginPrettier,
6767
},
@@ -78,7 +78,7 @@ export async function formatter(
7878

7979
const configs: TypedFlatConfigItem[] = [
8080
{
81-
name: 'coderwyd:formatter:setup',
81+
name: 'coderwyd/formatter/setup',
8282
plugins: {
8383
prettier: pluginPrettier,
8484
},

src/configs/imports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { TypedFlatConfigItem } from '../types'
55
export async function imports(): Promise<TypedFlatConfigItem[]> {
66
return [
77
{
8-
name: 'coderwyd:imports',
8+
name: 'coderwyd/imports/rules',
99
plugins: {
1010
antfu: pluginAntfu,
1111
import: pluginImport,
@@ -47,7 +47,7 @@ export async function imports(): Promise<TypedFlatConfigItem[]> {
4747
},
4848
{
4949
files: ['**/bin/**/*', `**/bin.${GLOB_SRC_EXT}`],
50-
name: 'coderwyd:disables:imports-bin',
50+
name: 'coderwyd/imports/disables/bin',
5151
rules: {
5252
'antfu/no-import-dist': 'off',
5353
'antfu/no-import-node-modules-by-path': 'off',

src/configs/javascript.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function javascript(
3636
linterOptions: {
3737
reportUnusedDisableDirectives: true,
3838
},
39-
name: 'coderwyd:javascript',
39+
name: 'coderwyd/javascript/rules',
4040
plugins: {
4141
'unused-imports': pluginUnusedImports,
4242
},
@@ -260,13 +260,14 @@ export async function javascript(
260260
},
261261
{
262262
files: [`scripts/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
263-
name: 'coderwyd:disables:cli',
263+
name: 'coderwyd/javascript/disables/cli',
264264
rules: {
265265
'no-console': 'off',
266266
},
267267
},
268268
{
269269
files: ['**/*.{test,spec}.js?(x)'],
270+
name: 'coderwyd/javascript/disables/test',
270271
rules: {
271272
'no-unused-expressions': 'off',
272273
},

src/configs/jsdoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { TypedFlatConfigItem } from '../types'
44
export async function jsdoc(): Promise<TypedFlatConfigItem[]> {
55
return [
66
{
7-
name: 'coderwyd:jsdoc',
7+
name: 'coderwyd/jsdoc/rules',
88
plugins: {
99
jsdoc: await interopDefault(import('eslint-plugin-jsdoc')),
1010
},

src/configs/jsonc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function jsonc(
1919

2020
return [
2121
{
22-
name: 'coderwyd:jsonc:setup',
22+
name: 'coderwyd/jsonc/setup',
2323
plugins: {
2424
jsonc: pluginJsonc as any,
2525
},
@@ -29,7 +29,7 @@ export async function jsonc(
2929
languageOptions: {
3030
parser: parserJsonc as any,
3131
},
32-
name: 'coderwyd:jsonc:rules',
32+
name: 'coderwyd/jsonc/rules',
3333
rules: {
3434
'jsonc/no-bigint-literals': 'error',
3535
'jsonc/no-binary-expression': 'error',

src/configs/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { TypedFlatConfigItem } from '../types'
44
export async function node(): Promise<TypedFlatConfigItem[]> {
55
return [
66
{
7-
name: 'coderwyd:node',
7+
name: 'coderwyd/node/rules',
88
plugins: {
99
node: pluginNode,
1010
},

src/configs/perfectionist.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { TypedFlatConfigItem } from '../types'
99
export async function perfectionist(): Promise<TypedFlatConfigItem[]> {
1010
return [
1111
{
12-
name: 'coderwyd:perfectionist',
12+
name: 'coderwyd/perfectionist/setup',
1313
plugins: {
1414
perfectionist: pluginPerfectionist,
1515
},

src/configs/prettier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ export async function prettier(rules = {}) {
1414

1515
const configs: TypedFlatConfigItem[] = [
1616
{
17-
name: 'coderwyd:prettier:setup',
17+
name: 'coderwyd/prettier/setup',
1818
plugins: {
1919
prettier: pluginPrettier,
2020
},
2121
},
2222
{
2323
files: GLOB_PRETTIER_LINT,
24-
name: 'coderwyd:prettier:rules',
24+
name: 'coderwyd/prettier/rules',
2525
rules: {
2626
...eslintRules,
2727
'prettier/prettier': ['warn', pRules],

src/configs/react.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function react(
4040

4141
return [
4242
{
43-
name: 'coderwyd:react:setup',
43+
name: 'coderwyd/react/setup',
4444
plugins: {
4545
react: pluginReact,
4646
'react-hooks': pluginReactHooks,
@@ -61,7 +61,7 @@ export async function react(
6161
},
6262
},
6363
},
64-
name: 'coderwyd:react:rules',
64+
name: 'coderwyd/react/rules',
6565
rules: {
6666
// recommended rules react-hooks
6767
'react-hooks/exhaustive-deps': 'warn',

0 commit comments

Comments
 (0)