-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial packages v0.0.1-alpha.12
- Loading branch information
0 parents
commit 1dd9eca
Showing
87 changed files
with
18,047 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,12 @@ | ||
coverage: | ||
status: | ||
patch: | ||
default: | ||
target: 90% | ||
project: | ||
default: | ||
target: auto | ||
threshold: 2% | ||
comment: | ||
layout: diff, flags, files | ||
require_changes: true |
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,10 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
quote_type = single |
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 @@ | ||
* text=auto | ||
*.js eol=lf | ||
*.ts eol=lf | ||
*.tsx eol=lf | ||
*.yml eol=lf |
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,110 @@ | ||
# Created by https://www.gitignore.io/api/node,visualstudiocode | ||
# Edit at https://www.gitignore.io/?templates=node,visualstudiocode | ||
|
||
### Node ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
|
||
# End of https://www.gitignore.io/api/node,visualstudiocode | ||
|
||
# microbundle | ||
dist | ||
.DS_Store | ||
.rpt2_cache | ||
.rts2_cache_cjs | ||
.rts2_cache_es | ||
.rts2_cache_umd | ||
.rts2* |
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 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "yarn pre-commit", | ||
"pre-push": "yarn pre-push", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"*.{ts,js,json,md}": [ | ||
"prettier --write", | ||
"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 |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
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 @@ | ||
**/dist | ||
**/coverage | ||
**/.vscode | ||
**/.nyc_output | ||
**/.github | ||
|
||
tools/scripts/assets/patched-microbundle.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 James Henry | ||
|
||
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,3 @@ | ||
# Angular ESLint | ||
|
||
Not yet ready for use, but lots of info coming soon! |
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,88 @@ | ||
trigger: | ||
- master | ||
|
||
jobs: | ||
- job: primary_code_validation_and_tests | ||
displayName: Primary code validation and tests | ||
pool: | ||
vmImage: 'Ubuntu-16.04' | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: 12 | ||
displayName: 'Install Node.js 12' | ||
|
||
- script: | | ||
# This also runs a build as part of the postinstall | ||
# bootstrap | ||
yarn --ignore-engines --frozen-lockfile | ||
- script: | | ||
# Note that this command *also* typechecks tests/tools, | ||
# whereas the build only checks src files | ||
yarn typecheck | ||
displayName: 'Typecheck all packages' | ||
- script: | | ||
yarn format-check | ||
displayName: 'Check code formatting' | ||
- script: | | ||
yarn test | ||
displayName: 'Run unit tests' | ||
- script: | | ||
npx codecov -t $(CODECOV_TOKEN) | ||
displayName: 'Publish code coverage report' | ||
- job: unit_tests_on_other_node_versions | ||
displayName: Run unit tests on other Node.js versions | ||
pool: | ||
vmImage: 'Ubuntu-16.04' | ||
strategy: | ||
maxParallel: 3 | ||
matrix: | ||
node_10_x: | ||
node_version: 10.x | ||
node_8_x: | ||
node_version: 8.x | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(node_version) | ||
displayName: 'Install Node.js $(node_version)' | ||
|
||
- script: | | ||
# This also runs a build as part of the postinstall | ||
# bootstrap | ||
yarn --ignore-engines --frozen-lockfile | ||
- script: | | ||
yarn test | ||
displayName: 'Run unit tests' | ||
# - job: publish_canary_version | ||
# displayName: Publish the latest code as a canary version | ||
# dependsOn: | ||
# - primary_code_validation_and_tests | ||
# - unit_tests_on_other_node_versions | ||
# condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'), ne(variables['Build.Reason'], 'PullRequest')) | ||
# pool: | ||
# vmImage: 'Ubuntu-16.04' | ||
# steps: | ||
# - task: NodeTool@0 | ||
# inputs: | ||
# versionSpec: 12 | ||
# displayName: 'Install Node.js 12' | ||
|
||
# - script: | | ||
# # This also runs a build as part of the postinstall | ||
# # bootstrap | ||
# yarn --ignore-engines --frozen-lockfile | ||
|
||
# - script: | | ||
# npm config set //registry.npmjs.org/:_authToken=$(NPM_TOKEN) | ||
|
||
# - script: | | ||
# npx lerna publish --canary --exact --force-publish --yes | ||
# displayName: 'Publish all packages to npm' |
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,6 @@ | ||
{ | ||
"version": "0.0.1-alpha.12", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"stream": true | ||
} |
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,59 @@ | ||
{ | ||
"name": "@angular-eslint/angular-eslint", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"contributors": [ | ||
"James Henry <angular-eslint@jameshenry.email>" | ||
], | ||
"license": "MIT", | ||
"repository": "angular-eslint/angular-eslint", | ||
"bugs": { | ||
"url": "https://github.com/angular-eslint/angular-eslint/issues" | ||
}, | ||
"scripts": { | ||
"build": "lerna run build", | ||
"test": "lerna run test --parallel", | ||
"check-clean-workspace-after-install": "git diff --quiet --exit-code", | ||
"clean": "lerna clean && lerna run clean", | ||
"cz": "git-cz", | ||
"postinstall": "node ./tools/scripts/apply-patched-microbundle.js && lerna bootstrap && yarn build && lerna link && npm run check-clean-workspace-after-install", | ||
"pre-commit": "yarn lint-staged", | ||
"pre-push": "yarn format-check", | ||
"format": "prettier --write \"./**/*.{ts,js,json,md}\"", | ||
"format-check": "prettier --list-different \"./**/*.{ts,js,json,md}\"", | ||
"typecheck": "lerna run typecheck" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "^0.800.0", | ||
"@angular/compiler": "^8.0.2", | ||
"@commitlint/cli": "^8.1.0", | ||
"@commitlint/config-conventional": "^8.1.0", | ||
"@types/eslint": "^4.16.6", | ||
"@types/jest": "^24.0.13", | ||
"@types/json-schema": "^7.0.3", | ||
"@types/node": "^10.12.2", | ||
"@typescript-eslint/parser": "2.0.0-alpha.4", | ||
"eslint": "^6.1.0", | ||
"husky": "^3.0.0", | ||
"jest": "^24.8.0", | ||
"lerna": "^3.14.1", | ||
"lint-staged": "^9.2.0", | ||
"microbundle": "0.11.0", | ||
"prettier": "^1.17.1", | ||
"terser": "^4.0.0", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "~3.5.3" | ||
} | ||
} |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 James Henry | ||
|
||
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 @@ | ||
# @angular-eslint/builder |
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,9 @@ | ||
{ | ||
"builders": { | ||
"lint": { | ||
"implementation": "./dist", | ||
"schema": "./dist/schema.json", | ||
"description": "Run ESLint over a TypeScript project" | ||
} | ||
} | ||
} |
Oops, something went wrong.