Skip to content

Commit

Permalink
[TECH] Mise à jour de la configuration ESLint monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Sep 30, 2024
2 parents bfe0c45 + 0617741 commit c9fa284
Show file tree
Hide file tree
Showing 41 changed files with 4,900 additions and 1,213 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

31 changes: 31 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { createConfigForNuxt } from '@nuxt/eslint-config/flat';
import vitest from '@vitest/eslint-plugin';

export default createConfigForNuxt({
features: {
stylistic: true,
},
}, {
rules: {
'@stylistic/semi': ['error', 'always'],
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
'@stylistic/quote-props': ['error', 'as-needed'],
'@stylistic/brace-style': ['error', '1tbs'],
'vue/quote-props': ['error', 'as-needed'],
'vue/multi-word-component-names': 'off',
'vue/html-self-closing': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/max-attributes-per-line': 'off',
'vue/singleline-html-element-content-newline': 'off',
},
})
.prepend({
languageOptions: {
globals: {
...vitest.environments.env.globals,
},
},
})
.append({
ignores: ['**/playwright-report/'],
});
Loading

0 comments on commit c9fa284

Please sign in to comment.