-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(eslint): add eslint-plugin-x
dependency
#52
ci(eslint): add eslint-plugin-x
dependency
#52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a .eslintignore
with
**/*.js
types
Like the other packages?
{ | ||
"extends": ["plugin:@empathyco/x/all"], | ||
"rules": { | ||
"@typescript-eslint/restrict-template-expressions": ["off", { "allowAny": true }], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed that both problems come from: x/packages/jest-utils/src/jest-utils.ts.
Isn't it preferable to disable both rules at least just for that file ?
@@ -0,0 +1,4 @@ | |||
{ | |||
"extends": "./tsconfig.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just have everything in the tsconfig.eslint.json instead of extending it from another file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is how its done in other packages
@@ -1,22 +1,23 @@ | |||
export interface EmpathyExtendedExpect { | |||
arrayOf(classType: Newable): any; | |||
arrayOfItemsMatching(schema: {}): any; | |||
arrayOfItemsMatching(schema: Record<string, any>): any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for my information, did the linter complain about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the linter doesn't like to use an empty object, so i added a record
@CachedaCodes we dont have types and js files in this package |
Add eslint-plugin-x