summaryrefslogtreecommitdiff
path: root/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js
index ae924cc7..a846d22d 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -12,6 +12,7 @@ import reactHooks from 'eslint-plugin-react-hooks';
import prettierConfig from 'eslint-config-prettier';
import importPlugin from 'eslint-plugin-import';
import globals from 'globals';
+import licenseHeader from 'eslint-plugin-license-header';
export default tseslint.config(
{
@@ -142,6 +143,24 @@ export default tseslint.config(
'default-case': 'error',
},
},
+ {
+ files: ['./**/*.{tsx,ts,js}'],
+ plugins: {
+ 'license-header': licenseHeader,
+ },
+ rules: {
+ 'license-header/header': [
+ 'error',
+ [
+ '/**',
+ ' * @license',
+ ' * Copyright 2025 Google LLC',
+ ' * SPDX-License-Identifier: Apache-2.0',
+ ' */',
+ ],
+ ],
+ },
+ },
// Prettier config must be last
prettierConfig,
);