-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
157 changed files
with
4,201 additions
and
4,464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"eslint.workingDirectories": ["./context"], | ||
"eslint.format.enable": true, | ||
"[javascript,javascriptreact,typescript,typescriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.autopep8" | ||
}, | ||
"python.formatting.provider": "autopep8", | ||
"optional": { | ||
"editor.formatOnSave": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} | ||
|
||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"ms-python.autopep8" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
CHANGELOG-hmp-156-update-text-for-access-permissions-for-workspaces.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,100 @@ | ||
extends: | ||
- react-app | ||
- eslint:recommended | ||
- plugin:react/recommended | ||
- airbnb | ||
- plugin:jest-dom/recommended | ||
- plugin:testing-library/recommended | ||
- airbnb/hooks | ||
- prettier | ||
- plugin:@typescript-eslint/recommended | ||
- plugin:prettier/recommended | ||
- prettier/react | ||
- plugin:import/errors | ||
- plugin:import/warnings | ||
parser: "babel-eslint" | ||
parser: '@typescript-eslint/parser' | ||
globals: | ||
CDN_URL: readonly | ||
flaskData: readonly | ||
groupsToken: readonly | ||
isAuthenticated: readonly | ||
userEmail: readonly | ||
workspacesToken: readonly | ||
userGroups: readonly | ||
env: | ||
browser: true | ||
node: true | ||
plugins: | ||
- react | ||
- '@typescript-eslint' | ||
- prettier | ||
- import | ||
settings: | ||
react: | ||
version: detect | ||
import/resolver: | ||
webpack: | ||
config: './build-utils/webpack.common.js' | ||
rules: | ||
camelcase: [0] # Preserving original name will make searching across codebase easier. | ||
no-console: ["error", { allow: ["warn", "error"] }] | ||
react/jsx-filename-extension: [0] # Imports don't work if I change extension. | ||
react/sort-comp: [0] # Non-alphabetical groupings can make more sense. | ||
react/jsx-one-expression-per-line: [0] # Makes punctuation after tab awkward. | ||
camelcase: [0] # Preserving original name will make searching across codebase easier. | ||
no-console: ['error', { allow: ['warn', 'error'] }] | ||
react/jsx-filename-extension: [0] # Imports don"t work if I change extension. | ||
import/extensions: [0] # Same as above; we can eventually remove these rules to convert to ESM | ||
react/sort-comp: [0] # Non-alphabetical groupings can make more sense. | ||
react/jsx-one-expression-per-line: [0] # Makes punctuation after tab awkward. | ||
react/prop-types: [0] | ||
import/prefer-default-export: [0] # Hit eslint error: SyntaxError: Unexpected token, expected { | ||
react/jsx-props-no-spreading: [0] | ||
react/forbid-prop-types: [0] | ||
import/prefer-default-export: [0] # Hit eslint error: SyntaxError: Unexpected token, expected { | ||
react/jsx-props-no-spreading: [0] # common pattern, but with TypeScript it"s pretty safe | ||
jsx-a11y/label-has-associated-control: | ||
- 2 | ||
- controlComponents: | ||
- Switch | ||
import/no-extraneous-dependencies: ["error", {"devDependencies": ["**/*.spec.js", "**/*.stories.js"]}] | ||
- Switch | ||
react/jsx-no-bind: [0] # We can revisit this later if we detect performance issues from unstable functions | ||
'@typescript-eslint/no-unused-vars': | ||
- 2 # Error on unmarked unused variables | ||
- argsIgnorePattern: '^_' # Allow unused variables that start with _ | ||
ignoreRestSiblings: true # Allow unused variables when using destructuring to remove keys from an object | ||
|
||
overrides: | ||
- files: ['**/*.spec.{js,jsx,ts,tsx}'] | ||
plugins: | ||
- jest | ||
extends: | ||
- plugin:jest/recommended | ||
- plugin:jest-dom/recommended | ||
- plugin:testing-library/react | ||
settings: | ||
'import/resolver': | ||
jest: | ||
jestConfigFile: ./jest.config.js | ||
env: | ||
jest: true | ||
jest/globals: true | ||
rules: | ||
import/no-extraneous-dependencies: [0] | ||
'@typescript-eslint/no-var-requires': [0] # allow use of require in jest tests | ||
jest/expect-expect: ['error', { 'assertFunctionNames': ['expect*'] }] # allow expect calls to be contained within helper functions that start with expect | ||
'@typescript-eslint/no-empty-function': [0] # allow empty function placeholders in jest tests | ||
- files: ['**/*.stories.{js,jsx,ts,tsx}'] | ||
extends: | ||
- plugin:storybook/recommended | ||
rules: | ||
import/no-extraneous-dependencies: [0] | ||
'@typescript-eslint/no-empty-function': [0] # allow empty function placeholders in stories | ||
storybook/no-redundant-story-name: [0] # Some are needed for single story hoisting for multi word component names per comments - may need to be revisited/retested for the highlighted cases | ||
- files: ['**/*.cy.{js,jsx,ts,tsx}'] | ||
plugins: | ||
- cypress | ||
extends: | ||
- plugin:cypress/recommended | ||
env: | ||
cypress/globals: true | ||
rules: | ||
import/no-extraneous-dependencies: [0] | ||
- files: ['**/build-utils/*.js'] | ||
rules: | ||
'@typescript-eslint/no-var-requires': [0] # allow use of require | ||
import/no-extraneous-dependencies: [0] # Allow devDependencies in webpack config | ||
- files: ['**/__tests__/**/*.{js,jsx,ts,tsx}'] # Allow the "test" global in test fixtures | ||
globals: | ||
test: readonly | ||
rules: | ||
import/no-extraneous-dependencies: [0] # Allow devDependencies in test fixtures | ||
'@typescript-eslint/no-empty-function': [0] # allow empty function placeholders in test fixtures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ semi: true | |
trailingComma: "all" | ||
singleQuote: true | ||
printWidth: 120 | ||
tabWidth: 2 | ||
endOfLine: "lf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
context/app/static/js/components/cells/DatasetClusterTooltip/DatasetClusterTooltip.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.