Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dora56 committed Dec 19, 2023
0 parents commit ea6028b
Show file tree
Hide file tree
Showing 29 changed files with 15,661 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
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"]
}
39 changes: 39 additions & 0 deletions .gitignore
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
4 changes: 4 additions & 0 deletions .husky/commit-msg
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}
4 changes: 4 additions & 0 deletions .husky/pre-commit
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
5 changes: 5 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"*.ts": "eslint --fix",
"*.json": "prettier --write",
"*.yml": "prettier --write"
}
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
7 changes: 7 additions & 0 deletions LICENSE
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.
78 changes: 78 additions & 0 deletions README.md
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
51 changes: 51 additions & 0 deletions commitlint.config.ts
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;
52 changes: 52 additions & 0 deletions crawler-config.yml
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
Loading

0 comments on commit ea6028b

Please sign in to comment.