Skip to content

Commit da7d2d8

Browse files
authoredJan 15, 2021
Test server v2 using a simplified api optimized for a mock api (#251)
1 parent 84ab536 commit da7d2d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1993
-297
lines changed
 

‎.azure-pipelines/ci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Autorest Testserver CI
2+
trigger: none
3+
pr:
4+
- master
5+
6+
pool:
7+
vmImage: "ubuntu-latest"
8+
9+
jobs:
10+
- job: main
11+
displayName: "Build and test"
12+
steps:
13+
- task: NodeTool@0
14+
inputs:
15+
versionSpec: "14.x"
16+
displayName: "Install Node.js"
17+
18+
- script: |
19+
npm install -g npm
20+
npm install
21+
displayName: "Install dependencies"
22+
23+
- script: |
24+
npm run build
25+
displayName: "Build"
26+
27+
- script: npm run test:ci
28+
displayName: Test
29+
30+
- script: npm run lint
31+
displayName: Lint

‎.eslintrc.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
root: true
2+
plugins:
3+
- "@typescript-eslint"
4+
- prettier
5+
- import
6+
- unicorn
7+
env:
8+
browser: true
9+
es6: true
10+
node: true
11+
extends:
12+
- eslint:recommended
13+
- plugin:@typescript-eslint/recommended
14+
rules:
15+
no-console: warn
16+
17+
"@typescript-eslint/no-empty-interface": off
18+
"@typescript-eslint/no-unused-vars": off
19+
import/no-default-export: warn
20+
import/no-self-import: warn # This cause many circular dependency issues with index files.
21+
import/no-internal-modules: off
22+
import/order:
23+
- warn
24+
- groups: ["builtin", "external", "parent", "sibling", "index"]
25+
alphabetize:
26+
order: "asc"
27+
caseInsensitive: true
28+
unicorn/filename-case: warn
29+
prettier/prettier: warn
30+
parser: "@typescript-eslint/parser"

0 commit comments

Comments
 (0)
Please sign in to comment.