Last active
December 2, 2024 05:08
-
-
Save seeliang/0f0de424d1cdc4541c338f4ee93b7e6a to your computer and use it in GitHub Desktop.
Revisions
-
seeliang revised this gist
Apr 9, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## [Updated on medium](https://seeliang.medium.com/how-to-update-lint-without-lint-the-whole-project-841150aa59b0) ## find out the differences use git diff to generate file list -
seeliang revised this gist
Apr 9, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ##[Updated on medium](https://seeliang.medium.com/how-to-update-lint-without-lint-the-whole-project-841150aa59b0) ## find out the differences use git diff to generate file list -
seeliang revised this gist
Nov 8, 2021 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ [Updated on medium](https://seeliang.medium.com/how-to-update-lint-without-lint-the-whole-project-841150aa59b0) ## find out the differences use git diff to generate file list `git diff --name-only master` -
seeliang revised this gist
Dec 1, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ `git diff --name-only master` ## limited to certain file types add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` @@ -47,4 +47,4 @@ will need grep fallback for empty result cases "lint:style": "stylelint --config .stylelintrc.js $(git diff --name-only --diff-filter=ACMRTUXB origin/master | grep -E \"(.js$|.ts$|.tsx$)\" || echo \".stylelintrc.js\")" ``` **NOTE: make sure our local branch is up to date (merge origin/master)** -
seeliang revised this gist
Dec 1, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -45,4 +45,6 @@ will need grep fallback for empty result cases .... "scripts": "lint:style": "stylelint --config .stylelintrc.js $(git diff --name-only --diff-filter=ACMRTUXB origin/master | grep -E \"(.js$|.ts$|.tsx$)\" || echo \".stylelintrc.js\")" ``` **NOTE: make sure our local branch is up to date (merge orgin/master)** -
seeliang revised this gist
Dec 1, 2019 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,21 @@ ## find out the differences use git diff to generate file list `git diff --name-only master` ## limited to centain file tpye add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` ## handle the case of file removal ignore deleted files `git diff --name-only --diff-filter=ACMRTUXB master | grep -E "(.js$|.ts$|.tsx$)"` ## node scripts add eslint to package.json ```json @@ -21,7 +24,9 @@ "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only --diff-filter=ACMRTUXB master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` ## CI script sample with circle ci [here](https://discuss.circleci.com/t/circleci-checkout-seems-to-do-shallow-checkout-clone/27458) ```json -
seeliang revised this gist
Dec 1, 2019 . 1 changed file with 8 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,18 @@ ## find out the differences use git diff to generate file list `git diff --name-only master` ## limited to centain file tpye add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` ## handle the case of file removal ignore deleted files `git diff --name-only --diff-filter=ACMRTUXB master | grep -E "(.js$|.ts$|.tsx$)"` ## node scripts add eslint to script package.json ```json -
seeliang revised this gist
Nov 20, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ## add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` ## ignore deleted files `git diff --name-only --diff-filter=ACMRTUXB master | grep -E "(.js$|.ts$|.tsx$)"` -
seeliang revised this gist
Nov 20, 2019 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,14 +4,18 @@ ## add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` ## ignore delected `git diff --name-only --diff-filter=ACMRTUXB master | grep -E "(.js$|.ts$|.tsx$)"` ## add eslint to script package.json ```json .... "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only --diff-filter=ACMRTUXB master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` ## for circle ci [here](https://discuss.circleci.com/t/circleci-checkout-seems-to-do-shallow-checkout-clone/27458) @@ -20,7 +24,7 @@ .... "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only --diff-filter=ACMRTUXB origin/master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` ## for stylelint @@ -31,5 +35,5 @@ will need grep fallback for empty result cases .... "scripts": "lint:style": "stylelint --config .stylelintrc.js $(git diff --name-only --diff-filter=ACMRTUXB origin/master | grep -E \"(.js$|.ts$|.tsx$)\" || echo \".stylelintrc.js\")" ``` -
seeliang revised this gist
Nov 19, 2019 . No changes.There are no files selected for viewing
-
seeliang revised this gist
Nov 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -31,5 +31,5 @@ will need grep fallback for empty result cases .... "scripts": "lint:style": "stylelint --config .stylelintrc.js $(git diff --name-only origin/master | grep -E \"(.js$|.ts$|.tsx$)\" || echo \".stylelintrc.js\")" ``` -
seeliang renamed this gist
Nov 19, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
seeliang renamed this gist
Nov 19, 2019 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ## add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` ## add eslint to script package.json ```json @@ -21,4 +21,15 @@ .... "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only origin/master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` ## for stylelint will need grep fallback for empty result cases ```json .... "scripts": "lint:style": "stylelint --config stylelint.config.js $(git diff --name-only origin/master | grep -E \"(.js$|.ts$|.tsx$)\" || echo \".stylelintrc.js\")" ``` -
seeliang revised this gist
Nov 19, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` ## for circle ci [here](https://discuss.circleci.com/t/circleci-checkout-seems-to-do-shallow-checkout-clone/27458) ```json -
seeliang revised this gist
Nov 19, 2019 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,8 @@ "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` ### circle ci [here](https://discuss.circleci.com/t/circleci-checkout-seems-to-do-shallow-checkout-clone/27458) ```json -
seeliang revised this gist
Nov 19, 2019 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,11 @@ "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` ### circle ci (here)[https://discuss.circleci.com/t/circleci-checkout-seems-to-do-shallow-checkout-clone/27458] ```json .... "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only origin/master | grep -E \"(.js$|.ts$|.tsx$)\")" ``` -
seeliang revised this gist
Nov 18, 2019 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ ## use git diff to generate file list `git diff --name-only master` ## add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` ## add to script package.json ```json -
seeliang revised this gist
Nov 18, 2019 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ ##use git diff to generate file list `git diff --name-only master` ##add ext filter `git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"` ##add to script package.json ```json -
seeliang revised this gist
Nov 18, 2019 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,9 @@ ##use git diff to lint package.json ```json .... "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only master | grep -E \"(.js$|.ts$|.tsx$)\")" -
seeliang revised this gist
Nov 18, 2019 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,9 @@ use git diff to lint ``` // package.json .... "scripts": "lint:script": "eslint -c eslintrc.js $(git diff --name-only master | grep -E \"(.js$|.ts$|.tsx$)\")" ```
-
seeliang created this gist
Nov 18, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ use git diff to lint `eslint -c eslintrc.js $(git diff --name-only master | grep -E \"(.js$|.ts$|.tsx$)\")`,