Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": false,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": false,
"semi": true,
"trailingComma": "es5"
}
54 changes: 42 additions & 12 deletions .eslintrc.js → eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2022 GeoMoose
* Copyright (c) 2016-2022,2025 Dan "Ducky" Little for the GeoMoose project
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand All @@ -21,15 +21,45 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
module.exports = {
parser: "@babel/eslint-parser",
extends: ["react-app", "prettier"],
plugins: ["prettier"],
rules: {
"prettier/prettier": "error",
"camelcase": "warn",

// eslint.config.js
import jest from "eslint-plugin-jest";
import js from "@eslint/js";
import react from "eslint-plugin-react";
import pluginPrettier from "eslint-plugin-prettier";
import prettier from "eslint-config-prettier";
import globals from "globals";

export default [
js.configs.recommended,
{
files: ["**/*.{js,jsx}"],
ignores: ["fonts.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
parserOptions: { ecmaFeatures: { jsx: true } },
globals: {
...globals.browser,
...globals.jest,
...globals.node,
gm3: "readonly",
},
},
plugins: {
jest,
react,
prettier: pluginPrettier,
},
settings: {
react: { version: "detect" },
},
rules: {
...react.configs.recommended.rules,
...jest.configs.recommended.rules,
"prettier/prettier": "error",
camelcase: "warn",
},
},
globals: {
"gm3": "readonly",
},
};
prettier,
];
Loading
Loading