Skip to content
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

Enforce nextcloud code style | Adding eslint linting #554

Merged
merged 6 commits into from Jan 12, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jan 11, 2023

Now that our eslint config supports TypeScript we would make use of it, what do you think?

I pushed the fixes for problems found as different commits to make reviewing the changes easier (you could review a single commit a time and compare with the description from the commit message), as the changes are quite huge.

@susnux susnux added the enhancement New feature or request label Jan 11, 2023
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment

Comment on lines +6 to +23
"overrides": [
{
"files": ["tests/*.js"],
"rules": {
"n/no-unpublished-import": "off",
// Todo: convert tests to TS then drop overrides below
"n/no-missing-import": "off",
"import/no-unresolved": "off",
"import/extensions": "off"
}
},
{
"files": ["*.config.*js"],
"rules": {
"n/no-unpublished-import": "off"
}
}
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be amazing to upstream that to the esling config 🚀

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"cypress/**/*.js", "cypress/**/*.ts", "*.cy.js", "*.cy.ts" too (cypress)
"*.config.*js", "*.config.*ts"

.eslintrc.json Outdated Show resolved Hide resolved
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
…lders

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@skjnldsv skjnldsv merged commit 683a067 into master Jan 12, 2023
@skjnldsv skjnldsv deleted the feat/use-eslint branch January 12, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants