Skip to content

Commit

Permalink
feat: simplify ESLint configuration by removing stylistic and TypeScr…
Browse files Browse the repository at this point in the history
…ipt options
  • Loading branch information
Simoon-F committed Jan 13, 2025
1 parent 34fb3b1 commit f057fe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 1 addition & 4 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { avenger } from './src';

export default avenger({
typescript: true,
stylistic: true,
});
export default avenger();
9 changes: 4 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ export const avenger = (
): FlatConfigComposer<EslintFlatConfigItem, ConfigNames> => {
const {
typescript: enableTypeScript = isPackageExists('typescript'),
stylistic: enableStylistic = true,
} = options;

const stylisticOptions = options.stylistic === false
? false
: typeof options.stylistic === 'object'
? options.stylistic
: {};
const stylisticOptions = typeof enableStylistic === 'object'
? enableStylistic
: {};

const configs: Awaitable<EslintFlatConfigItem[]>[] = [];

Expand Down

0 comments on commit f057fe7

Please sign in to comment.