@angular-eslint/schematics
Advanced tools
Comparing version 0.7.0-beta.1 to 0.8.0-beta.0
@@ -15,3 +15,4 @@ "use strict"; | ||
const eslintPluginConfigBaseOriginal = eslint_plugin_1.default.configs.base; | ||
const eslintPluginConfigRecommendedOriginal = eslint_plugin_1.default.configs.recommended; | ||
const eslintPluginConfigNgCliCompatOriginal = eslint_plugin_1.default.configs['ng-cli-compat']; | ||
const eslintPluginConfigNgCliCompatFormattingAddOnOriginal = eslint_plugin_1.default.configs['ng-cli-compat--formatting-add-on']; | ||
const eslintPluginTemplateConfigRecommendedOriginal = eslint_plugin_template_1.default.configs.recommended; | ||
@@ -69,3 +70,4 @@ function convert(schema) { | ||
const eslintPluginConfigBase = Object.assign({}, eslintPluginConfigBaseOriginal); | ||
const eslintPluginConfigRecommended = Object.assign({}, eslintPluginConfigRecommendedOriginal); | ||
const eslintPluginConfigNgCliCompat = Object.assign({}, eslintPluginConfigNgCliCompatOriginal); | ||
const eslintPluginConfigNgCliCompatFormattingAddOn = Object.assign({}, eslintPluginConfigNgCliCompatFormattingAddOnOriginal); | ||
const eslintPluginTemplateConfigRecommended = Object.assign({}, eslintPluginTemplateConfigRecommendedOriginal); | ||
@@ -76,12 +78,13 @@ /** | ||
*/ | ||
delete eslintPluginConfigRecommended.rules['@angular-eslint/directive-selector']; | ||
delete eslintPluginConfigRecommended.rules['@angular-eslint/component-selector']; | ||
delete eslintPluginConfigNgCliCompat.rules['@angular-eslint/directive-selector']; | ||
delete eslintPluginConfigNgCliCompat.rules['@angular-eslint/component-selector']; | ||
removeUndesiredRulesFromConfig(convertedRootESLintConfig); | ||
/** | ||
* To avoid users' configs being bigger and more verbose than necessary, we perform some | ||
* deduplication against our underlying recommended configuration that they will extend from. | ||
* deduplication against our underlying ng-cli-compat configuration that they will extend from. | ||
*/ | ||
dedupePluginsAgainstConfigs(convertedRootESLintConfig, [ | ||
eslintPluginConfigRecommended, | ||
eslintPluginConfigBase, | ||
eslintPluginConfigNgCliCompat, | ||
eslintPluginConfigNgCliCompatFormattingAddOn, | ||
{ | ||
@@ -109,7 +112,9 @@ plugins: [ | ||
eslintPluginConfigBase, | ||
eslintPluginConfigRecommended, | ||
eslintPluginConfigNgCliCompat, | ||
eslintPluginConfigNgCliCompatFormattingAddOn, | ||
]); | ||
dedupeEnvAgainstConfigs(convertedRootESLintConfig, [ | ||
eslintPluginConfigBase, | ||
eslintPluginConfigRecommended, | ||
eslintPluginConfigNgCliCompat, | ||
eslintPluginConfigNgCliCompatFormattingAddOn, | ||
]); | ||
@@ -129,3 +134,4 @@ const { codeRules, templateRules } = separateCodeAndTemplateRules(convertedRootESLintConfig); | ||
extends: [ | ||
'plugin:@angular-eslint/recommended', | ||
'plugin:@angular-eslint/ng-cli-compat', | ||
'plugin:@angular-eslint/ng-cli-compat--formatting-add-on', | ||
'plugin:@angular-eslint/template/process-inline-templates', | ||
@@ -166,3 +172,4 @@ ...(convertedRootESLintConfig.extends || []), | ||
const eslintPluginConfigBase = Object.assign({}, eslintPluginConfigBaseOriginal); | ||
const eslintPluginConfigRecommended = Object.assign({}, eslintPluginConfigRecommendedOriginal); | ||
const eslintPluginConfigNgCliCompat = Object.assign({}, eslintPluginConfigNgCliCompatOriginal); | ||
const eslintPluginConfigNgCliCompatFormattingAddOn = Object.assign({}, eslintPluginConfigNgCliCompatFormattingAddOnOriginal); | ||
const eslintPluginTemplateConfigRecommended = Object.assign({}, eslintPluginTemplateConfigRecommendedOriginal); | ||
@@ -173,13 +180,14 @@ /** | ||
*/ | ||
delete eslintPluginConfigRecommended.rules['@angular-eslint/directive-selector']; | ||
delete eslintPluginConfigRecommended.rules['@angular-eslint/component-selector']; | ||
delete eslintPluginConfigNgCliCompat.rules['@angular-eslint/directive-selector']; | ||
delete eslintPluginConfigNgCliCompat.rules['@angular-eslint/component-selector']; | ||
removeUndesiredRulesFromConfig(convertedProjectESLintConfig); | ||
/** | ||
* To avoid users' configs being bigger and more verbose than necessary, we perform some | ||
* deduplication against our underlying recommended configuration that they will extend from, | ||
* deduplication against our underlying ng-cli-compat configuration that they will extend from, | ||
* as well as the root config. | ||
*/ | ||
dedupePluginsAgainstConfigs(convertedProjectESLintConfig, [ | ||
eslintPluginConfigRecommended, | ||
eslintPluginConfigBase, | ||
eslintPluginConfigNgCliCompat, | ||
eslintPluginConfigNgCliCompatFormattingAddOn, | ||
{ | ||
@@ -207,3 +215,4 @@ plugins: [ | ||
eslintPluginConfigBase, | ||
eslintPluginConfigRecommended, | ||
eslintPluginConfigNgCliCompat, | ||
eslintPluginConfigNgCliCompatFormattingAddOn, | ||
rawRootESLintrcJson, | ||
@@ -213,3 +222,4 @@ ]); | ||
eslintPluginConfigBase, | ||
eslintPluginConfigRecommended, | ||
eslintPluginConfigNgCliCompat, | ||
eslintPluginConfigNgCliCompatFormattingAddOn, | ||
rawRootESLintrcJson, | ||
@@ -349,4 +359,4 @@ ]); | ||
/** | ||
* We have handled this in eslint-plugin recommended.json, any subtle differences that would | ||
* cause the deduplication logic not to find a match can be addressed via PRs to the recommended | ||
* We have handled this in eslint-plugin ng-cli-compat.json, any subtle differences that would | ||
* cause the deduplication logic not to find a match can be addressed via PRs to the ng-cli-compat | ||
* config in the plugin. | ||
@@ -353,0 +363,0 @@ */ |
{ | ||
"name": "@angular-eslint/schematics", | ||
"version": "0.7.0-beta.1", | ||
"version": "0.8.0-beta.0", | ||
"description": "Angular Schematics for angular-eslint", | ||
@@ -26,4 +26,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@angular-eslint/eslint-plugin": "^0.7.0-beta.1", | ||
"@angular-eslint/eslint-plugin-template": "^0.7.0-beta.1", | ||
"@angular-eslint/eslint-plugin": "^0.8.0-beta.0", | ||
"@angular-eslint/eslint-plugin-template": "^0.8.0-beta.0", | ||
"strip-json-comments": "3.1.1", | ||
@@ -43,3 +43,3 @@ "tslint-to-eslint-config": "2.0.0-beta5" | ||
}, | ||
"gitHead": "f90d7174425c67b6071ada2458a0e2579365b71a" | ||
"gitHead": "50b244751e940fc25c98bbcbec8cafca4e7a8b3d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40078
797
+ Added@angular-eslint/eslint-plugin@0.8.0-beta.7(transitive)
+ Added@angular-eslint/eslint-plugin-template@0.8.0-beta.7(transitive)
+ Added@babel/runtime@7.25.6(transitive)
+ Added@babel/runtime-corejs3@7.25.6(transitive)
+ Addedaria-query@4.2.2(transitive)
+ Addedaxobject-query@2.2.0(transitive)
+ Addedcore-js-pure@3.38.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removed@angular-eslint/eslint-plugin@0.7.0-beta.1(transitive)
- Removed@angular-eslint/eslint-plugin-template@0.7.0-beta.1(transitive)