Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat/katsu-config
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	src/components/App.js
#	src/components/datasets/DatasetForm.js
#	src/components/datasets/DatasetFormModal.js
#	src/components/display/FileDisplay.js
#	src/components/manager/projects/Project.js
#	src/components/manager/projects/ProjectCreationModal.js
#	src/components/manager/projects/ProjectForm.js
#	src/components/manager/projects/RoutedProject.js
#	src/hooks.ts
#	src/modules/discovery/actions.js
#	src/modules/discovery/reducers.js
#	src/modules/services/actions.js
#	src/modules/services/hooks.js
#	src/modules/user/actions.js
#	src/propTypes.js
  • Loading branch information
davidlougheed committed Aug 19, 2024
2 parents 5785ff8 + 01507ef commit 4051908
Show file tree
Hide file tree
Showing 260 changed files with 20,251 additions and 17,499 deletions.
115 changes: 45 additions & 70 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,97 +1,72 @@
module.exports = {
"env": {
"browser": true,
"es6": true
env: {
browser: true,
es6: true,
},
"extends": [
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"process": "readonly",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
process: "readonly",
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true,
},
"sourceType": "module",
sourceType: "module",
},
"plugins": [
"react",
"@typescript-eslint",
],
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1,
"ignoredNodes": [
"JSXElement",
"JSXElement > *",
"JSXAttribute",
"JSXIdentifier",
"JSXNamespacedName",
"JSXMemberExpression",
"JSXSpreadAttribute",
"JSXExpressionContainer",
"JSXOpeningElement",
"JSXClosingElement",
"JSXText",
"JSXEmptyExpression",
"JSXSpreadChild",
],
"ignoreComments": true,
}
],
plugins: ["react", "@typescript-eslint", "prettier"],
rules: {
"prettier/prettier": "error",
"react/jsx-indent-props": ["error", "first"],

// Don't need React for JSX anymore with new JSX transform
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",

// Prevent some legacy HTML tags
"react/forbid-elements": ["error", {"forbid": ["b", "font"]}],

"react/forbid-elements": ["error", { forbid: ["b", "font"] }],
"react/prop-types": ["error", { ignore: ["form", "match", "history"] }],
"react-hooks/exhaustive-deps": "error",
"no-prototype-builtins": "off",
"react/display-name": "off",

"linebreak-style": ["error", "unix"],
"react/prop-types": ["error", {"ignore": ["form", "match", "history"]}],
"quotes": ["error", "double"],
"semi": ["error", "always"],
quotes: ["error", "double"],
semi: ["error", "always"],
"semi-spacing": ["error"],
"no-var": ["error"],
"prefer-const": ["error"],
"eqeqeq": ["error"],
"max-len": ["error", {"code": 120}],
eqeqeq: ["error"],
"max-len": ["error", { code: 124, tabWidth: 2, ignoreComments: true }],
"no-trailing-spaces": ["error"],
"space-before-blocks": ["error", "always"],
"eol-last": ["error", "always"],
"no-restricted-globals": ["error", "event"],
"brace-style": ["error", "1tbs"],
"camelcase": ["error", {"properties": "never"}],
camelcase: ["error", { properties: "never" }],
"space-infix-ops": ["error"],
"keyword-spacing": ["error", {"before": true, "after": true}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline",
}],

// @typescript-eslint tweaks
"keyword-spacing": ["error", { before: true, after: true }],
"comma-dangle": [
"error",
{
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "always-multiline",
},
],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
"settings": {
"react": {
"version": "detect"
}
}
settings: {
react: {
version: "detect",
},
},
};
1 change: 1 addition & 0 deletions .idea/bento_web.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 16 additions & 3 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 120,
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"bracketSpacing": true,
"arrowParens": "always",
"jsxSingleQuote": false,
"endOfLine": "lf"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ components.
* `utils/`: Utility code shared across components, state code, and other
modules in the application.
* `actions.js`: Utilities related to Redux actions
* `menu.js`: Utilities related to Ant Design menus
* `misc.js`: Miscellaneous helper functions
* `menu.tsx`: Utilities related to Ant Design menus
* `misc.ts`: Miscellaneous helper functions
* `notifications.js`: Utilities related to Bento notifications
* `requests.js`: Utilities related to HTTP requests
* `schema.js`: Utilities related to JSON schemas
Expand Down
1 change: 1 addition & 0 deletions create_config_prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const siteConfig = {
BENTO_PUBLIC_URL: process.env.BENTO_PUBLIC_URL || null,
BENTO_CBIOPORTAL_ENABLED: ["true", "1", "yes"].includes((process.env.BENTO_CBIOPORTAL_ENABLED || "").toLowerCase()),
BENTO_CBIOPORTAL_PUBLIC_URL: process.env.BENTO_CBIOPORTAL_PUBLIC_URL || null,
BENTO_MONITORING_ENABLED: ["true", "1", "yes"].includes((process.env.BENTO_MONITORING_ENABLED || "").toLowerCase()),
CUSTOM_HEADER: (process.env.CUSTOM_HEADER || "").trim(),

// OAuth/OIDC stuff
Expand Down
Loading

0 comments on commit 4051908

Please sign in to comment.