Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bankid-bot committed Dec 20, 2024
1 parent 7a7b091 commit 1300680
Show file tree
Hide file tree
Showing 12 changed files with 2,390 additions and 5,745 deletions.
Binary file removed .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
37 changes: 0 additions & 37 deletions client/.eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion client/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.11.0
22.12.0
63 changes: 63 additions & 0 deletions client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import react from "eslint-plugin-react";
import reactHooks from "eslint-plugin-react-hooks";
import _import from "eslint-plugin-import";
import jsxA11Y from "eslint-plugin-jsx-a11y";
import licenseHeader from "eslint-plugin-license-header";
import { fixupPluginRules } from "@eslint/compat";
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", "**/license.js", "target/*", "build/*"],
}, ...compat.extends("plugin:react/recommended"), {
plugins: {
react,
"react-hooks": fixupPluginRules(reactHooks),
import: fixupPluginRules(_import),
"jsx-a11y": jsxA11Y,
"license-header": licenseHeader,
},

settings: {
react: {
version: "detect",
},
},

languageOptions: {
globals: {
...globals.browser,
},

ecmaVersion: "latest",
sourceType: "module",
},

rules: {
"react/react-in-jsx-scope": 0,
"jsx-quotes": ["error", "prefer-single"],

"react/function-component-definition": [2, {
namedComponents: "arrow-function",
}],
"no-console": 1,
"react-hooks/exhaustive-deps": 1,
"react/require-default-props": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": 0,
"import/prefer-default-export": 0,
"react/prop-types": 0,
"license-header/header": ["error", "./license.js"],
},
}];
Loading

0 comments on commit 1300680

Please sign in to comment.