Skip to content

Commit 2407ddb

Browse files
authored
Add note about disabling js package ownership (#78)
1 parent d06c919 commit 2407ddb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ js_package_paths:
7373

7474
This defaults `**/`, which makes it look for `package.json` files across your application.
7575

76+
> [!NOTE]
77+
> Javscript package ownership does not respect `unowned_globs`. If you wish to disable usage of this feature you can set `js_package_paths` to an empty list.
78+
```yml
79+
js_package_paths: []
80+
```
81+
7682
### Custom Ownership
7783
To enable custom ownership, you can inject your own custom classes into `code_ownership`.
7884
To do this, first create a class that adheres to the `CodeOwnership::Mapper` and/or `CodeOwnership::Validator` interface.
@@ -155,7 +161,7 @@ unowned_globs:
155161
- app/services/some_file2.rb
156162
- frontend/javascripts/**/__generated__/**/*
157163
```
158-
You can call the validation function with the Ruby API
164+
You can call the validation function with the Ruby API
159165
```ruby
160166
CodeOwnership.validate!
161167
```

0 commit comments

Comments
 (0)