2.3.1 • Published 2 months ago

@tinymce/eslint-plugin v2.3.1

Weekly downloads
38
License
Apache-2.0
Repository
github
Last release
2 months ago

ESLint Rules

This is the base rules for eslint that we can share between projects and then override if we need to on a project basis.

Automatic Conversion notes

64 rules replaced with their ESLint equivalents.

6 ESLint rules behave differently from their TSLint counterparts

  • one-var:
    • Variables declared in for loops will no longer be checked.
  • camelcase:
    • Leading and trailing underscores (_) in variable names will now be ignored.
  • no-underscore-dangle:
    • Leading or trailing underscores (_) on identifiers will now be forbidden.
  • no-invalid-this:
    • Functions in methods will no longer be ignored.
  • no-unused-expressions:
    • The TSLint optional config "allow-new" is the default ESLint behavior and will no longer be ignored.
  • eqeqeq:
    • Option "smart" allows for comparing two literal values, evaluating the value of typeof and null comparisons.

4 rules do not yet have ESLint equivalents

  • import-spacing
  • one-line
  • whitespace
  • no-reference-import

2 packages are required for new ESLint rules.

  • eslint-plugin-prefer-arrow supports this rule:
    • only-arrow-functions = prefer-arrow/prefer-arrow-functions
  • eslint-plugin-import supports these rules:
    • no-duplicate-imports = import/no-duplicates
    • ordered-imports = import/order (implementations differ)
2.3.0

12 months ago

2.3.1

12 months ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.8.3

3 years ago

1.8.2

3 years ago

1.8.1

3 years ago

1.7.3

3 years ago

1.7.4

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.6.1

3 years ago

1.5.2

3 years ago

1.5.1

4 years ago

1.4.1

4 years ago

1.3.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago