Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(web): Update dependencies 2024-09-16 #1612

Merged
merged 22 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a4debf1
chore(web): update typedoc dependencies
dgdavid Sep 14, 2024
7a80b34
chore(web): update dependencies with npm update
dgdavid Sep 14, 2024
71a2968
chore(web): update react-simple-icons
dgdavid Sep 14, 2024
0ddcd1b
chore(web): update @material-symbols
dgdavid Sep 14, 2024
b447bc2
chore(web): drop eslint-config-standard plugins
dgdavid Sep 14, 2024
d455bd4
chore(web): drop eslint-plugin-flowtype
dgdavid Sep 16, 2024
4414e57
chore(web): update eslint deps to latest version
dgdavid Sep 16, 2024
5433c00
chore(web): start using neostandard style guide
dgdavid Sep 16, 2024
22b4699
fix(web): drop @typescript-eslint/no-explicit-any complaints
dgdavid Sep 16, 2024
0813c49
fix(web): drop react/jsx-key ESLint complaints
dgdavid Sep 16, 2024
e063e1a
fix(web): drop @typescript-eslint/no-unused-vars complaints
dgdavid Sep 16, 2024
a381b74
chore(web): update stylelint configuration
dgdavid Sep 16, 2024
cc9ea57
fix(web): drop react-hooks/exhaustive-dep ESLint complaints
dgdavid Sep 16, 2024
ed88b84
fix(web): drop @typescript-eslint/no-use-before-define complaints
dgdavid Sep 16, 2024
a32ba45
fix(web): drop no-constant-binary-expression ESLint complaints
dgdavid Sep 16, 2024
89214a7
fix(web): do not call useSuspenseQueries conditionally
dgdavid Sep 16, 2024
a5c43a0
fix(web): stop using no longer available icons
dgdavid Sep 16, 2024
3e05cb4
fix(web): allow using any in an API storage promise
dgdavid Sep 16, 2024
11d5aaf
chore(web) update @typescript-eslint dependencies
dgdavid Sep 16, 2024
312ed7b
chore(web): update @react-testing-library dependency
dgdavid Sep 16, 2024
2d2b1cc
chore(web): update sass and babel loaders
dgdavid Sep 16, 2024
68a28e2
chore(web): update css-minimizer-webpack-plugin
dgdavid Sep 16, 2024
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
3 changes: 0 additions & 3 deletions web/.eslintignore

This file was deleted.

82 changes: 0 additions & 82 deletions web/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion web/.stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/at-import-partial-extension": null,
"scss/load-partial-extension": "always",
"scss/at-mixin-pattern": null,
"scss/comment-no-empty": null,
"scss/dollar-variable-pattern": null,
Expand Down
98 changes: 98 additions & 0 deletions web/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
import js from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import neostandard from "neostandard";
import tsEslint from "typescript-eslint";
import tsEslintParser from "@typescript-eslint/parser";
import globals from "globals";
import agamaI18nEslintPlugin from "eslint-plugin-agama-i18n";
import i18nextEslintPlugin from "eslint-plugin-i18next";
import tsEslintPlugin from "@typescript-eslint/eslint-plugin";
import reactHooksPlugin from "eslint-plugin-react-hooks";

const neostandardConfig = neostandard({ semi: true, noStyle: true });

export default [
...neostandardConfig,
js.configs.recommended,
...tsEslint.configs.recommended,
eslintPluginPrettierRecommended,
{
languageOptions: {
ecmaVersion: 7,
sourceType: "module",
globals: {
...globals.browser,
...globals.commonjs,
...globals.jest,
...globals.node,
msCrypto: true,
},
parser: tsEslintParser,
},
},
{
plugins: {
"agama-i18n": agamaI18nEslintPlugin,
i18next: i18nextEslintPlugin,
"typescript-eslint": tsEslintPlugin,
"react-hooks": reactHooksPlugin,
},
},
{
rules: {
"agama-i18n/string-literals": "error",
"i18next/no-literal-string": "error",
"no-var": "error",
"no-multi-str": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
ignoreRestSiblings: true,
},
],
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"lines-between-class-members": [
"error",
"always",
{
exceptAfterSingleLine: true,
},
],
"prefer-promise-reject-errors": [
"error",
{
allowEmptyReject: true,
},
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
camelcase: "off",
"comma-dangle": "off",
curly: "off",
"jsx-quotes": "off",
"key-spacing": "off",
"no-console": "off",
quotes: "off",
"react/jsx-curly-spacing": "off",
"react/jsx-indent-props": "off",
"react/prop-types": "off",
"space-before-function-paren": "off",
"n/no-callback-literal": "off",
},
},
{
files: ["**/*.test.*", "src/test-utils.js"],
rules: { "i18next/no-literal-string": "off" },
},
{
files: ["src/i18n.test.js"],
rules: { "agama-i18n/string-literals": "off" },
},
{
ignores: ["node_modules/*", "src/lib/*", "src/**/test-data/*"],
},
];
Loading
Loading