mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
SEL-473: Add lint rule for BUSL headers (#698)
* chore(app): enforce license header via eslint * update lock and order * fix formatting
This commit is contained in:
@@ -5,12 +5,17 @@ module.exports = {
|
||||
'plugin:prettier/recommended',
|
||||
'plugin:jest/recommended',
|
||||
],
|
||||
plugins: ['simple-import-sort', 'prettier', 'jest'],
|
||||
plugins: ['header', 'jest', 'prettier', 'simple-import-sort'],
|
||||
ignorePatterns: ['ios/', 'android/', 'deployments/', 'node_modules/'],
|
||||
rules: {
|
||||
// Import sorting rules
|
||||
'simple-import-sort/imports': 'warn',
|
||||
'simple-import-sort/exports': 'warn',
|
||||
'header/header': [
|
||||
2,
|
||||
'line',
|
||||
' SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11',
|
||||
],
|
||||
|
||||
// Add prettier rule to show prettier errors as ESLint errors
|
||||
'prettier/prettier': [
|
||||
|
||||
@@ -1811,9 +1811,9 @@ PODS:
|
||||
- segment-analytics-react-native (2.21.1):
|
||||
- React-Core
|
||||
- sovran-react-native
|
||||
- Sentry (8.52.1):
|
||||
- Sentry/Core (= 8.52.1)
|
||||
- Sentry/Core (8.52.1)
|
||||
- Sentry (8.53.1):
|
||||
- Sentry/Core (= 8.53.1)
|
||||
- Sentry/Core (8.53.1)
|
||||
- Sentry/HybridSDK (8.48.0)
|
||||
- SentryPrivate (8.21.0)
|
||||
- SocketRocket (0.7.0)
|
||||
|
||||
@@ -139,6 +139,7 @@
|
||||
"@types/react-test-renderer": "^18",
|
||||
"eslint": "^8.19.0",
|
||||
"eslint-config-prettier": "^10.1.2",
|
||||
"eslint-plugin-header": "^3.1.1",
|
||||
"eslint-plugin-jest": "^28.11.1",
|
||||
"eslint-plugin-prettier": "^5.2.6",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
||||
|
||||
Reference in New Issue
Block a user