Skip to content

Commit

Permalink
Update the eslint standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveworley committed Aug 5, 2024
1 parent a4dd568 commit f8aa6c5
Show file tree
Hide file tree
Showing 21 changed files with 409 additions and 224 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

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

This file was deleted.

30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["eslint.config.mjs", "**/build/", "**/node_modules/"],
languageOptions: {
globals: {
...globals.commonjs,
...globals.node,
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
ecmaVersion: 2018,
sourceType: "commonjs"
},
rules: {
"max-len": "off"
}
}];
Loading

0 comments on commit f8aa6c5

Please sign in to comment.