-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into 114-call-for-admissio…
…n-20242025
- Loading branch information
Showing
20 changed files
with
2,499 additions
and
796 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,49 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'plugin:@typescript-eslint/recommended-type-checked', | ||
'plugin:react-hooks/recommended', | ||
'plugin:prettier/recommended' // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime', | ||
'prettier' // this prevents conflicts between eslint and prettier (eslint-config-prettier) | ||
], | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
parser: '@typescript-eslint/parser', | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 'latest', // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module' // Allows for the use of imports | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
tsconfigRootDir: __dirname, | ||
project: true | ||
}, | ||
plugins: ['react-refresh'], | ||
plugins: ['react-refresh', 'unused-imports'], | ||
overrides: [ | ||
{ | ||
extends: ['plugin:@typescript-eslint/disable-type-checked'], | ||
files: ['./**/*.{js,cjs}'] | ||
} | ||
], | ||
rules: { | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'react-refresh/only-export-components': 'warn', | ||
'prettier/prettier': 'warn', | ||
|
||
// no unused vars/imports | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'unused-imports/no-unused-imports': 'error', | ||
'unused-imports/no-unused-vars': [ | ||
'warn', | ||
{ | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
argsIgnorePattern: '^_' | ||
} | ||
] | ||
}, | ||
settings: { | ||
react: { // eslint-plugin-react | ||
version: 'detect' | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm run lint |
Oops, something went wrong.