Skip to content

Commit

Permalink
Merge pull request #10545 from qmonmert/eslint9
Browse files Browse the repository at this point in the history
ESLint 9
  • Loading branch information
pascalgrimaud authored Aug 12, 2024
2 parents 9a10711 + 5744700 commit 614230e
Show file tree
Hide file tree
Showing 5 changed files with 390 additions and 318 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.cjs

This file was deleted.

44 changes: 44 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import globals from 'globals';
import prettier from 'eslint-plugin-prettier/recommended';
import typescript from 'typescript-eslint';
import js from '@eslint/js';
import vue from 'eslint-plugin-vue';

export default typescript.config(
{
languageOptions: {
globals: {
...globals.node,
},
},
},
{
ignores: ['target/', 'src/test/resources/'],
},
js.configs.recommended,
...typescript.configs.recommended.map(config => (config.name === 'typescript-eslint/base' ? config : { ...config, files: ['**/*.ts'] })),
...vue.configs['flat/recommended'],
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: { parser: '@typescript-eslint/parser' },
globals: { ...globals.browser },
},
},
{
files: ['src/*/webapp/**/*.vue', 'src/*/webapp/**/*.ts'],
languageOptions: {
globals: { ...globals.browser },
},
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'vue/multi-word-component-names': 'off',
'vue/no-reserved-component-names': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'prettier/prettier': ['error', { singleQuote: true }],
},
},
prettier,
);
Loading

0 comments on commit 614230e

Please sign in to comment.