Skip to content

Commit 66b5a6e

Browse files
committed
Update dependencies to fix known security vulnerabilities
* This quickly snowballs to updating the React version as some of the dependant libraries (like react-tag-input) only support the latest one. * The other major chunk of vulnerabilities was in webpack. * Tests were migrated from Enzyme to React Testing Library beforehand
1 parent 6313fa0 commit 66b5a6e

File tree

7 files changed

+19584
-36696
lines changed

7 files changed

+19584
-36696
lines changed

eslint.config.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import js from '@eslint/js';
2+
import typescript from '@typescript-eslint/eslint-plugin';
3+
import typescriptParser from '@typescript-eslint/parser';
4+
import react from 'eslint-plugin-react';
5+
6+
export default [
7+
js.configs.recommended,
8+
{
9+
files: ['src/**/*.{js,jsx,ts,tsx}'],
10+
languageOptions: {
11+
parser: typescriptParser,
12+
parserOptions: {
13+
ecmaVersion: 2020,
14+
sourceType: 'module',
15+
ecmaFeatures: {
16+
jsx: true,
17+
},
18+
},
19+
globals: {
20+
browser: true,
21+
jest: true,
22+
},
23+
},
24+
plugins: {
25+
'@typescript-eslint': typescript,
26+
react: react,
27+
},
28+
settings: {
29+
react: {
30+
version: 'detect',
31+
},
32+
},
33+
rules: {
34+
...typescript.configs.recommended.rules,
35+
...react.configs.recommended.rules,
36+
'@typescript-eslint/no-empty-function': 'off',
37+
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
38+
'@typescript-eslint/space-before-function-paren': ['error', {
39+
anonymous: 'always',
40+
asyncArrow: 'always',
41+
named: 'never',
42+
}],
43+
'@typescript-eslint/no-explicit-any': 'off',
44+
'@typescript-eslint/explicit-module-boundary-types': 'off',
45+
'@typescript-eslint/no-var-requires': 'off',
46+
},
47+
},
48+
];

0 commit comments

Comments
 (0)