mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-49656 Remove rendundant libs (#12162)
* AAE-49656 Remove rendundant libs * update * update
This commit is contained in:
+29
-23
@@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import js from '@eslint/js';
|
|
||||||
import { FlatCompat } from '@eslint/eslintrc';
|
|
||||||
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
||||||
import { fixupPluginRules } from '@eslint/compat';
|
import { fixupPluginRules } from '@eslint/compat';
|
||||||
import unicorn from 'eslint-plugin-unicorn';
|
import unicorn from 'eslint-plugin-unicorn';
|
||||||
@@ -27,11 +25,11 @@ import prettier from 'eslint-plugin-prettier';
|
|||||||
import ban from 'eslint-plugin-ban';
|
import ban from 'eslint-plugin-ban';
|
||||||
import licenseHeader from 'eslint-plugin-license-header';
|
import licenseHeader from 'eslint-plugin-license-header';
|
||||||
import cspell from '@cspell/eslint-plugin';
|
import cspell from '@cspell/eslint-plugin';
|
||||||
import importPlugin from 'eslint-plugin-import';
|
|
||||||
import storybook from 'eslint-plugin-storybook';
|
import storybook from 'eslint-plugin-storybook';
|
||||||
import nxPlugin from '@nx/eslint-plugin';
|
import nxPlugin from '@nx/eslint-plugin';
|
||||||
import angularEslintEslintPlugin from '@angular-eslint/eslint-plugin';
|
import angularEslintEslintPlugin from '@angular-eslint/eslint-plugin';
|
||||||
import angularTemplateParser from '@angular-eslint/template-parser';
|
import angularTemplateParser from '@angular-eslint/template-parser';
|
||||||
|
import angularEslintTemplatePlugin from '@angular-eslint/eslint-plugin-template';
|
||||||
import tsParser from '@typescript-eslint/parser';
|
import tsParser from '@typescript-eslint/parser';
|
||||||
import jsonParser from 'jsonc-eslint-parser';
|
import jsonParser from 'jsonc-eslint-parser';
|
||||||
import alfrescoEslintAngular from './lib/eslint-angular/main.js';
|
import alfrescoEslintAngular from './lib/eslint-angular/main.js';
|
||||||
@@ -40,12 +38,6 @@ import jsdoc from 'eslint-plugin-jsdoc';
|
|||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
const compat = new FlatCompat({
|
|
||||||
baseDirectory: __dirname,
|
|
||||||
recommendedConfig: js.configs.recommended,
|
|
||||||
allConfig: js.configs.all
|
|
||||||
});
|
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
ignores: [
|
ignores: [
|
||||||
@@ -113,13 +105,7 @@ export default [
|
|||||||
{
|
{
|
||||||
files: ['**/*.ts'],
|
files: ['**/*.ts'],
|
||||||
ignores: ['**/*.d.ts', '**/*.mjs'],
|
ignores: ['**/*.d.ts', '**/*.mjs'],
|
||||||
...compat.extends(
|
processor: angularEslintTemplatePlugin.processors['extract-inline-html'],
|
||||||
'plugin:@nx/typescript',
|
|
||||||
'plugin:@nx/angular',
|
|
||||||
'plugin:@cspell/recommended',
|
|
||||||
'plugin:@angular-eslint/recommended',
|
|
||||||
'plugin:@angular-eslint/template/process-inline-templates'
|
|
||||||
)[0],
|
|
||||||
plugins: {
|
plugins: {
|
||||||
'@nx': nxPlugin,
|
'@nx': nxPlugin,
|
||||||
jsdoc,
|
jsdoc,
|
||||||
@@ -128,7 +114,6 @@ export default [
|
|||||||
prettier: prettier,
|
prettier: prettier,
|
||||||
ban: ban,
|
ban: ban,
|
||||||
'@cspell': cspell,
|
'@cspell': cspell,
|
||||||
import: importPlugin,
|
|
||||||
'@angular-eslint': angularEslintEslintPlugin,
|
'@angular-eslint': angularEslintEslintPlugin,
|
||||||
'@typescript-eslint': typescriptEslint
|
'@typescript-eslint': typescriptEslint
|
||||||
},
|
},
|
||||||
@@ -142,6 +127,26 @@ export default [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
// -----------------------------------------------------------------------
|
||||||
|
// Disabled: TypeScript compiler handles these natively, base ESLint rules conflict with @typescript-eslint equivalents
|
||||||
|
// -----------------------------------------------------------------------
|
||||||
|
'no-undef': 'off',
|
||||||
|
'no-unused-vars': 'off',
|
||||||
|
'no-shadow': 'off',
|
||||||
|
'no-empty': 'off',
|
||||||
|
'getter-return': 'off',
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------
|
||||||
|
// Disabled: rules added in ESLint v9+ that were never enforced in this codebase
|
||||||
|
// Enable individually when ready to fix existing violations
|
||||||
|
// -----------------------------------------------------------------------
|
||||||
|
'no-useless-escape': 'off',
|
||||||
|
'no-useless-assignment': 'off',
|
||||||
|
'no-constant-binary-expression': 'off',
|
||||||
|
'no-unused-private-class-members': 'off',
|
||||||
|
'no-unassigned-vars': 'off',
|
||||||
|
'preserve-caught-error': 'off',
|
||||||
|
|
||||||
// Uncomment this to enable prettier checks as part of the ESLint
|
// Uncomment this to enable prettier checks as part of the ESLint
|
||||||
// Note to developers:
|
// Note to developers:
|
||||||
// you can uncomment the full ruleset locally when fixing issues, and then comment
|
// you can uncomment the full ruleset locally when fixing issues, and then comment
|
||||||
@@ -221,7 +226,6 @@ export default [
|
|||||||
'brace-style': 'off',
|
'brace-style': 'off',
|
||||||
'comma-dangle': 'error',
|
'comma-dangle': 'error',
|
||||||
'default-case': 'error',
|
'default-case': 'error',
|
||||||
'import/order': 'off',
|
|
||||||
'max-len': [
|
'max-len': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
@@ -303,15 +307,17 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['**/*.html'],
|
files: ['**/*.html'],
|
||||||
...compat.extends(
|
plugins: {
|
||||||
'plugin:@angular-eslint/template/recommended',
|
'@angular-eslint/template': angularEslintTemplatePlugin,
|
||||||
'plugin:@angular-eslint/template/accessibility',
|
'@nx': nxPlugin
|
||||||
'plugin:@nx/angular-template'
|
},
|
||||||
)[0],
|
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parser: angularTemplateParser
|
parser: angularTemplateParser
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
...angularEslintTemplatePlugin.configs.recommended.rules,
|
||||||
|
...angularEslintTemplatePlugin.configs.accessibility.rules,
|
||||||
|
...nxPlugin.configs['angular-template'].rules,
|
||||||
'@angular-eslint/template/prefer-self-closing-tags': 'error'
|
'@angular-eslint/template/prefer-self-closing-tags': 'error'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -86,9 +86,6 @@
|
|||||||
"@angular/compiler-cli": "20.3.26",
|
"@angular/compiler-cli": "20.3.26",
|
||||||
"@chromatic-com/storybook": "4.1.3",
|
"@chromatic-com/storybook": "4.1.3",
|
||||||
"@eslint/compat": "^2.1.0",
|
"@eslint/compat": "^2.1.0",
|
||||||
"@eslint/config-helpers": "^0.7.0",
|
|
||||||
"@eslint/eslintrc": "^3.3.6",
|
|
||||||
"@eslint/js": "~10.0.1",
|
|
||||||
"@nx/angular": "23.1.1",
|
"@nx/angular": "23.1.1",
|
||||||
"@nx/eslint-plugin": "23.1.1",
|
"@nx/eslint-plugin": "23.1.1",
|
||||||
"@nx/js": "23.1.1",
|
"@nx/js": "23.1.1",
|
||||||
@@ -110,7 +107,6 @@
|
|||||||
"eslint": "10.8.0",
|
"eslint": "10.8.0",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-ban": "2.0.0",
|
"eslint-plugin-ban": "2.0.0",
|
||||||
"eslint-plugin-import": "2.32.0",
|
|
||||||
"eslint-plugin-jsdoc": "63.2.2",
|
"eslint-plugin-jsdoc": "63.2.2",
|
||||||
"eslint-plugin-license-header": "0.9.0",
|
"eslint-plugin-license-header": "0.9.0",
|
||||||
"eslint-plugin-prettier": "5.5.6",
|
"eslint-plugin-prettier": "5.5.6",
|
||||||
|
|||||||
Generated
+3
-1068
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,7 @@ overrides:
|
|||||||
svgo: 4.0.2
|
svgo: 4.0.2
|
||||||
shell-quote: 1.9.0
|
shell-quote: 1.9.0
|
||||||
adm-zip: 0.6.0
|
adm-zip: 0.6.0
|
||||||
|
"minimatch@10.2.5": "10.2.6"
|
||||||
axios: 1.18.0
|
axios: 1.18.0
|
||||||
serialize-javascript: '>=7.0.5'
|
serialize-javascript: '>=7.0.5'
|
||||||
picomatch: '>=4.0.4'
|
picomatch: '>=4.0.4'
|
||||||
|
|||||||
Reference in New Issue
Block a user