Skip to content

Commit

Permalink
Merge pull request #676 from ChristianMurphy/chore/eslint-upgrade
Browse files Browse the repository at this point in the history
chore(lint): upgrade ESLint to version 9
  • Loading branch information
ChristianMurphy authored Sep 18, 2024
2 parents 04513dd + 4e34faa commit 4542341
Show file tree
Hide file tree
Showing 8 changed files with 7,025 additions and 1,026 deletions.
47 changes: 47 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import js from '@eslint/js';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import playwright from 'eslint-plugin-playwright';
import unicorn from 'eslint-plugin-unicorn';
import sonarjs from 'eslint-plugin-sonarjs';
import noJquery from 'eslint-plugin-no-jquery';

export default [
// Base JavaScript configuration
js.configs.recommended,

// Configuration for all TypeScript files
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: './tsconfig.json',
},
},
plugins: {
'@typescript-eslint': tsPlugin,
unicorn,
playwright,
sonarjs,
'no-jquery': noJquery,
},
rules: {
// Include TypeScript ESLint recommended rules
...tsPlugin.configs.recommended.rules,
...tsPlugin.configs['recommended-requiring-type-checking'].rules,

// Include Unicorn plugin recommended rules
...unicorn.configs.recommended.rules,

// Include Playwright plugin recommended rules
...playwright.configs.recommended.rules,

// Include SonarJS plugin recommended rules
...sonarjs.configs.recommended.rules,

// Include no-jquery plugin rules to ban all uses of jQuery
...noJquery.configs.all.rules,
},
},
];
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ portletApiDependency=org.apache.portals:portlet-api_2.1.0_spec:1.0
gradleDockerPluginVersion=3.2.4
hsqldbVersion=2.5.1
jasyptVersion=1.9.3
nodejsVersion=20.15.1
nodejsVersion=20.17.0
waroverlayPluginVersion=0.9.3

# Dependencies used by overlays/ projects and custom code
Expand Down
Loading

0 comments on commit 4542341

Please sign in to comment.