Skip to content

Commit

Permalink
fix: fix setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Oct 12, 2024
1 parent 7b6d098 commit 69dc286
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/config-util/src/init-config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import chalk from 'chalk'
import fs from 'node:fs'
import path from 'node:path'
import chalk from 'chalk'
import { readJson } from './read-json'

export function initConfig(
Expand Down
7 changes: 1 addition & 6 deletions packages/eslint-config/setup.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { initConfig } from '@bubkoo/config-util'

const configFileName = 'eslint.config'
const configContent = `module.exports = require('@bubkoo/eslint-config')`.trim()

initConfig(configFileName, `${configContent}\n`, [
`${configFileName}.js`,
`${configFileName}.cjs`,
`${configFileName}.mjs`,
])
initConfig('eslint.config.mjs', `${configContent}\n`)
2 changes: 2 additions & 0 deletions packages/eslint-config/src/common/stylistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default [
name: `${name}/${overrideName}`,
rules: {
'@stylistic/quote-props': ['error', 'as-needed'],
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@stylistic/operator-linebreak': ['error', 'after'],
},
},
]

0 comments on commit 69dc286

Please sign in to comment.