Skip to content

Commit

Permalink
chore: enable naming-convention rule
Browse files Browse the repository at this point in the history
  • Loading branch information
susisu committed Feb 20, 2024
1 parent 73e72b2 commit 20f9134
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ export default config({}, [
{
files: ["src/**/*.ts"],
rules: {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/naming-convention": [
// a better exention mechanism is needed
...config.tsTypeChecked().rules["@typescript-eslint/naming-convention"],
{
selector: ["typeProperty"],
filter: { match: true, regex: "^__rec$" },
format: null,
},
],
"@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "^_" }],
},
},
Expand Down

0 comments on commit 20f9134

Please sign in to comment.