-
Notifications
You must be signed in to change notification settings - Fork 517
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
Consistency/linting roadmap #1538
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some remaining errors,
|
What about stylistic rules? |
I cannot find a strong reason to enforce I think enforcing We can refer to the migration process by TypeScript team here. In it, both the options are turned off at present. |
I agree with you on enforcing |
To eliminate the warning, By adding the following entries to diff --git a/.eslintignore b/.eslintignore
index 5e8f5ff..e959428 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1 +1,6 @@
src/lib/**/*.ts
+dev/**/*.js
+resources/**/*.js
+out
+node_modules
+viewer we have to call eslint with the
The extension will be able to be specified in a config file in the future release. See https://github.com/eslint/rfcs/tree/master/designs/2019-additional-lint-targets |
Following the long discussion in #1475, I think it would be nice to write a little roadmap to improve code consistency.
Before moving to
eslint
{
,}
need no escape and neither do[
,]
when used inside character class. Ruleno-useless-escape
.quotes
.;
.// @ts-ignore
and fix the errors. These are trickier so I will wait until we merge Formatting towards eslint #1543. See PR Ban ts ignore #1545.Breaking rules compared to
tslint
.:
when giving explicit type. Rule@typescript-eslint/type-annotation-spacing
.Non default
eslint
rules we want to enforcetype
overinterface
. See here.src/lib
."@typescript-eslint/no-parameter-properties": "off"
.Extra changes
.plist
syntax files to.tmLanguage.json
. I find.json
files much easier to edit and maintain and they allow for more elaborate constructions not available in the.plist
(say.xml
) format. The vscode-tmlanguage extension can be used as a conversion tool.Such changes may induce a lot of modifications and tend to blur file history. So, I want to make sure there is no objection before making any change. I will try to update this post with any further discussion.
The Done ticks refer to the developments in branch format.
The text was updated successfully, but these errors were encountered: