Skip to content

Commit

Permalink
chore: reset eslint config to base
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnorskov committed Apr 14, 2024
1 parent 88d5562 commit bd8384c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-files-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhnorskov/eslint-config": patch
---

chore: reset eslint config to base
49 changes: 25 additions & 24 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
module.exports = {
root: true,
env: { jest: true, node: true },
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
},
ignorePatterns: ["jest.config.js"],
plugins: ["@typescript-eslint", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import", "unused-imports"],
rules: {
"sort-imports": [
"warn",
{
ignoreCase: true,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
allowSeparatedGroups: true,
},
],
"import/order": [
"warn",
{
Expand All @@ -27,20 +28,20 @@ module.exports = {
"index",
],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
alphabetize: { order: "asc", caseInsensitive: true },
},
],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
},
settings: {
"import/resolver": {
typescript: {},
},
},
settings: { "import/resolver": { typescript: {} } },
};

0 comments on commit bd8384c

Please sign in to comment.