Skip to content

Commit

Permalink
fix: consistent on config names
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 29, 2024
1 parent c68d090 commit cb5090f
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 64 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"eslint-config-flat-gitignore": "^0.1.3",
"eslint-flat-config-utils": "^0.1.1",
"eslint-flat-config-utils": "^0.1.2",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-antfu": "^2.1.2",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import-x": "^0.4.4",
"eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-jsdoc": "^48.2.2",
"eslint-plugin-jsonc": "^2.14.1",
"eslint-plugin-markdown": "^4.0.1",
"eslint-plugin-n": "^16.6.2",
Expand Down Expand Up @@ -131,18 +131,18 @@
"@types/node": "^20.11.30",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.32",
"@unocss/eslint-plugin": "^0.58.7",
"@unocss/eslint-plugin": "^0.58.8",
"astro-eslint-parser": "^0.16.3",
"bumpp": "^9.4.0",
"eslint": "9.0.0-rc.0",
"eslint-flat-config-viewer": "^0.1.14",
"eslint-flat-config-viewer": "^0.1.19",
"eslint-plugin-astro": "^0.33.1",
"eslint-plugin-format": "^0.1.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"eslint-plugin-svelte": "2.36.0-next.13",
"eslint-typegen": "^0.1.4",
"eslint-typegen": "^0.1.6",
"esno": "^4.7.0",
"execa": "^8.0.1",
"fast-glob": "^3.3.2",
Expand Down
121 changes: 67 additions & 54 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/configs/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function formatters(

const configs: TypedFlatConfigItem[] = [
{
name: 'antfu:formatters:setup',
name: 'antfu:formatter:setup',
plugins: {
format: pluginFormat,
},
Expand Down
2 changes: 1 addition & 1 deletion src/configs/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function imports(options: OptionsStylistic = {}): Promise<TypedFlat
},
{
files: ['**/bin/**/*', `**/bin.${GLOB_SRC_EXT}`],
name: 'antfu:imports:bin',
name: 'antfu:disables:imports-bin',
rules: {
'antfu/no-import-dist': 'off',
'antfu/no-import-node-modules-by-path': 'off',
Expand Down
2 changes: 1 addition & 1 deletion src/configs/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export async function javascript(
},
{
files: [`scripts/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
name: 'antfu:scripts-overrides',
name: 'antfu:disables:cli',
rules: {
'no-console': 'off',
},
Expand Down
4 changes: 2 additions & 2 deletions src/configs/sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function sortPackageJson(): Promise<TypedFlatConfigItem[]> {
return [
{
files: ['**/package.json'],
name: 'antfu:sort-package-json',
name: 'antfu:sort:package-json',
rules: {
'jsonc/sort-array-values': [
'error',
Expand Down Expand Up @@ -116,7 +116,7 @@ export function sortTsconfig(): TypedFlatConfigItem[] {
return [
{
files: ['**/tsconfig.json', '**/tsconfig.*.json'],
name: 'antfu:sort-tsconfig',
name: 'antfu:sort:tsconfig',
rules: {
'jsonc/sort-keys': [
'error',
Expand Down

0 comments on commit cb5090f

Please sign in to comment.