Skip to content

Commit 629f33e

Browse files
committed
chore: apply license and security updates
1 parent 22e6a73 commit 629f33e

24 files changed

Lines changed: 198 additions & 163 deletions

eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import reactPlugin from 'eslint-plugin-react';
44
import reactHooks from 'eslint-plugin-react-hooks';
55
import reactRefresh from 'eslint-plugin-react-refresh';
66
import prettier from 'eslint-config-prettier';
7+
import licenseHeader from 'eslint-plugin-license-header';
78

89
export default [
910
js.configs.recommended,
@@ -24,6 +25,7 @@ export default [
2425
react: reactPlugin,
2526
'react-hooks': reactHooks,
2627
'react-refresh': reactRefresh,
28+
'license-header': licenseHeader,
2729
},
2830
settings: {
2931
react: { version: 'detect' },
@@ -34,6 +36,8 @@ export default [
3436
'react-hooks/rules-of-hooks': 'error',
3537
'react-hooks/exhaustive-deps': 'warn',
3638
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
39+
40+
'license-header/header': ['error', './resources/license-header.js'],
3741
},
3842
},
3943
{

package-lock.json

Lines changed: 67 additions & 162 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@rollup/plugin-alias": "^5.1.1",
6161
"@rollup/plugin-commonjs": "^26.0.1",
6262
"@rollup/plugin-node-resolve": "^15.2.3",
63-
"@rollup/plugin-terser": "^0.4.4",
63+
"@rollup/plugin-terser": "^1.0.0",
6464
"@rollup/plugin-typescript": "^11.1.6",
6565
"@testing-library/jest-dom": "^6.9.1",
6666
"@testing-library/react": "^16.3.0",
@@ -90,6 +90,7 @@
9090
},
9191
"dependencies": {
9292
"@simplewebauthn/browser": "^13.1.0",
93+
"eslint-plugin-license-header": "^0.9.0",
9394
"libphonenumber-js": "^1.12.7",
9495
"ts-node": "^10.9.2"
9596
},

resources/license-header.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/

src/AuthProvider.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { InternalAuthProvider } from '@/context/InternalAuthContext';
28
import React, {
39
createContext,

src/AuthRoutes.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { Navigate, Route, Routes } from 'react-router-dom';
28

39
import Login from '@/views/Login';

src/components/AuthFallbackOptions.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import React from 'react';
28
import { isValidEmail, isValidPhoneNumber } from '../utils';
39

src/components/DeviceNameModal.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import React, { useState } from 'react';
28
import styles from '@/styles/deviceNameModal.module.css';
39

src/components/MagicLinkSent.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import React, { useEffect, useState } from 'react';
28
import { useAuth } from '@/AuthProvider';
39
import { useInternalAuth } from '@/context/InternalAuthContext';

src/components/OtpInput.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import React, { useRef } from 'react';
28
import styles from '@/styles/otpInput.module.css';
39

0 commit comments

Comments
 (0)