mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-09 09:52:19 +00:00
15d0d788e5
* get most recent tasks based on last_state_change instead of task_model.id * added api to get task instances of a task * some changes to support displaying task instances * forgot to commit the controller * updated frontend to display info for other instances of a task w/ burnettk * some formatting to the selected task instance w/ burnettk * do not get task instances when selecting different instance w/ burnettk * added tests for task-instances w/ burnettk * some ui tweaks for task instance view w/ burnettk * updates based on coderabbit --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com>
77 lines
2.0 KiB
JavaScript
77 lines
2.0 KiB
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: [
|
|
'react-app',
|
|
'react-app/jest',
|
|
'plugin:react/recommended',
|
|
'airbnb',
|
|
'plugin:jest/recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:sonarjs/recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/warnings',
|
|
'plugin:import/typescript',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['react', 'sonarjs', '@typescript-eslint', 'unused-imports'],
|
|
rules: {
|
|
// according to https://github.com/typescript-eslint/typescript-eslint/issues/2621, You should turn off the eslint core rule and turn on the typescript-eslint rule
|
|
// but not sure which of the above "extends" statements is maybe bringing in eslint core
|
|
'max-len': ['error', { code: 200, ignoreUrls: true }],
|
|
'no-shadow': 'off',
|
|
'@typescript-eslint/no-shadow': ['error'],
|
|
'jest/expect-expect': 'off',
|
|
'react/jsx-no-bind': 'off',
|
|
'jsx-a11y/no-autofocus': 'off',
|
|
'jsx-a11y/label-has-associated-control': 'off',
|
|
'no-console': 'off',
|
|
'react/jsx-filename-extension': [
|
|
'warn',
|
|
{ extensions: ['.js', '.jsx', '.tsx', '.ts'] },
|
|
],
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react/require-default-props': 'off',
|
|
'import/prefer-default-export': 'off',
|
|
'no-unused-vars': 'off',
|
|
'unused-imports/no-unused-imports': 'error',
|
|
'unused-imports/no-unused-vars': [
|
|
'warn',
|
|
{
|
|
vars: 'all',
|
|
varsIgnorePattern: '^_',
|
|
args: 'after-used',
|
|
argsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
destructuredArrayIgnorePattern: '^_',
|
|
varsIgnorePattern: '_',
|
|
argsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
'import/extensions': [
|
|
'error',
|
|
'ignorePackages',
|
|
{
|
|
js: 'never',
|
|
jsx: 'never',
|
|
ts: 'never',
|
|
tsx: 'never',
|
|
},
|
|
],
|
|
curly: ['error', 'all'],
|
|
},
|
|
};
|