Skip to content

Commit

Permalink
🏗️ migrate to ESLint flat configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorLuizC committed Sep 20, 2024
1 parent 906c0cc commit a3a78fb
Show file tree
Hide file tree
Showing 9 changed files with 267 additions and 530 deletions.
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

28 changes: 0 additions & 28 deletions .eslintrc.js

This file was deleted.

14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check

import ESLint from '@eslint/js';
import Prettier from 'eslint-plugin-prettier/recommended';
import TypeScriptESLint from 'typescript-eslint';

export default TypeScriptESLint.config(
{
ignores: ['docs/**', 'dist/**', 'types/**'],
},
Prettier,
ESLint.configs.recommended,
...TypeScriptESLint.configs.recommended,
);
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
/* eslint-env node */

/* global module -- Global defined by Node.js */

/**
* An object with Jest options.
Expand Down
Loading

0 comments on commit a3a78fb

Please sign in to comment.