Skip to content

Commit

Permalink
Merge pull request #1420 from skaut/prefer-arrow
Browse files Browse the repository at this point in the history
Prefering arrow functions
  • Loading branch information
marekdedic authored Oct 25, 2023
2 parents a90d47a + e44711e commit 70f4927
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 58 deletions.
20 changes: 17 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
"browser": true,
"node": false
},
"plugins": ["deprecation", "jest", "simple-import-sort", "@typescript-eslint"],
"plugins": [
"deprecation",
"jest",
"prefer-arrow-functions",
"simple-import-sort",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
Expand All @@ -18,11 +24,19 @@
"plugin:svelte/prettier"
],
"rules": {
"deprecation/deprecation": "warn",
"arrow-body-style": ["error", "as-needed"],
"camelcase": "error",
"no-warning-comments": "warn",
"strict": ["error", "never"],
"deprecation/deprecation": "warn",
"prefer-arrow-functions/prefer-arrow-functions": [
"error",
{
"allowNamedFunctions": true
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"strict": ["error", "never"],
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error",
Expand Down
Loading

0 comments on commit 70f4927

Please sign in to comment.