Skip to content

Commit

Permalink
Merge pull request #341 from senior-knights/develop
Browse files Browse the repository at this point in the history
Test if develop branch can merge into Prof.Pruim's new feature branch
  • Loading branch information
SophiaSun18 authored Nov 16, 2023
2 parents 57f9359 + caaf577 commit c21fe49
Show file tree
Hide file tree
Showing 33 changed files with 13,083 additions and 42,312 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@ jobs:
env:
working-directory: ./client-course-schedulizer
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
node-version: '14'
- name: update-npm-version
version: 8
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: update-pnpm-version
run: |
npm install -g npm@latest
- name: Install npm dependencies
pnpm install -g pnpm@latest
- name: Install pnpm dependencies
run: |
npm ci
pnpm install
working-directory: ${{env.working-directory}}
- name: Run tests
run: |
npm test
pnpm test
working-directory: ${{env.working-directory}}
92 changes: 46 additions & 46 deletions client-course-schedulizer/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module.exports = {
},
extends: [
"react-app",
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
// "airbnb",
// "plugin:@typescript-eslint/recommended",
// "plugin:react/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react",
Expand All @@ -27,12 +27,12 @@ module.exports = {
sourceType: "module",
},
plugins: [
"react",
"@typescript-eslint",
// "react",
// "@typescript-eslint",
"typescript-sort-keys",
"react-hooks",
// "react-hooks",
"sort-keys-fix",
"import",
// "import",
],
rules: {
// Disable some AirBnB rules.
Expand All @@ -44,38 +44,38 @@ module.exports = {
camelcase: "off",

// API might not have camelcase
"@typescript-eslint/camelcase": ["off"],
// "@typescript-eslint/camelcase": ["off"],

// JSX can be in either jsx or tsx files
"react/jsx-filename-extension": [1, { extensions: [".tsx", ".jsx"] }],

// Turn off rules related to Prettier. These are auto fixed.
"max-len": "off",
"@typescript-eslint/quotes": "off",
// "@typescript-eslint/quotes": "off",
"arrow-parens": "off",
"@typescript-eslint/semi": "off",
// "@typescript-eslint/semi": "off",
"react/jsx-closing-bracket-location": "off",
"@typescript-eslint/indent": "off", // Conflicts with Prettier settings
// "@typescript-eslint/indent": "off", // Conflicts with Prettier settings
// Make comma-dangle error bc it needs to be in version control
// or else it is confusing. See: https://eslint.org/docs/rules/comma-dangle
"comma-dangle": ["error", "always-multiline"],

// Don't prefer default exports
"import/no-default-export": "error",
"import/prefer-default-export": "off",

// Don't require extensions for the follow files
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"import/no-unresolved": "off",
// // Don't prefer default exports
// "import/no-default-export": "error",
// "import/prefer-default-export": "off",

// // Don't require extensions for the follow files
// "import/extensions": [
// "error",
// "ignorePackages",
// {
// js: "never",
// jsx: "never",
// ts: "never",
// tsx: "never",
// },
// ],
// "import/no-unresolved": "off",

// Rules related to function definitions
"func-style": ["error", "expression"],
Expand All @@ -89,15 +89,15 @@ module.exports = {
"sort-keys-fix/sort-keys-fix": "error",

// More typescript specific rules
"@typescript-eslint/array-type": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/type-annotation-spacing": "error",
// "@typescript-eslint/array-type": "error",
// "@typescript-eslint/explicit-module-boundary-types": "off",
// "@typescript-eslint/explicit-function-return-type": "off",
// "@typescript-eslint/no-explicit-any": "error",
// "@typescript-eslint/type-annotation-spacing": "error",

// Works with v2 typescript-eslint but not v3.
// Enforces no anti pattern with interfaces I
"@typescript-eslint/interface-name-prefix": ["error", "never"],
// "@typescript-eslint/interface-name-prefix": ["error", "never"],

// React Hooks
"react-hooks/rules-of-hooks": "error",
Expand All @@ -123,18 +123,18 @@ module.exports = {
},
settings: {
// Imports with these extensions can be resolved with relative path
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
// "import/resolver": {
// node: {
// extensions: [".js", ".jsx", ".ts", ".tsx"],
// },
// },
},
overrides: [
{
files: ["**/*.test.tsx"],
env: {
jest: true,
},
},
],
// overrides: [
// {
// files: ["**/*.test.tsx"],
// env: {
// jest: true,
// },
// },
// ],
};
Loading

0 comments on commit c21fe49

Please sign in to comment.