Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tttp committed Oct 3, 2024
1 parent 32b2988 commit 05068ae
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 40 deletions.
62 changes: 36 additions & 26 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,58 @@ 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
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [{
export default [
{
ignores: ["config/**/*", "build/**/*", "d/**/*"],
}, ...compat.extends("eslint:recommended", "plugin:react/recommended", "prettier"), {
},
...compat.extends(
"eslint:recommended",
"plugin:react/recommended",
"prettier",
),
{
plugins: {
react,
react,
},

languageOptions: {
globals: {
...globals.node,
...globals.browser,
global: "readonly",
},
globals: {
...globals.node,
...globals.browser,
global: "readonly",
},

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

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

rules: {
'react/react-in-jsx-scope': 'off',
"no-unused-vars": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"no-unused-vars": "warn",
"react/prop-types": "off",
},
}, {
files: ["s**/*.js"],
}, {
},
{
files: ["**/*.js","**/*.jsx"],
},
{
files: ["**/__tests__/*.js"],

languageOptions: {
globals: {
...globals.jest,
},
globals: {
...globals.jest,
},
},
}];
},
];
11 changes: 4 additions & 7 deletions src/components/bespoke/EegManifesto.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const EggManifesto = ({ form }) => {
let label = "Sign on the behalf of " + (organisation || "your organisation");

return (
<Grid container alignItems="flex-start">
<Grid item xs={12}>
<><Grid item xs={12}>
<Orcid form={form} />
<Affiliation form={form} />
<Checkbox
Expand All @@ -25,14 +24,12 @@ const EggManifesto = ({ form }) => {
label={label}
/>
</Grid>
<Grid item xs={12}>
{organisation_sign && (
<Alert severity="info" style={{ marginTop: 8 }}>
<Grid item><Alert severity="info" style={{ marginTop: 8 }}>
<AlertTitle>Your details will not be displayed</AlertTitle>We need
them to approve your institution&apos;s signature
</Alert>
</Alert></Grid>
)}
</Grid>
<Grid item sm={4}>
<Select name="gender" options="campaign:profile.gender" form={form} />
</Grid>
Expand All @@ -44,7 +41,7 @@ const EggManifesto = ({ form }) => {
form={form}
/>
</Grid>
</Grid>
</>
);
};

Expand Down
Loading

0 comments on commit 05068ae

Please sign in to comment.