Skip to content

Commit

Permalink
added more rules to linter
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Jan 24, 2023
1 parent d03d232 commit fb205bd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .eslintrc
@@ -0,0 +1,25 @@
{
"extends": [
"eslint:recommended",
"react-app",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-ignore": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/prefer-as-const": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-empty-interface": "warn"
},
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion test/__mocks__/styleMock.ts
@@ -1,3 +1,3 @@
// eslint-disable-next-line no-lone-blocks
// eslint-disable-next-line no-empty
{
}

0 comments on commit fb205bd

Please sign in to comment.