Skip to content

Commit 018bc6c

Browse files
CLI-31 Add license headers
1 parent 7fd2a1c commit 018bc6c

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Lesser General Public License for more details.
1414

1515
You should have received a copy of the GNU Lesser General Public License
1616
along with this program; if not, write to the Free Software Foundation,
17-
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17+
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

eslint.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
// @ts-check
22
import tseslint from 'typescript-eslint';
33
import prettierConfig from 'eslint-config-prettier';
4+
import headersPlugin from 'eslint-plugin-headers';
45

56
export default tseslint.config(
67
// Global ignores
78
{
89
ignores: ['dist/**', 'node_modules/**', 'coverage/**', 'scripts/**', 'plop-templates/**'],
910
},
1011

12+
// License header enforcement
13+
{
14+
files: ['src/**/*.ts'],
15+
plugins: { headers: headersPlugin },
16+
rules: {
17+
'headers/header-format': ['error', {
18+
source: 'file',
19+
path: 'LICENSE',
20+
blockPrefix: '\n'
21+
}],
22+
},
23+
},
1124
// Base TypeScript config for source files
1225
{
1326
files: ['src/**/*.ts'],

package-lock.json

Lines changed: 15 additions & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
"ajv": "^8.18.0",
6060
"eslint": "^10.0.2",
6161
"eslint-config-prettier": "^10.1.8",
62+
"eslint-plugin-headers": "^1.3.4",
63+
"husky": "9.1.7",
6264
"js-yaml": "^4.1.1",
6365
"plop": "^4.0.5",
6466
"prettier": "^3.8.1",

0 commit comments

Comments
 (0)