-
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
0 parents
commit ea6028b
Showing
29 changed files
with
15,661 additions
and
0 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,23 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"standard-with-typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"@typescript-eslint/semi": ["error", "always"], | ||
"@typescript-eslint/no-extra-semi": "error", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/consistent-type-definitions": "off" | ||
}, | ||
"ignorePatterns": ["lib/**/*", "dict"] | ||
} |
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,39 @@ | ||
### https://raw.github.com/github/gitignore/608690d6b9a78c2a003affc792e49a84905b3118/Node.gitignore | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- | ||
node_modules | ||
|
||
# Debug log from npm | ||
npm-debug.log | ||
|
||
# Publish src/ instead lib/ | ||
/lib | ||
|
||
# VSCode | ||
.vscode/settings.json | ||
.vscode/launch.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx commitlint --edit ${1} |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,5 @@ | ||
{ | ||
"*.ts": "eslint --fix", | ||
"*.json": "prettier --write", | ||
"*.yml": "prettier --write" | ||
} |
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,5 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
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,7 @@ | ||
Copyright (c) 2023-present dora56 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,78 @@ | ||
# textlint-rule-azure-product-name [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) | ||
|
||
> [!IMPORTANT] | ||
> This rule is not an official rule of Microsoft. | ||
[textlint](https://textlint.github.io/ "textlint official site") rule for [Azure product names](https://azure.microsoft.com/en-us/products/). | ||
|
||
This rule inspired by [textlint-rule-aws-service-name](https://github.com/bun913/textlint-rule-aws-service-name). | ||
|
||
## Features | ||
|
||
- Check Azure product names | ||
- For examples: | ||
- `Azure Active Directory` -> `Azure Entra ID` | ||
- `Microsoft AI Studio` -> `Microsoft AI Studio` | ||
- `AIStudio` -> `AI Studio` | ||
|
||
## Install | ||
|
||
Install with [npm](https://www.npmjs.com/): | ||
|
||
```bash | ||
npm install textlint-rule-azure-product-name | ||
``` | ||
|
||
## Usage | ||
|
||
Via `.textlintrc.json`(Recommended) | ||
|
||
```json | ||
{ | ||
"rules": { | ||
"azure-product-name": true | ||
} | ||
} | ||
``` | ||
|
||
Via CLI | ||
|
||
```bash | ||
textlint --rule azure-product-name README.md | ||
``` | ||
|
||
### Build | ||
|
||
Builds source codes for publish to the `lib` folder. | ||
You can write ES2015+ source codes in `src/` folder. | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
### Tests | ||
|
||
Run test code in `test` folder. | ||
Test textlint rule by [textlint-tester](https://github.com/textlint/textlint-tester). | ||
|
||
```bash | ||
npm test | ||
``` | ||
|
||
You can also test each test file by running the following. | ||
|
||
```bash | ||
# Run only the test files under specs/. | ||
npm run test:jest | ||
# or npm run jest | ||
``` | ||
|
||
```bash | ||
# run only test files under test/. | ||
npm run test:lint | ||
# or npm run testLint | ||
``` | ||
|
||
## License | ||
|
||
MIT © dora56 |
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,51 @@ | ||
import type {UserConfig} from '@commitlint/types'; | ||
|
||
const Configuration: UserConfig = { | ||
/* | ||
* Resolve and load @commitlint/config-conventional from node_modules. | ||
* Referenced packages must be installed | ||
*/ | ||
extends: ['@commitlint/config-conventional'], | ||
/* | ||
* Resolve and load conventional-changelog-atom from node_modules. | ||
* Referenced packages must be installed | ||
*/ | ||
// parserPreset: 'conventional-changelog-atom', | ||
/* | ||
* Resolve and load @commitlint/format from node_modules. | ||
* Referenced package must be installed | ||
*/ | ||
formatter: '@commitlint/format', | ||
/* | ||
* Any rules defined here will override rules from @commitlint/config-conventional | ||
*/ | ||
// rules: { | ||
// 'type-enum': [RuleConfigSeverity.Error, 'always', ['foo']], | ||
// }, | ||
/* | ||
* Functions that return true if commitlint should ignore the given message. | ||
*/ | ||
ignores: [(message) => message.includes('chore: release ')], | ||
/* | ||
* Whether commitlint uses the default ignore rules. | ||
*/ | ||
defaultIgnores: true, | ||
/* | ||
* Custom URL to show upon failure | ||
*/ | ||
helpUrl: | ||
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint', | ||
/* | ||
* Custom prompt configs | ||
*/ | ||
// prompt: { | ||
// messages: {}, | ||
// questions: { | ||
// type: { | ||
// description: 'please input type:', | ||
// }, | ||
// }, | ||
// }, | ||
}; | ||
|
||
module.exports = Configuration; |
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,52 @@ | ||
excludes: | ||
- Speech to text | ||
- Text to speech | ||
- Speech translation | ||
- Batch | ||
- Linux Virtual Machines | ||
- SDKs | ||
- Content Protection | ||
- Encoding | ||
- Live and On-Demand Streaming | ||
- Storage Accounts | ||
- Maps | ||
# Azure AD name changes are handled manually and should be removed from the list. | ||
- Microsoft Entra ID (formerly Azure AD) | ||
exchanges: | ||
- from: App Center | ||
to: Visual Studio App Center | ||
- from: Speaker recognition | ||
to: Azure AI Speech Services | ||
- from: Update management center | ||
to: Azure Update Manager | ||
- from: Content Delivery Network | ||
to: Azure CDN | ||
addAzurePrefix: | ||
- Health Bot | ||
- Data Catalog | ||
- Data Lake Analytics | ||
- Event Hubs | ||
- HDInsight | ||
- App Configuration | ||
- API Management | ||
- App Service | ||
- Service Bus | ||
- Logic Apps | ||
- Notification Hubs | ||
- Automation | ||
- Cloud Shell | ||
- Network Watcher | ||
- Traffic Manager | ||
- Media Services | ||
- Remote Rendering | ||
- Spatial Anchors | ||
- Object Anchors | ||
- Load Balancer | ||
- Virtual Network | ||
- VPN Gateway | ||
- Application Gateway | ||
- Key Vault | ||
- Archive Storage | ||
- Storage Explorer | ||
- Queue Storage | ||
- Table Storage |
Oops, something went wrong.