mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +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 { fileURLToPath } from 'node:url';
|
||||
import js from '@eslint/js';
|
||||
import { FlatCompat } from '@eslint/eslintrc';
|
||||
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
||||
import { fixupPluginRules } from '@eslint/compat';
|
||||
import unicorn from 'eslint-plugin-unicorn';
|
||||
@@ -27,11 +25,11 @@ import prettier from 'eslint-plugin-prettier';
|
||||
import ban from 'eslint-plugin-ban';
|
||||
import licenseHeader from 'eslint-plugin-license-header';
|
||||
import cspell from '@cspell/eslint-plugin';
|
||||
import importPlugin from 'eslint-plugin-import';
|
||||
import storybook from 'eslint-plugin-storybook';
|
||||
import nxPlugin from '@nx/eslint-plugin';
|
||||
import angularEslintEslintPlugin from '@angular-eslint/eslint-plugin';
|
||||
import angularTemplateParser from '@angular-eslint/template-parser';
|
||||
import angularEslintTemplatePlugin from '@angular-eslint/eslint-plugin-template';
|
||||
import tsParser from '@typescript-eslint/parser';
|
||||
import jsonParser from 'jsonc-eslint-parser';
|
||||
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 __dirname = path.dirname(__filename);
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
recommendedConfig: js.configs.recommended,
|
||||
allConfig: js.configs.all
|
||||
});
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: [
|
||||
@@ -113,13 +105,7 @@ export default [
|
||||
{
|
||||
files: ['**/*.ts'],
|
||||
ignores: ['**/*.d.ts', '**/*.mjs'],
|
||||
...compat.extends(
|
||||
'plugin:@nx/typescript',
|
||||
'plugin:@nx/angular',
|
||||
'plugin:@cspell/recommended',
|
||||
'plugin:@angular-eslint/recommended',
|
||||
'plugin:@angular-eslint/template/process-inline-templates'
|
||||
)[0],
|
||||
processor: angularEslintTemplatePlugin.processors['extract-inline-html'],
|
||||
plugins: {
|
||||
'@nx': nxPlugin,
|
||||
jsdoc,
|
||||
@@ -128,7 +114,6 @@ export default [
|
||||
prettier: prettier,
|
||||
ban: ban,
|
||||
'@cspell': cspell,
|
||||
import: importPlugin,
|
||||
'@angular-eslint': angularEslintEslintPlugin,
|
||||
'@typescript-eslint': typescriptEslint
|
||||
},
|
||||
@@ -142,6 +127,26 @@ export default [
|
||||
}
|
||||
},
|
||||
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
|
||||
// Note to developers:
|
||||
// you can uncomment the full ruleset locally when fixing issues, and then comment
|
||||
@@ -221,7 +226,6 @@ export default [
|
||||
'brace-style': 'off',
|
||||
'comma-dangle': 'error',
|
||||
'default-case': 'error',
|
||||
'import/order': 'off',
|
||||
'max-len': [
|
||||
'error',
|
||||
{
|
||||
@@ -303,15 +307,17 @@ export default [
|
||||
},
|
||||
{
|
||||
files: ['**/*.html'],
|
||||
...compat.extends(
|
||||
'plugin:@angular-eslint/template/recommended',
|
||||
'plugin:@angular-eslint/template/accessibility',
|
||||
'plugin:@nx/angular-template'
|
||||
)[0],
|
||||
plugins: {
|
||||
'@angular-eslint/template': angularEslintTemplatePlugin,
|
||||
'@nx': nxPlugin
|
||||
},
|
||||
languageOptions: {
|
||||
parser: angularTemplateParser
|
||||
},
|
||||
rules: {
|
||||
...angularEslintTemplatePlugin.configs.recommended.rules,
|
||||
...angularEslintTemplatePlugin.configs.accessibility.rules,
|
||||
...nxPlugin.configs['angular-template'].rules,
|
||||
'@angular-eslint/template/prefer-self-closing-tags': 'error'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -86,9 +86,6 @@
|
||||
"@angular/compiler-cli": "20.3.26",
|
||||
"@chromatic-com/storybook": "4.1.3",
|
||||
"@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/eslint-plugin": "23.1.1",
|
||||
"@nx/js": "23.1.1",
|
||||
@@ -110,7 +107,6 @@
|
||||
"eslint": "10.8.0",
|
||||
"eslint-config-prettier": "10.1.8",
|
||||
"eslint-plugin-ban": "2.0.0",
|
||||
"eslint-plugin-import": "2.32.0",
|
||||
"eslint-plugin-jsdoc": "63.2.2",
|
||||
"eslint-plugin-license-header": "0.9.0",
|
||||
"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
|
||||
shell-quote: 1.9.0
|
||||
adm-zip: 0.6.0
|
||||
"minimatch@10.2.5": "10.2.6"
|
||||
axios: 1.18.0
|
||||
serialize-javascript: '>=7.0.5'
|
||||
picomatch: '>=4.0.4'
|
||||
|
||||
Reference in New Issue
Block a user