-
Notifications
You must be signed in to change notification settings - Fork 1
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
Eliminate @storis dependencies internalize configs #644
Eliminate @storis dependencies internalize configs #644
Conversation
…k of npm-run-all.
…ns within .config directory.
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.
Overall looks good. The biggest issues are some things that are not relevant to this repo that leaked into the configs.
.eslintrc.js
Outdated
}, | ||
// allow trailing ASC and DESC on enumerations | ||
{ | ||
selector: 'enumMember', |
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 rule is likely not relevant for this repo
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.
fixed.
.eslintrc.js
Outdated
format: null, | ||
}, | ||
// GraphQL variables PascalCase | ||
{ |
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 rule is likely not relevant for this repo
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.
fixed.
.eslintrc.js
Outdated
}, | ||
|
||
{ | ||
files: ['**/*.types.ts', '**/types/*.ts', '**/*.schema.ts', '**/instances/**'], |
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 think the **/types/*.ts
file override is relevant for this repo, but I don't believe any of the others are.
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.
fixed.
extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'], | ||
rules: { | ||
// ban ts-comment except with description | ||
'@typescript-eslint/ban-ts-comment': [ |
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 think we should make this:
// ban ts-comment except with description
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-expect-error': { descriptionFormat: '^: ' },
'ts-ignore': true,
'ts-nocheck': true,
'ts-check': false,
},
],
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.
Good idea. Looking at all these rules has been great. Thank you.
.eslintrc.js
Outdated
}, | ||
|
||
{ | ||
files: ['**/index.[jt]s?(x)', '**/*.gql.[jt]s', '**/constants.ts'], |
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 gql
suffix is definitely not needed as an override. I don't think the constants
one is needed.
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.
removed gql
and constants
file matches.
tsconfig.json
Outdated
}, | ||
"include": [ | ||
"src/**/*", // source folder | ||
"scripts/**/*", // scripts folder | ||
"test/**/*", // test helpers | ||
"./*.js", // root javascript files | ||
"./.*.js" // root javascript config files | ||
] | ||
], | ||
"ts-node": { |
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 isn't relevant to this repo
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.
done. removed ts-node config
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.
LGTM!
This PR removes the two storis dependencies
@storis/eslint-config
and@storis/tsconfig
. Those repositories are no longer being maintained, so their configs will be internalized.This PR also updates the
eslint-config-prettier
plugin.There was an attempt made to upgrade eslint to v9 as well, but there are plugins that are yet to support v9 of eslint. They have been documented in a tracker issue - #646