Skip to content

Commit

Permalink
Merge pull request #236 from 102/flat-config
Browse files Browse the repository at this point in the history
Migrate to the flat ESLint config
  • Loading branch information
102 authored Jun 3, 2024
2 parents 8af35fb + b1e1b05 commit 3b6335d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
14 changes: 0 additions & 14 deletions .eslintrc.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ jobs:
npm test
env:
CI: true
ESLINT_USE_FLAT_CONFIG: false
19 changes: 19 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import prettierConfig from "eslint-config-prettier";
import eslintPluginConfig from "eslint-plugin-eslint-plugin/configs/recommended";
import prettier from "eslint-plugin-prettier";
import eslintPlugin from "eslint-plugin-eslint-plugin";

export default [
{
files: ["**/*.{m,}js"],
plugins: {
prettier,
eslintPlugin,
},
rules: {
"prettier/prettier": "error",
},
},
prettierConfig,
eslintPluginConfig,
];

0 comments on commit 3b6335d

Please sign in to comment.