Commit 0ebcfc7
authored
fix: add missing
* fix: add missing `'use strict';` directives
`'use strict';` is 15 years old, it's time we catch up :)
Commit created via
```sh
for f in $( git ls-files | grep '.js$' ); do
grep -q 'use strict' "$f" || \
( head -n5 "$f" | grep -Eq '(im|ex)port ' ) || \
( \
(( head -n1 "$f" | grep -q '#!' ) && \
( cat "$f" | sed -e '/#!/s/$/\n'"'use strict';"'/' ) || \
( echo "'use strict';" && cat "$f" ) ) > "${f}~" && \
mv -v "${f}~" "$f" && \
rm -f "${f}~") ;
done ; npm run bootstrap && (cd packages/bson-transpilers && npm run compile)
```
* fixup: add missing use strict to create-workspace.js
* fixup: account for clashes with legacy linting rules in bson-transpilers and hadron-build'use strict'; directives (#5722)1 parent 91bd2c5 commit 0ebcfc7
File tree
262 files changed
+289
-35
lines changed- configs
- eslint-plugin-compass
- rules
- test/__fixtures__
- mocha-config-compass
- register
- prettier-config-compass
- webpack-config-compass
- bin
- packages
- atlas-service
- bson-transpilers
- codegeneration
- csharp
- go
- javascript
- java
- object
- php
- python
- ruby
- rust
- shell
- helper
- printers
- test
- collection-model
- lib
- test
- compass-aggregations
- compass-app-stores
- compass-collection
- compass-components
- compass-connection-import-export
- compass-connections
- compass-crud
- compass-e2e-tests
- compass-editor
- compass-explain-plan
- compass-export-to-language
- compass-field-store
- compass-find-in-page
- compass-generative-ai
- compass-import-export
- compass-indexes
- src/modules
- compass-intercom
- compass-logging
- compass-maybe-protect-connection-string
- compass-preferences-model
- compass-query-bar
- compass-saved-aggregations-queries
- compass-schema-validation
- compass-schema
- src
- components/coordinates-minichart
- modules
- compass-serverstats
- src
- actions
- d3
- stores
- test/enzyme
- compass-settings
- compass-shell
- compass-sidebar
- compass-test-server
- compass-user-data
- compass-utils
- compass-web
- scripts
- compass-welcome
- compass-workspaces
- compass
- scripts
- src/app
- connection-form
- connection-info
- connection-storage
- data-service
- database-model
- lib
- test
- databases-collections-list
- databases-collections
- src/constants
- explain-plan-helper
- hadron-app-registry
- hadron-build
- commands
- lib
- signtool
- test
- fixtures/hadron-app
- src/internal-plugins
- test
- enzyme
- functional
- main
- renderer
- unit
- hadron-document
- hadron-ipc
- hadron-type-checker
- src
- instance-model
- lib
- test
- mongodb-query-util
- my-queries-storage
- ssh-tunnel
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
262 files changed
+289
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments