Skip to content

Commit

Permalink
wip fix after lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VachetVirginie committed Jul 24, 2024
1 parent 1b82066 commit d9ad644
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 51 deletions.
60 changes: 9 additions & 51 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,9 @@
import a11y from "eslint-plugin-vuejs-accessibility";
import antfu from "@antfu/eslint-config";

export default antfu({
plugins: {
"vuejs-accessibility": a11y,
},
ignores: [
"src/elements/Logo/*",
"src/elements/CustomIcon/mixins/themeIcon.ts",
"src/assets/locales/*.json",
"src/assets/locales/*.json/**",
"public/**/*",
],
rules: {
...a11y.configs.recommended.rules,
"ts/semi": "off",
"curly": ["error", "all"],
"no-console": "error",
"no-alert": "off",
"no-shadow": "off",
"vue/html-self-closing": "off",
"vue/no-template-shadow": "off",
"vue/multi-word-component-names": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"style/max-len": ["error", { code: 120, tabWidth: 4 }],
"style/semi": ["error", "always"],
"style/indent": "off",
"style/quotes": ["error", "double"],
"style/no-tabs": "off",
"vuejs-accessibility/label-has-for": ["error", { required: { every: ["nesting"] } }],
"vuejs-accessibility/anchor-has-content": "off",
},
}, {
ignores: ["public/**/*"],
}, {
files: ["**/*.json", "**/*.md", "**/*.spec.ts"],
ignores: ["public/**/*.json"],
rules: {
"style/max-len": ["error", { code: 600, tabWidth: 2 }],
},

}, {
files: ["src/elements/FranceConnectBtn/FranceConnectBtn.vue", "src/elements/FilePreview/FilePreview.vue"],
rules: {
"style/max-len": "off",
},

});
export default [
{
rules: {
'vue/html-self-closing': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
]
1 change: 1 addition & 0 deletions packages/synapse-bridge/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default antfu({
"vue/html-self-closing": "off",
"vue/no-template-shadow": "off",
"vue/multi-word-component-names": "off",
"vue/custom-event-name-casing": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
Expand Down

0 comments on commit d9ad644

Please sign in to comment.