Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/organization people UI changes #2358

Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f3275a5
changed color scheme for the organization people screen
AVtheking Oct 27, 2024
6c57446
fix precommit
AVtheking Oct 27, 2024
6f9b7ac
merge
AVtheking Oct 27, 2024
345703f
merged
AVtheking Oct 27, 2024
dd6ddbe
Update pre-commit
AVtheking Oct 28, 2024
91fc091
fix conflicts
AVtheking Oct 28, 2024
07bf21d
Merge branch 'develop' into chore/Organization-people-ui-changes
AVtheking Oct 28, 2024
ff6d629
fix type checks
AVtheking Oct 28, 2024
7867e6a
fix type checks
AVtheking Oct 28, 2024
4af1540
fix type checks
AVtheking Oct 28, 2024
8bbff3d
fix ts eslint errors
AVtheking Oct 30, 2024
56f857f
Merge branch 'develop' into chore/Organization-people-ui-changes
AVtheking Oct 30, 2024
849ad47
fix ts eslint errors
AVtheking Oct 30, 2024
f13dfad
fix ts eslint errors
AVtheking Oct 30, 2024
3083c4d
fix ts eslint errors
AVtheking Oct 30, 2024
4ed66a5
Merge branch 'develop' into chore/Organization-people-ui-changes
AVtheking Oct 30, 2024
9bf0bf7
testing
AVtheking Oct 30, 2024
07406bb
testing
AVtheking Oct 30, 2024
695c22d
testing
AVtheking Oct 30, 2024
c0ca9c2
reverted changes in yaml file
AVtheking Oct 30, 2024
f2aa7c1
cr comments
AVtheking Oct 31, 2024
80dab7d
Update pull-request.yml
AVtheking Oct 31, 2024
8983ea9
cr comments
AVtheking Oct 31, 2024
7923515
cr comments and single css file
AVtheking Oct 31, 2024
fcb9a9d
Merge branch 'develop' into chore/Organization-people-ui-changes
AVtheking Oct 31, 2024
3ed1122
CR comments
AVtheking Oct 31, 2024
e54e33c
delete button margin from top
AVtheking Oct 31, 2024
a59ce86
prettier for commit and pull request
AVtheking Oct 31, 2024
700d91f
Merge branch 'develop' into chore/Organization-people-ui-changes
AVtheking Oct 31, 2024
6280b0c
remove hard coded colors
AVtheking Nov 5, 2024
200b2af
Merge branch 'develop' into chore/Organization-people-ui-changes
AVtheking Nov 6, 2024
ff383f2
fix failing test cases
AVtheking Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
import react from "eslint-plugin-react";

Check failure on line 1 in eslint.config.mjs

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Replace `"eslint-plugin-react"` with `'eslint-plugin-react'`
import typescriptEslint from "@typescript-eslint/eslint-plugin";

Check failure on line 2 in eslint.config.mjs

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Replace `"@typescript-eslint/eslint-plugin"` with `'@typescript-eslint/eslint-plugin'`
import jest from "eslint-plugin-jest";

Check failure on line 3 in eslint.config.mjs

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Replace `"eslint-plugin-jest"` with `'eslint-plugin-jest'`
import _import from "eslint-plugin-import";

Check failure on line 4 in eslint.config.mjs

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Replace `"eslint-plugin-import"` with `'eslint-plugin-import'`
import tsdoc from "eslint-plugin-tsdoc";

Check failure on line 5 in eslint.config.mjs

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Replace `"eslint-plugin-tsdoc"` with `'eslint-plugin-tsdoc'`
import prettier from "eslint-plugin-prettier";

Check failure on line 6 in eslint.config.mjs

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Replace `"eslint-plugin-prettier"` with `'eslint-plugin-prettier'`
import { fixupPluginRules } from "@eslint/compat";

Check failure on line 7 in eslint.config.mjs

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Replace `"@eslint/compat"` with `'@eslint/compat'`
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
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: ["src/components/CheckIn/tagTemplate.ts"],
AVtheking marked this conversation as resolved.
Show resolved Hide resolved
}, ...compat.extends(
"plugin:react/recommended",
"eslint:recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier",
"prettier",
AVtheking marked this conversation as resolved.
Show resolved Hide resolved
), {
plugins: {
react,
"@typescript-eslint": typescriptEslint,
jest,
import: fixupPluginRules(_import),
tsdoc,
prettier,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},

parser: tsParser,
ecmaVersion: 2018,
AVtheking marked this conversation as resolved.
Show resolved Hide resolved
sourceType: "module",

parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
AVtheking marked this conversation as resolved.
Show resolved Hide resolved

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

rules: {
"react/destructuring-assignment": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",

"react/no-multi-comp": ["error", {
ignoreStateless: false,
}],

"react/jsx-filename-extension": ["error", {
extensions: [".tsx"],
}],

"import/no-duplicates": "error",
"tsdoc/syntax": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-unsafe-function-type": "error",
"@typescript-eslint/no-wrapper-object-types": "error",
"@typescript-eslint/no-empty-object-type": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/array-type": "error",
AVtheking marked this conversation as resolved.
Show resolved Hide resolved
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-imports": "error",

"@typescript-eslint/explicit-function-return-type": [2, {
allowExpressions: true,
allowTypedFunctionExpressions: true,
}],

camelcase: "off",

"@typescript-eslint/naming-convention": ["error", {
selector: "interface",
format: ["PascalCase"],
prefix: ["Interface", "TestInterface"],
}, {
AVtheking marked this conversation as resolved.
Show resolved Hide resolved
selector: ["typeAlias", "typeLike", "enum"],
format: ["PascalCase"],
}, {
selector: "typeParameter",
format: ["PascalCase"],
prefix: ["T"],
}, {
selector: "variable",
format: ["camelCase", "UPPER_CASE", "PascalCase"],
leadingUnderscore: "allow",
}, {
selector: "parameter",
format: ["camelCase"],
leadingUnderscore: "allow",
}, {
selector: "function",
format: ["camelCase", "PascalCase"],
}, {
selector: "memberLike",
modifiers: ["private"],
format: ["camelCase"],
leadingUnderscore: "require",
}, {
selector: "variable",
modifiers: ["exported"],
format: null,
}],

"react/jsx-pascal-case": ["error", {
allowAllCaps: false,
allowNamespace: false,
}],

"react/jsx-equals-spacing": ["warn", "never"],
"react/no-this-in-sfc": "error",
"jest/expect-expect": 0,

"react/no-unstable-nested-components": ["error", {
allowAsProps: true,
}],

"react/function-component-definition": [0, {
namedComponents: "function-declaration",
}],

"prettier/prettier": "error",
},
AVtheking marked this conversation as resolved.
Show resolved Hide resolved
}];
Loading
Loading