Skip to content

Commit

Permalink
feat(linter): update eslint config with rules, plugins and reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
manoncarbonnel authored and dpellier committed Oct 26, 2023
1 parent 7587b0f commit a722500
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"**/docs/**",
"**/packages/**/dist/**",
"**/packages/**/doc/**",
"**/packages/themes/**"
"**/packages/themes/**",
"**/packages/components/**/custom-elements",
"**/packages/components/**/custom-elements-bundle",
"**/packages/components/**/documentation",
"**/packages/components/**/loader",
"**/packages/components/**/react",
"**/packages/components/**/vue"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -26,6 +32,7 @@
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "h" }],
"array-bracket-spacing": ["error", "never"],
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
Expand All @@ -35,7 +42,7 @@
"curly": ["error", "all"],
"default-case": "error",
"func-call-spacing": ["error", "never"],
"func-style": ["error", "expression"],
"func-style": ["error", "declaration"],
"function-call-argument-newline": ["error", "consistent"],
"indent": ["error", 2],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
Expand Down

0 comments on commit a722500

Please sign in to comment.