Skip to content

Commit

Permalink
chore: update eslint, use flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Oct 5, 2024
1 parent 70f0157 commit 6678217
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 196 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import js from "@eslint/js";
import prettier from "eslint-config-prettier";
import jsdoc from "eslint-plugin-jsdoc";
import unicorn from "eslint-plugin-unicorn";
import globals from "globals";

export default [
js.configs.recommended,
jsdoc.configs["flat/recommended"],
unicorn.configs["flat/recommended"],
{
files: ["**/*.js"],
languageOptions: { globals: { ...globals.node } },
},
prettier,
];
Loading

0 comments on commit 6678217

Please sign in to comment.