Skip to content

Commit

Permalink
Use ESM and update to eslint flat configs (#45)
Browse files Browse the repository at this point in the history
* Use ESM and update to eslint flat configs

* Formatting
  • Loading branch information
parse authored Sep 11, 2024
1 parent 5a64402 commit 6bb9f8e
Show file tree
Hide file tree
Showing 6 changed files with 870 additions and 1,107 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { vanillaConfig } from "@caspeco/eslint-config";

const config = [{ ignores: ["test/__fixtures__", "test/__snapshots__/"] }, ...vanillaConfig];

export default config;
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @type {import('prettier').Options}
*/
module.exports = {
const config = {
// better for a11y + allows for personalized indentation locally
useTabs: true,

Expand Down Expand Up @@ -34,3 +34,5 @@ module.exports = {
embeddedLanguageFormatting: "auto",
singleAttributePerLine: false,
};

export default config;
Loading

0 comments on commit 6bb9f8e

Please sign in to comment.