-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74fb3cb
commit cf7748a
Showing
35 changed files
with
6,789 additions
and
7,094 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"npm", | ||
{ | ||
"setRcToken": false | ||
} | ||
], | ||
"./format-before-commit.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Semgrep | |
|
||
on: | ||
pull_request: | ||
branches: ["master"] | ||
branches: ['master'] | ||
|
||
permissions: | ||
actions: read | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx}": [ | ||
"prettier --write" | ||
], | ||
"*.md": [ | ||
"prettier --write --parser markdown", | ||
"git add" | ||
], | ||
"*.json": [ | ||
"prettier --write --parser json", | ||
"node", | ||
"git add" | ||
] | ||
"*.{js,jsx,ts,tsx}": ["prettier --write"], | ||
"*.md": ["prettier --write --parser markdown", "git add"], | ||
"*.json": ["prettier --write --parser json", "node", "git add"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.5.1 | ||
v20.17.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
node_modules | ||
lerna.json | ||
package.json | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,15 +69,15 @@ | |
|
||
- `@salutejs/[email protected]` | ||
- feat(eslint-config): add new rule prefer-lazy-state-initialization [#35](https://github.com/salute-developers/grail/pull/35) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat: custom rule no redundant commit [#25](https://github.com/salute-developers/grail/pull/25) ([@KateKate](https://github.com/KateKate) [@SeanSilke](https://github.com/SeanSilke)) | ||
|
||
#### 🐛 Bug Fix | ||
|
||
- fix: update auto [#36](https://github.com/salute-developers/grail/pull/36) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- `@salutejs/[email protected]` | ||
- fix(eslint-config): disabled jsx-no-leaked-render [#34](https://github.com/salute-developers/grail/pull/34) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): changed the autofix option for jsx-no-leaked-render [#30](https://github.com/salute-developers/grail/pull/30) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): fixed typo and replaced link with shorter one [#28](https://github.com/salute-developers/grail/pull/28) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- ci: add prettierc.js, fix package-lock [#26](https://github.com/salute-developers/grail/pull/26) ([@KateKate](https://github.com/KateKate)) | ||
|
@@ -100,14 +100,14 @@ | |
#### 🚀 Enhancement | ||
|
||
- `@salutejs/[email protected]` | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat: custom rule no redundant commit [#25](https://github.com/salute-developers/grail/pull/25) ([@KateKate](https://github.com/KateKate) [@SeanSilke](https://github.com/SeanSilke)) | ||
|
||
#### 🐛 Bug Fix | ||
|
||
- `@salutejs/[email protected]` | ||
- fix(eslint-config): disabled jsx-no-leaked-render [#34](https://github.com/salute-developers/grail/pull/34) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): changed the autofix option for jsx-no-leaked-render [#30](https://github.com/salute-developers/grail/pull/30) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): fixed typo and replaced link with shorter one [#28](https://github.com/salute-developers/grail/pull/28) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- ci: add prettierc.js, fix package-lock [#26](https://github.com/salute-developers/grail/pull/26) ([@KateKate](https://github.com/KateKate)) | ||
|
@@ -130,15 +130,15 @@ | |
#### 🚀 Enhancement | ||
|
||
- `@salutejs/[email protected]` | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat: custom rule no redundant commit [#25](https://github.com/salute-developers/grail/pull/25) ([@KateKate](https://github.com/KateKate) [@SeanSilke](https://github.com/SeanSilke)) | ||
|
||
#### 🐛 Bug Fix | ||
|
||
- `@salutejs/[email protected]` | ||
- fix: removed legacy-peer-deps [#33](https://github.com/salute-developers/grail/pull/33) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- `@salutejs/[email protected]` | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): changed the autofix option for jsx-no-leaked-render [#30](https://github.com/salute-developers/grail/pull/30) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): fixed typo and replaced link with shorter one [#28](https://github.com/salute-developers/grail/pull/28) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- ci: add prettierc.js, fix package-lock [#26](https://github.com/salute-developers/grail/pull/26) ([@KateKate](https://github.com/KateKate)) | ||
|
@@ -159,13 +159,13 @@ | |
#### 🚀 Enhancement | ||
|
||
- `@salutejs/[email protected]` | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat: custom rule no redundant commit [#25](https://github.com/salute-developers/grail/pull/25) ([@KateKate](https://github.com/KateKate) [@SeanSilke](https://github.com/SeanSilke)) | ||
|
||
#### 🐛 Bug Fix | ||
|
||
- `@salutejs/[email protected]` | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): add nesting awareness for no-redundant-commit rule [#31](https://github.com/salute-developers/grail/pull/31) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): changed the autofix option for jsx-no-leaked-render [#30](https://github.com/salute-developers/grail/pull/30) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- fix(eslint-config): fixed typo and replaced link with shorter one [#28](https://github.com/salute-developers/grail/pull/28) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- ci: add prettierc.js, fix package-lock [#26](https://github.com/salute-developers/grail/pull/26) ([@KateKate](https://github.com/KateKate)) | ||
|
@@ -186,7 +186,7 @@ | |
#### 🚀 Enhancement | ||
|
||
- `@salutejs/[email protected]` | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat: custom rule no redundant commit [#25](https://github.com/salute-developers/grail/pull/25) ([@KateKate](https://github.com/KateKate) [@SeanSilke](https://github.com/SeanSilke)) | ||
|
||
#### 🐛 Bug Fix | ||
|
@@ -212,7 +212,7 @@ | |
#### 🚀 Enhancement | ||
|
||
- `@salutejs/[email protected]` | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat(eslint-config): added `Do not memoize primitives` as a full-fledged rule [#29](https://github.com/salute-developers/grail/pull/29) ([@SeanSilke](https://github.com/SeanSilke)) | ||
- feat: custom rule no redundant commit [#25](https://github.com/salute-developers/grail/pull/25) ([@KateKate](https://github.com/KateKate) [@SeanSilke](https://github.com/SeanSilke)) | ||
|
||
#### 🐛 Bug Fix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module.exports = class TestPlugin { | ||
constructor() { | ||
this.name = 'format-before-commit'; | ||
} | ||
|
||
/** | ||
* Tap into auto plugin points. | ||
* @param {import('@auto-it/core').default} auto | ||
*/ | ||
apply(auto) { | ||
auto.hooks.beforeCommitChangelog.tapAsync('FormatBeforeCommit', async () => { | ||
const { exec } = require('child_process'); | ||
const { promisify } = require('util'); | ||
|
||
const execAsync = promisify(exec); | ||
|
||
const { stderr, stdout } = await execAsync('npm run fmt'); | ||
|
||
if (stderr) { | ||
console.error(stderr); | ||
process.exit(1); | ||
} | ||
|
||
if (stdout) { | ||
console.log(stdout); | ||
} | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
{ | ||
"$schema": "./node_modules/lerna/schemas/lerna-schema.json", | ||
"version": "independent", | ||
"ignoreChanges": ["*.md"], | ||
"loglevel": "verbose", | ||
"exact": true, | ||
"ci": true, | ||
"command": { | ||
"bootstrap": { | ||
"npmClientArgs": [ | ||
"--no-audit", | ||
"--no-optional", | ||
"--loglevel error", | ||
"--no-progress", | ||
"--unsafe-perm", | ||
"--prefer-offline" | ||
] | ||
}, | ||
"publish": { | ||
"verifyAccess": false | ||
} | ||
} | ||
"packages": ["packages/*"] | ||
} |
Oops, something went wrong.