Skip to content

Commit

Permalink
switch to flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Apr 21, 2024
1 parent 380188b commit d4c38a0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const globals = require("globals");
const js = require("@eslint/js");
const prettierConfig = require("eslint-config-prettier");
const prettierPlugin = require("eslint-plugin-prettier");

module.exports = [
js.configs.recommended,
prettierConfig,
{
plugins: {
prettier: prettierPlugin,
},
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
jq: true,
},
},
rules: {
"prettier/prettier": ["error"],
},
},
];

0 comments on commit d4c38a0

Please sign in to comment.