2017-01-25 06:04:30 -05:00
|
|
|
{
|
|
|
|
"name": "angular.io",
|
|
|
|
"version": "0.0.0",
|
2017-01-25 12:39:01 -05:00
|
|
|
"main": "index.js",
|
|
|
|
"repository": "git@github.com:angular/angular.git",
|
|
|
|
"author": "Angular",
|
2017-01-25 06:04:30 -05:00
|
|
|
"license": "MIT",
|
2017-01-27 03:20:51 -05:00
|
|
|
"scripts": {
|
2018-11-23 14:03:21 -05:00
|
|
|
"postinstall": "node tools/cli-patches/patch.js",
|
2019-08-03 11:14:40 -04:00
|
|
|
"aio-use-local": "node tools/ng-packages-installer overwrite . --debug --force --build-packages",
|
2017-10-24 06:43:52 -04:00
|
|
|
"aio-use-npm": "node tools/ng-packages-installer restore .",
|
2017-10-06 08:37:56 -04:00
|
|
|
"aio-check-local": "node tools/ng-packages-installer check .",
|
2017-03-03 06:18:15 -05:00
|
|
|
"ng": "yarn check-env && ng",
|
2021-06-11 07:39:29 -04:00
|
|
|
"start": "yarn check-env && ng serve",
|
2019-01-09 07:52:26 -05:00
|
|
|
"prebuild": "yarn setup",
|
|
|
|
"build": "yarn ~~build",
|
2017-08-15 20:34:53 -04:00
|
|
|
"prebuild-local": "yarn setup-local",
|
2019-01-09 07:52:26 -05:00
|
|
|
"build-local": "yarn ~~build",
|
build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)
The `setup-local` scripts (and others that are based on it, such as
`setup-local-viewengine`), mainly does two things: Replace the Angular
packages with the locally built ones for `aio/` and the docs examples
(`aio/tools/examples/shared/`). It does this by calling two other npm
scripts: `aio-use-local` and `example-use-local` respectively.
For these scripts to work, the local Angular packages must be already
built (via `scripts/build-packages-dist.sh`). In order to make it easier
for people to test against local packages, the scripts support a
`--build-packages` option, that (if passed) will result in building the
local packages as well.
Given that the same local packages are used for both `aio/` and the
examples, we only need to build the packages once. Also, to speed up
execution on CI, we do not need to build the packages there, because the
packages would have been built already in a previous CI job.
However, the various setup npm scripts were not implemented correctly to
meet these requirements. Specifically, when running locally,
`aio-use-local` would build the packages, while `example-use-local`
would not (it was supposed to use the already built packages from
`aio-use-local`). The `example-use-local` script, though, was configured
to run before `aio-use-local`. As a result, the packages were not built,
by the time `example-use-local` needed them, which would cause an error.
This commit fixes it by ensuring that `aio-use-local` (which builds the
local Angular packages) runs before `example-use-local`, so that the
latter can use the same packages already built by the former.
PR Close #33206
2019-10-16 16:15:40 -04:00
|
|
|
"prebuild-local-ci": "yarn setup-local-ci",
|
2019-08-03 11:14:40 -04:00
|
|
|
"build-local-ci": "yarn ~~build --progress=false",
|
2021-07-31 04:46:31 -04:00
|
|
|
"extract-cli-command-docs": "node tools/transforms/cli-docs-package/extract-cli-commands.js 129d45cfa",
|
2018-01-25 05:13:30 -05:00
|
|
|
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint",
|
2017-04-21 15:20:02 -04:00
|
|
|
"test": "yarn check-env && ng test",
|
2018-02-27 18:24:07 -05:00
|
|
|
"pree2e": "yarn check-env && yarn update-webdriver",
|
2017-06-14 11:34:13 -04:00
|
|
|
"e2e": "ng e2e --no-webdriver-update",
|
2018-09-06 05:54:53 -04:00
|
|
|
"presetup": "yarn --cwd .. install && yarn install --frozen-lockfile && yarn ~~check-env && yarn ~~clean-generated && yarn boilerplate:remove",
|
2019-08-03 11:14:40 -04:00
|
|
|
"setup": "yarn example-use-npm && yarn aio-use-npm",
|
2019-04-24 08:27:23 -04:00
|
|
|
"postsetup": "yarn boilerplate:add && yarn extract-cli-command-docs && yarn docs",
|
2017-08-15 20:34:53 -04:00
|
|
|
"presetup-local": "yarn presetup",
|
build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)
The `setup-local` scripts (and others that are based on it, such as
`setup-local-viewengine`), mainly does two things: Replace the Angular
packages with the locally built ones for `aio/` and the docs examples
(`aio/tools/examples/shared/`). It does this by calling two other npm
scripts: `aio-use-local` and `example-use-local` respectively.
For these scripts to work, the local Angular packages must be already
built (via `scripts/build-packages-dist.sh`). In order to make it easier
for people to test against local packages, the scripts support a
`--build-packages` option, that (if passed) will result in building the
local packages as well.
Given that the same local packages are used for both `aio/` and the
examples, we only need to build the packages once. Also, to speed up
execution on CI, we do not need to build the packages there, because the
packages would have been built already in a previous CI job.
However, the various setup npm scripts were not implemented correctly to
meet these requirements. Specifically, when running locally,
`aio-use-local` would build the packages, while `example-use-local`
would not (it was supposed to use the already built packages from
`aio-use-local`). The `example-use-local` script, though, was configured
to run before `aio-use-local`. As a result, the packages were not built,
by the time `example-use-local` needed them, which would cause an error.
This commit fixes it by ensuring that `aio-use-local` (which builds the
local Angular packages) runs before `example-use-local`, so that the
latter can use the same packages already built by the former.
PR Close #33206
2019-10-16 16:15:40 -04:00
|
|
|
"setup-local": "yarn aio-use-local && yarn example-use-local",
|
2017-08-15 20:34:53 -04:00
|
|
|
"postsetup-local": "yarn postsetup",
|
build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)
The `setup-local` scripts (and others that are based on it, such as
`setup-local-viewengine`), mainly does two things: Replace the Angular
packages with the locally built ones for `aio/` and the docs examples
(`aio/tools/examples/shared/`). It does this by calling two other npm
scripts: `aio-use-local` and `example-use-local` respectively.
For these scripts to work, the local Angular packages must be already
built (via `scripts/build-packages-dist.sh`). In order to make it easier
for people to test against local packages, the scripts support a
`--build-packages` option, that (if passed) will result in building the
local packages as well.
Given that the same local packages are used for both `aio/` and the
examples, we only need to build the packages once. Also, to speed up
execution on CI, we do not need to build the packages there, because the
packages would have been built already in a previous CI job.
However, the various setup npm scripts were not implemented correctly to
meet these requirements. Specifically, when running locally,
`aio-use-local` would build the packages, while `example-use-local`
would not (it was supposed to use the already built packages from
`aio-use-local`). The `example-use-local` script, though, was configured
to run before `aio-use-local`. As a result, the packages were not built,
by the time `example-use-local` needed them, which would cause an error.
This commit fixes it by ensuring that `aio-use-local` (which builds the
local Angular packages) runs before `example-use-local`, so that the
latter can use the same packages already built by the former.
PR Close #33206
2019-10-16 16:15:40 -04:00
|
|
|
"presetup-local-ci": "yarn presetup-local",
|
|
|
|
"setup-local-ci": "yarn aio-use-local --no-build-packages && yarn example-use-local",
|
|
|
|
"postsetup-local-ci": "yarn postsetup-local",
|
2018-08-30 12:32:32 -04:00
|
|
|
"set-opensearch-url": "node --eval \"const sh = require('shelljs'); sh.set('-e'); sh.sed('-i', /PLACEHOLDER_URL/g, process.argv[1], 'dist/assets/opensearch.xml');\"",
|
2018-10-22 08:33:40 -04:00
|
|
|
"presmoke-tests": "yarn update-webdriver",
|
|
|
|
"smoke-tests": "protractor tests/deployment/e2e/protractor.conf.js --suite smoke --baseUrl",
|
2019-07-03 19:34:32 -04:00
|
|
|
"test-a11y-score": "node scripts/test-aio-a11y",
|
|
|
|
"test-a11y-score-localhost": "run-p --race \"~~light-server -s dist -p 4200 --quiet\" \"test-a11y-score http://localhost:4200\" --",
|
2019-07-03 17:43:50 -04:00
|
|
|
"test-pwa-score": "run-s \"~~audit-web-app {1} all:0,pwa:{2} {3}\" --",
|
2019-07-03 19:34:32 -04:00
|
|
|
"test-pwa-score-localhost": "run-p --race \"~~light-server -s dist -p 4200 --quiet\" \"test-pwa-score http://localhost:4200 {1} {2}\" --",
|
2021-07-22 09:37:34 -04:00
|
|
|
"example-e2e": "yarn example-check-local && node ./tools/examples/run-example-e2e.mjs",
|
2019-04-24 08:27:24 -04:00
|
|
|
"example-lint": "tslint --config \"content/examples/tslint.json\" \"content/examples/**/*.ts\" --exclude \"content/examples/styleguide/**/*.avoid.ts\"",
|
2019-08-03 11:14:40 -04:00
|
|
|
"example-use-local": "node tools/ng-packages-installer overwrite ./tools/examples/shared --debug --force",
|
2017-10-06 08:37:56 -04:00
|
|
|
"example-use-npm": "node tools/ng-packages-installer restore ./tools/examples/shared",
|
|
|
|
"example-check-local": "node tools/ng-packages-installer check ./tools/examples/shared",
|
2020-10-28 06:23:51 -04:00
|
|
|
"deploy-production": "node scripts/deploy-to-firebase",
|
2017-08-15 20:34:53 -04:00
|
|
|
"check-env": "yarn ~~check-env",
|
2017-10-06 08:37:56 -04:00
|
|
|
"postcheck-env": "yarn aio-check-local",
|
2017-05-23 20:20:56 -04:00
|
|
|
"payload-size": "scripts/payload.sh",
|
2021-01-11 01:34:58 -05:00
|
|
|
"predocs": "node scripts/contributors/validate-data && yarn generate-stackblitz && yarn generate-zips",
|
2018-09-14 05:04:39 -04:00
|
|
|
"docs": "yarn docs-only",
|
|
|
|
"docs-only": "dgeni ./tools/transforms/angular.io-package",
|
2017-04-16 16:31:21 -04:00
|
|
|
"docs-watch": "node tools/transforms/authors-package/watchr.js",
|
|
|
|
"docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms",
|
2017-06-21 09:18:26 -04:00
|
|
|
"docs-test": "node tools/transforms/test.js",
|
2019-10-03 05:39:43 -04:00
|
|
|
"redirects-test": "node tests/deployment/unit/test",
|
|
|
|
"firebase-utils-test": "node tools/firebase-test-utils/test",
|
2021-04-05 12:05:54 -04:00
|
|
|
"tools-lint": "tslint --config \"tools/tslint.json\" --project \"tools/firebase-test-utils\" && eslint tools/ng-packages-installer",
|
2020-10-28 06:23:51 -04:00
|
|
|
"tools-test": "yarn docs-test && yarn boilerplate:test && jasmine tools/ng-packages-installer/index.spec.js && jasmine scripts/deploy-to-firebase.spec.js && yarn firebase-utils-test",
|
2018-01-26 11:05:52 -05:00
|
|
|
"preserve-and-sync": "yarn docs",
|
2020-10-09 14:04:43 -04:00
|
|
|
"serve-and-sync": "run-p \"docs-watch --watch-only\" \"start {@}\" --",
|
2017-07-27 03:29:17 -04:00
|
|
|
"boilerplate:add": "node ./tools/examples/example-boilerplate add",
|
|
|
|
"boilerplate:remove": "node ./tools/examples/example-boilerplate remove",
|
|
|
|
"boilerplate:test": "node tools/examples/test.js",
|
2021-07-22 07:38:18 -04:00
|
|
|
"generate-stackblitz": "node ./tools/stackblitz-builder/generateStackblitz.mjs",
|
|
|
|
"generate-zips": "node ./tools/example-zipper/generateZips.mjs",
|
2020-10-15 07:05:14 -04:00
|
|
|
"create-example": "node ./tools/examples/create-example.js",
|
2018-04-05 07:24:37 -04:00
|
|
|
"build-404-page": "node scripts/build-404-page",
|
2020-02-07 06:38:58 -05:00
|
|
|
"update-webdriver": "node ../scripts/webdriver-manager-update.js",
|
2019-07-03 17:43:50 -04:00
|
|
|
"~~audit-web-app": "node scripts/audit-web-app",
|
2017-08-15 20:34:53 -04:00
|
|
|
"~~check-env": "node scripts/check-environment",
|
2018-09-06 05:54:53 -04:00
|
|
|
"~~clean-generated": "node --eval \"require('shelljs').rm('-rf', 'src/generated')\"",
|
2021-06-17 17:13:10 -04:00
|
|
|
"pre~~build": "yarn ~~build-ce-es5-polyfills && yarn ~~build-ngsw-config",
|
2019-01-09 07:52:26 -05:00
|
|
|
"~~build": "ng build --configuration=stable",
|
2018-09-27 09:35:05 -04:00
|
|
|
"post~~build": "yarn build-404-page",
|
2021-03-11 06:42:35 -05:00
|
|
|
"~~build-ce-es5-polyfills": "esbuild src/custom-elements-es5-polyfills.js --bundle --minify | swc --config=minify=true --filename=custom-elements-es5-polyfills.js --out-file=src/generated/js/custom-elements-es5-polyfills.js --no-swcrc",
|
2021-06-17 17:13:10 -04:00
|
|
|
"~~build-ngsw-config": "node scripts/build-ngsw-config",
|
2019-07-03 19:34:32 -04:00
|
|
|
"~~light-server": "light-server --bind=localhost --historyindex=/index.html --no-reload"
|
2017-01-27 03:20:51 -05:00
|
|
|
},
|
2019-12-04 15:05:53 -05:00
|
|
|
"//engines-comment": "Keep this in sync with /package.json and /aio/tools/examples/shared/package.json",
|
2017-06-14 11:34:13 -04:00
|
|
|
"engines": {
|
2021-05-26 16:27:43 -04:00
|
|
|
"node": ">=14.0.0",
|
2021-04-06 18:51:45 -04:00
|
|
|
"yarn": ">=1.22.4 <2",
|
|
|
|
"npm": "Please use yarn instead of NPM to install dependencies"
|
2017-06-14 11:34:13 -04:00
|
|
|
},
|
2017-01-27 03:20:51 -05:00
|
|
|
"private": true,
|
|
|
|
"dependencies": {
|
2021-07-07 07:36:03 -04:00
|
|
|
"@angular/animations": "12.1.1",
|
|
|
|
"@angular/cdk": "12.1.1",
|
|
|
|
"@angular/common": "12.1.1",
|
|
|
|
"@angular/compiler": "12.1.1",
|
|
|
|
"@angular/core": "12.1.1",
|
|
|
|
"@angular/elements": "12.1.1",
|
|
|
|
"@angular/forms": "12.1.1",
|
|
|
|
"@angular/material": "12.1.1",
|
|
|
|
"@angular/platform-browser": "12.1.1",
|
|
|
|
"@angular/platform-browser-dynamic": "12.1.1",
|
|
|
|
"@angular/router": "12.1.1",
|
|
|
|
"@angular/service-worker": "12.1.1",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@webcomponents/custom-elements": "1.4.3",
|
|
|
|
"rxjs": "^6.6.7",
|
2021-05-06 10:52:39 -04:00
|
|
|
"tslib": "^2.2.0",
|
2021-02-15 04:08:30 -05:00
|
|
|
"zone.js": "~0.11.4"
|
2017-01-27 03:20:51 -05:00
|
|
|
},
|
2017-01-25 06:04:30 -05:00
|
|
|
"devDependencies": {
|
2021-07-07 07:36:03 -04:00
|
|
|
"@angular-devkit/build-angular": "12.1.1",
|
refactor(docs-infra): migrate aio from tslint to eslint (#42820)
migrate aio to eslint as tslint has been deprecated, the migration is restricted to the aio app and
its e2e tests and does not include the other tools, for such reason both tslint and codelyzer have not
been removed (to be done in a next PR)
some minor tweaks needed to be applied to the code so that it would adhere to the new ESLinting behaviour
most TSLint rules have been substituted with their ESLint equivalent, with some exceptions:
* [whitespace] does not have an ESLint equivalent (suggested to be handled by prettier)
* [import-spacing] does not have an ESLint equivalent (suggested to be handled by prettier)
* [ban] replaced with [no-restricted-syntax] as there is no (official/included) ESLint equivalent
some rules have minor different behaviours compared to their TSLint counterparts:
* @typescript-eslint/naming-convention:
- typescript-eslint does not enforce uppercase for const only.
* @typescript-eslint/no-unused-expressions:
- The TSLint optional config "allow-new" is the default ESLint behavior and will no longer be ignored.
* arrow-body-style:
- ESLint will throw an error if the function body is multiline yet has a one-line return on it.
* eqeqeq:
- Option "smart" allows for comparing two literal values, evaluating the value of typeof and null comparisons.
* no-console:
- Custom console methods, if they exist, will no longer be allowed.
* no-invalid-this:
- Functions in methods will no longer be ignored.
* no-underscore-dangle:
- Leading and trailing underscores (_) on identifiers will now be ignored.
* prefer-arrow/prefer-arrow-functions:
- ESLint does not support allowing standalone function declarations.
- ESLint does not support allowing named functions defined with the function keyword.
* space-before-function-paren:
- Option "constructor" is not supported by ESLint.
- Option "method" is not supported by ESLint.
additional notes:
* the current typescript version used by the aio app is 4.3.5, which is not supported by typescript-eslint (the supported
versions are >=3.3.1 and <4.3.0). this causes a warning message to appear during linting, this issue should
likely/hopefully disappear in the future as typescript-eslint catches up
* The new "no-console" rule is not completely equivalent to what we had prior the migration, this is because TSLint's "no-console"
rule let you specify the methods you did not want to allow, whilst ESLint's "no-console" lets you specify the methods that you do
want to allow, so and in order not to have a very long list of methods in the ESLint rule it's been decided for the time being
to simply only allow the "log", "warn" and "error" methods
* 4 dependencies have been added as they have been considered necessary (see: https://github.com/angular/angular/pull/42820#discussion_r669978232)
extra:
* the migration has been performed by following: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslin
* more on typescript-eslint at: https://github.com/typescript-eslint/typescript-eslint
PR Close #42820
2021-07-15 16:59:57 -04:00
|
|
|
"@angular-eslint/builder": "12.2.2",
|
|
|
|
"@angular-eslint/eslint-plugin": "12.2.2",
|
|
|
|
"@angular-eslint/eslint-plugin-template": "12.2.2",
|
|
|
|
"@angular-eslint/template-parser": "12.2.2",
|
2021-07-07 07:36:03 -04:00
|
|
|
"@angular/cli": "12.1.1",
|
|
|
|
"@angular/compiler-cli": "12.1.1",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@swc/cli": "^0.1.36",
|
|
|
|
"@swc/core": "^1.2.51",
|
2021-07-09 01:46:30 -04:00
|
|
|
"@types/jasmine": "~3.8.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@types/lunr": "^2.3.3",
|
2019-10-03 05:39:43 -04:00
|
|
|
"@types/node": "^12.7.9",
|
2021-03-28 15:34:09 -04:00
|
|
|
"@types/stemmer": "^1.0.2",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@types/xregexp": "^4.3.0",
|
refactor(docs-infra): migrate aio from tslint to eslint (#42820)
migrate aio to eslint as tslint has been deprecated, the migration is restricted to the aio app and
its e2e tests and does not include the other tools, for such reason both tslint and codelyzer have not
been removed (to be done in a next PR)
some minor tweaks needed to be applied to the code so that it would adhere to the new ESLinting behaviour
most TSLint rules have been substituted with their ESLint equivalent, with some exceptions:
* [whitespace] does not have an ESLint equivalent (suggested to be handled by prettier)
* [import-spacing] does not have an ESLint equivalent (suggested to be handled by prettier)
* [ban] replaced with [no-restricted-syntax] as there is no (official/included) ESLint equivalent
some rules have minor different behaviours compared to their TSLint counterparts:
* @typescript-eslint/naming-convention:
- typescript-eslint does not enforce uppercase for const only.
* @typescript-eslint/no-unused-expressions:
- The TSLint optional config "allow-new" is the default ESLint behavior and will no longer be ignored.
* arrow-body-style:
- ESLint will throw an error if the function body is multiline yet has a one-line return on it.
* eqeqeq:
- Option "smart" allows for comparing two literal values, evaluating the value of typeof and null comparisons.
* no-console:
- Custom console methods, if they exist, will no longer be allowed.
* no-invalid-this:
- Functions in methods will no longer be ignored.
* no-underscore-dangle:
- Leading and trailing underscores (_) on identifiers will now be ignored.
* prefer-arrow/prefer-arrow-functions:
- ESLint does not support allowing standalone function declarations.
- ESLint does not support allowing named functions defined with the function keyword.
* space-before-function-paren:
- Option "constructor" is not supported by ESLint.
- Option "method" is not supported by ESLint.
additional notes:
* the current typescript version used by the aio app is 4.3.5, which is not supported by typescript-eslint (the supported
versions are >=3.3.1 and <4.3.0). this causes a warning message to appear during linting, this issue should
likely/hopefully disappear in the future as typescript-eslint catches up
* The new "no-console" rule is not completely equivalent to what we had prior the migration, this is because TSLint's "no-console"
rule let you specify the methods you did not want to allow, whilst ESLint's "no-console" lets you specify the methods that you do
want to allow, so and in order not to have a very long list of methods in the ESLint rule it's been decided for the time being
to simply only allow the "log", "warn" and "error" methods
* 4 dependencies have been added as they have been considered necessary (see: https://github.com/angular/angular/pull/42820#discussion_r669978232)
extra:
* the migration has been performed by following: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslin
* more on typescript-eslint at: https://github.com/typescript-eslint/typescript-eslint
PR Close #42820
2021-07-15 16:59:57 -04:00
|
|
|
"@typescript-eslint/eslint-plugin": "4.23.0",
|
|
|
|
"@typescript-eslint/parser": "4.23.0",
|
2019-02-04 09:45:45 -05:00
|
|
|
"@yarnpkg/lockfile": "^1.1.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"archiver": "^5.3.0",
|
2021-04-22 07:16:46 -04:00
|
|
|
"assert": "^2.0.0",
|
2018-10-24 08:24:14 -04:00
|
|
|
"canonical-path": "1.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"chalk": "^4.1.0",
|
2018-01-25 05:13:30 -05:00
|
|
|
"cjson": "^0.5.0",
|
2020-09-27 08:20:48 -04:00
|
|
|
"codelyzer": "^6.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"cross-spawn": "^7.0.3",
|
|
|
|
"css-selector-parser": "^1.4.1",
|
|
|
|
"dgeni": "^0.4.14",
|
2021-04-27 05:02:37 -04:00
|
|
|
"dgeni-packages": "^0.29.1",
|
2021-04-05 05:57:24 -04:00
|
|
|
"entities": "^2.2.0",
|
2021-05-18 04:00:38 -04:00
|
|
|
"esbuild": "^0.12.0",
|
refactor(docs-infra): migrate aio from tslint to eslint (#42820)
migrate aio to eslint as tslint has been deprecated, the migration is restricted to the aio app and
its e2e tests and does not include the other tools, for such reason both tslint and codelyzer have not
been removed (to be done in a next PR)
some minor tweaks needed to be applied to the code so that it would adhere to the new ESLinting behaviour
most TSLint rules have been substituted with their ESLint equivalent, with some exceptions:
* [whitespace] does not have an ESLint equivalent (suggested to be handled by prettier)
* [import-spacing] does not have an ESLint equivalent (suggested to be handled by prettier)
* [ban] replaced with [no-restricted-syntax] as there is no (official/included) ESLint equivalent
some rules have minor different behaviours compared to their TSLint counterparts:
* @typescript-eslint/naming-convention:
- typescript-eslint does not enforce uppercase for const only.
* @typescript-eslint/no-unused-expressions:
- The TSLint optional config "allow-new" is the default ESLint behavior and will no longer be ignored.
* arrow-body-style:
- ESLint will throw an error if the function body is multiline yet has a one-line return on it.
* eqeqeq:
- Option "smart" allows for comparing two literal values, evaluating the value of typeof and null comparisons.
* no-console:
- Custom console methods, if they exist, will no longer be allowed.
* no-invalid-this:
- Functions in methods will no longer be ignored.
* no-underscore-dangle:
- Leading and trailing underscores (_) on identifiers will now be ignored.
* prefer-arrow/prefer-arrow-functions:
- ESLint does not support allowing standalone function declarations.
- ESLint does not support allowing named functions defined with the function keyword.
* space-before-function-paren:
- Option "constructor" is not supported by ESLint.
- Option "method" is not supported by ESLint.
additional notes:
* the current typescript version used by the aio app is 4.3.5, which is not supported by typescript-eslint (the supported
versions are >=3.3.1 and <4.3.0). this causes a warning message to appear during linting, this issue should
likely/hopefully disappear in the future as typescript-eslint catches up
* The new "no-console" rule is not completely equivalent to what we had prior the migration, this is because TSLint's "no-console"
rule let you specify the methods you did not want to allow, whilst ESLint's "no-console" lets you specify the methods that you do
want to allow, so and in order not to have a very long list of methods in the ESLint rule it's been decided for the time being
to simply only allow the "log", "warn" and "error" methods
* 4 dependencies have been added as they have been considered necessary (see: https://github.com/angular/angular/pull/42820#discussion_r669978232)
extra:
* the migration has been performed by following: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslin
* more on typescript-eslint at: https://github.com/typescript-eslint/typescript-eslint
PR Close #42820
2021-07-15 16:59:57 -04:00
|
|
|
"eslint": "^7.26.0",
|
|
|
|
"eslint-plugin-import": "^2.23.4",
|
2021-04-05 12:05:54 -04:00
|
|
|
"eslint-plugin-jasmine": "^4.1.2",
|
2021-07-24 23:14:36 -04:00
|
|
|
"eslint-plugin-jsdoc": "^36.0.0",
|
refactor(docs-infra): migrate aio from tslint to eslint (#42820)
migrate aio to eslint as tslint has been deprecated, the migration is restricted to the aio app and
its e2e tests and does not include the other tools, for such reason both tslint and codelyzer have not
been removed (to be done in a next PR)
some minor tweaks needed to be applied to the code so that it would adhere to the new ESLinting behaviour
most TSLint rules have been substituted with their ESLint equivalent, with some exceptions:
* [whitespace] does not have an ESLint equivalent (suggested to be handled by prettier)
* [import-spacing] does not have an ESLint equivalent (suggested to be handled by prettier)
* [ban] replaced with [no-restricted-syntax] as there is no (official/included) ESLint equivalent
some rules have minor different behaviours compared to their TSLint counterparts:
* @typescript-eslint/naming-convention:
- typescript-eslint does not enforce uppercase for const only.
* @typescript-eslint/no-unused-expressions:
- The TSLint optional config "allow-new" is the default ESLint behavior and will no longer be ignored.
* arrow-body-style:
- ESLint will throw an error if the function body is multiline yet has a one-line return on it.
* eqeqeq:
- Option "smart" allows for comparing two literal values, evaluating the value of typeof and null comparisons.
* no-console:
- Custom console methods, if they exist, will no longer be allowed.
* no-invalid-this:
- Functions in methods will no longer be ignored.
* no-underscore-dangle:
- Leading and trailing underscores (_) on identifiers will now be ignored.
* prefer-arrow/prefer-arrow-functions:
- ESLint does not support allowing standalone function declarations.
- ESLint does not support allowing named functions defined with the function keyword.
* space-before-function-paren:
- Option "constructor" is not supported by ESLint.
- Option "method" is not supported by ESLint.
additional notes:
* the current typescript version used by the aio app is 4.3.5, which is not supported by typescript-eslint (the supported
versions are >=3.3.1 and <4.3.0). this causes a warning message to appear during linting, this issue should
likely/hopefully disappear in the future as typescript-eslint catches up
* The new "no-console" rule is not completely equivalent to what we had prior the migration, this is because TSLint's "no-console"
rule let you specify the methods you did not want to allow, whilst ESLint's "no-console" lets you specify the methods that you do
want to allow, so and in order not to have a very long list of methods in the ESLint rule it's been decided for the time being
to simply only allow the "log", "warn" and "error" methods
* 4 dependencies have been added as they have been considered necessary (see: https://github.com/angular/angular/pull/42820#discussion_r669978232)
extra:
* the migration has been performed by following: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslin
* more on typescript-eslint at: https://github.com/typescript-eslint/typescript-eslint
PR Close #42820
2021-07-15 16:59:57 -04:00
|
|
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
2019-03-04 14:33:25 -05:00
|
|
|
"find-free-port": "^2.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"firebase-tools": "^9.8.0",
|
2021-05-06 02:52:10 -04:00
|
|
|
"fs-extra": "^10.0.0",
|
2021-07-22 01:15:58 -04:00
|
|
|
"globby": "^12.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"hast-util-is-element": "^1.1.0",
|
|
|
|
"hast-util-to-string": "^1.0.4",
|
2017-04-01 14:32:48 -04:00
|
|
|
"html": "^1.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"ignore": "^5.1.8",
|
2021-04-15 03:22:10 -04:00
|
|
|
"image-size": "^1.0.0",
|
2021-07-09 01:46:30 -04:00
|
|
|
"jasmine": "~3.8.0",
|
|
|
|
"jasmine-core": "~3.8.0",
|
2021-04-14 03:35:12 -04:00
|
|
|
"jasmine-spec-reporter": "~7.0.0",
|
2021-04-19 11:49:42 -04:00
|
|
|
"jsdom": "^16.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"json-schema-traverse": "^1.0.0",
|
|
|
|
"json5": "^2.2.0",
|
|
|
|
"karma": "~6.3.2",
|
2020-11-18 10:24:35 -05:00
|
|
|
"karma-chrome-launcher": "~3.1.0",
|
2020-11-18 05:36:06 -05:00
|
|
|
"karma-coverage": "~2.0.3",
|
2020-09-27 08:20:48 -04:00
|
|
|
"karma-jasmine": "~4.0.0",
|
2020-11-18 10:24:35 -05:00
|
|
|
"karma-jasmine-html-reporter": "^1.5.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"light-server": "^2.9.1",
|
2021-07-16 04:21:21 -04:00
|
|
|
"lighthouse": "^8.1.0",
|
2019-04-15 08:46:14 -04:00
|
|
|
"lighthouse-logger": "^1.2.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"lunr": "^2.3.9",
|
2018-11-26 15:01:46 -05:00
|
|
|
"npm-run-all": "^4.1.5",
|
2020-11-18 05:36:06 -05:00
|
|
|
"protractor": "~7.0.0",
|
2021-04-22 09:50:45 -04:00
|
|
|
"puppeteer": "9.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"rehype-slug": "^4.0.1",
|
2021-04-28 09:23:42 -04:00
|
|
|
"remark": "^12.0.0",
|
|
|
|
"remark-html": "^13.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"semver": "^7.3.5",
|
2020-10-28 06:23:51 -04:00
|
|
|
"shelljs": "^0.8.4",
|
2021-04-24 04:18:01 -04:00
|
|
|
"stemmer": "^2.0.0",
|
2021-03-02 11:57:26 -05:00
|
|
|
"timezone-mock": "^1.1.3",
|
2017-04-13 17:35:13 -04:00
|
|
|
"tree-kill": "^1.1.0",
|
2021-06-01 15:17:00 -04:00
|
|
|
"ts-node": "^10.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"tslint": "~6.1.3",
|
2021-06-18 09:29:03 -04:00
|
|
|
"typescript": "~4.3.4",
|
2021-04-05 05:57:24 -04:00
|
|
|
"uglify-js": "^3.13.3",
|
|
|
|
"unist-util-filter": "^2.0.3",
|
|
|
|
"unist-util-source": "^3.0.0",
|
|
|
|
"unist-util-visit": "^2.0.3",
|
|
|
|
"unist-util-visit-parents": "^3.1.1",
|
2021-04-30 13:52:59 -04:00
|
|
|
"watchr": "^3.0.1",
|
2021-04-05 05:57:24 -04:00
|
|
|
"xregexp": "^5.0.2",
|
2021-05-04 02:39:44 -04:00
|
|
|
"yargs": "^17.0.0"
|
2017-01-25 06:04:30 -05:00
|
|
|
}
|
2021-04-22 07:16:46 -04:00
|
|
|
}
|