Skip to content

Commit

Permalink
overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
BarnabyShearer committed May 1, 2024
1 parent 76ec8b2 commit 9402a72
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ module.exports = {
project: ["./tsconfig.json"],
},
plugins: ["prettier", "@typescript-eslint", "filenames"],
ignorePatterns: ["api.d.ts"],
rules: {
"node/no-unpublished-import": "off",
"node/no-missing-import": "off",
eqeqeq: ["error"],
"@typescript-eslint/no-shadow": 2,
Expand All @@ -28,8 +30,26 @@ module.exports = {
],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/unbound-method": "off",
"filenames/match-regex": [2, "^[a-z][a-z0-9.-]*$"],
"filenames/match-exported": [2, "kebab"],
},
overrides: [
{
files: ["**/*.test.ts", "**/*.test.tsx", "./src/__tests__/**/*.ts"],
plugins: ["vitest"],
extends: ["plugin:vitest/recommended"],
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-ts-comment": "off",
"vitest/no-export": "off",
"vitest/expect-expect": "off",
"vitest/no-conditional-expect": "off",
},
},
],
root: true,
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "eslint-config-two-stroke",
"description": "eslint settings for two-stroke.",
"license": "MIT",
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^7.7.0",
Expand All @@ -22,4 +22,4 @@
"eslint": "^8.57.0",
"typescript": "^5.4.5"
}
}
}

0 comments on commit 9402a72

Please sign in to comment.