Skip to content

Commit

Permalink
Merge pull request #17 from line/chore/upgrade-eslint
Browse files Browse the repository at this point in the history
chore: upgrade ESLint and Prettier
  • Loading branch information
kazushisan authored Sep 11, 2024
2 parents e486f98 + 9166ed4 commit a38f344
Show file tree
Hide file tree
Showing 9 changed files with 771 additions and 1,572 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc.cjs

This file was deleted.

10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default tseslint.config(
{ ignores: ['dist'] },
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
);
4 changes: 2 additions & 2 deletions lib/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ cli
skipArg && Array.isArray(skipArg)
? skipArg.map((s) => new RegExp(s))
: typeof skipArg === 'string'
? [new RegExp(skipArg)]
: [];
? [new RegExp(skipArg)]
: [];

if (!options['includeD-ts']) {
skip.push(new RegExp('\\.d\\.ts'));
Expand Down
1 change: 0 additions & 1 deletion lib/util/removeUnusedExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ export const removeUnusedExport = ({
editTracker.end(file);

if (enableCodeFix) {
// eslint-disable-next-line no-constant-condition
while (true) {
fileService.set(file, content);

Expand Down
Loading

0 comments on commit a38f344

Please sign in to comment.