Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Latest commit

 

History

History
488 lines (399 loc) · 47.4 KB

CHANGELOG.md

File metadata and controls

488 lines (399 loc) · 47.4 KB

Changelog

All Issues

This release doesn't contain any changes since 6.2.0-beta milestone.

Full release notes:

  • #859 no-string-based-x rules throw errors in Vue SFC
  • #856 False positive for prefer-array-literal when using Array from other namespace
  • #844 Update w3 reference in the react-a11y-role rule
  • #841 Rule react-a11y-input-elements incorrectly requiring value for file input
  • #839 prefer-array-literal: catch new Array(10) but not Array(10)
  • #836 react-a11y-no-onchange should allow onChange when onBlur is present
  • #830 Add case sensitivity to 'import-name' rule
  • #822 prefer-array-literal: how can one specify the size of the array?
  • #814 export-name does not work with kebab/snake case
  • #813 react-bind-this-issue doesn't detect bind decorators defined after usage
  • #279 new a11y rule: mouse-events-have-key-events
  • #252 new security rule: detect-child-process

All Issues

  • #859 no-string-based-x rules throw errors in Vue SFC
  • #856 False positive for prefer-array-literal when using Array from other namespace
  • #844 Update w3 reference in the react-a11y-role rule
  • #841 Rule react-a11y-input-elements incorrectly requiring value for file input
  • #839 prefer-array-literal: catch new Array(10) but not Array(10)
  • #836 react-a11y-no-onchange should allow onChange when onBlur is present
  • #830 Add case sensitivity to 'import-name' rule
  • #822 prefer-array-literal: how can one specify the size of the array?
  • #814 export-name does not work with kebab/snake case
  • #813 react-bind-this-issue doesn't detect bind decorators defined after usage
  • #279 new a11y rule: mouse-events-have-key-events
  • #252 new security rule: detect-child-process

All Issues

Changes since 6.1.0-beta milestone:

  • README.md updates

Full release notes:

  • #816 Make strict order of rules in README.md
  • #815 export-name throwing an error
  • #808 Move documentation from the wiki into ./docs
  • #778 No-relative-imports - allow-siblings flag not working
  • #751 Suggest rule: pair-react-dom-render-unmount
  • #749 Rule react-a11y-input-elements incorrectly requiring placeholder for radio, checkbox, and file inputs
  • #716 Stop including library-specific rules in the recommended ruleset
  • #710 src/.baseDir.ts is no longer needed
  • #707 Separate microsoft contrib ruleset from tslint core rules
  • #703 Unable to debug rules using the Run TSLint Tests template
  • #697 Remove TSLint@5.12.0 rules from the recommended ruleset (before the next release)
  • #696 react-a11y-accessible-headings is missing from recommended_ruleset.js
  • #693 Rule suggestion: void-zero
  • #687 Mark TSLint@5.12.0 rules as deprecated
  • #685 Update to TSLint 5.12.0
  • #684 PR builds on Node 6 fail during linting
  • #677 Stop extending from TSLint's ruleset in the published ruleset
  • #675 Odd whitespace characters in tslint-warnings.csv
  • #673 use-named-parameter shouldn't be marked as TypeScript-only
  • #671 import-name rule is missing tests for import "some-name";
  • #664 export-name: crashes with "Cannot read property 'elements' of undefined"
  • #662 no-backbone-get-set-outside-model has obscenely long rule warnings
  • #654 No changelog
  • #652 Mark no-reserved-keywords as deprecated"
  • #648 Better describe and suggest new rules' version options
  • #586 Use a walk function instead of extending AbstractRule in our new-rule templates
  • #585 Tracking for a post-Hacktoberfest version: 6.0
  • #358 Rule request: no-implicit-null-types
  • #357 Rule request: no-improper-passed-nulls
  • #356 Rule request: no-implicit-null-return-types
  • #339 react-unused-props-and-state fails with SFC's
  • #274 new a11y rule: accessible headings
  • #258 Create a rule generator by using a micro-generator f/w
  • #204 new rule: react-a11y-iframe

All Issues

  • #816 Make strict order of rules in README.md
  • #815 export-name throwing an error
  • #808 Move documentation from the wiki into ./docs
  • #778 No-relative-imports - allow-siblings flag not working
  • #751 Suggest rule: pair-react-dom-render-unmount
  • #749 Rule react-a11y-input-elements incorrectly requiring placeholder for radio, checkbox, and file inputs
  • #716 Stop including library-specific rules in the recommended ruleset
  • #710 src/.baseDir.ts is no longer needed
  • #707 Separate microsoft contrib ruleset from tslint core rules
  • #703 Unable to debug rules using the Run TSLint Tests template
  • #697 Remove TSLint@5.12.0 rules from the recommended ruleset (before the next release)
  • #696 react-a11y-accessible-headings is missing from recommended_ruleset.js
  • #693 Rule suggestion: void-zero
  • #687 Mark TSLint@5.12.0 rules as deprecated
  • #685 Update to TSLint 5.12.0
  • #684 PR builds on Node 6 fail during linting
  • #677 Stop extending from TSLint's ruleset in the published ruleset
  • #675 Odd whitespace characters in tslint-warnings.csv
  • #673 use-named-parameter shouldn't be marked as TypeScript-only
  • #671 import-name rule is missing tests for import "some-name";
  • #664 export-name: crashes with "Cannot read property 'elements' of undefined"
  • #662 no-backbone-get-set-outside-model has obscenely long rule warnings
  • #654 No changelog
  • #652 Mark no-reserved-keywords as deprecated"
  • #648 Better describe and suggest new rules' version options
  • #586 Use a walk function instead of extending AbstractRule in our new-rule templates
  • #585 Tracking for a post-Hacktoberfest version: 6.0
  • #358 Rule request: no-implicit-null-types
  • #357 Rule request: no-improper-passed-nulls
  • #356 Rule request: no-implicit-null-return-types
  • #339 react-unused-props-and-state fails with SFC's
  • #274 new a11y rule: accessible headings
  • #258 Create a rule generator by using a micro-generator f/w
  • #204 new rule: react-a11y-iframe

All Issues

The major version 6 comes with all the greatness of the 6.0.0-beta milestone along with:

➕ New rules:

  • #147 New rule: use-simple-attributes

☑️ Internal improvements:

  • #613 Remove Appveyor

Full release notes:

⚠️ Breaking changes:

  • #632 Update export-name: fixed overly permissive validator
  • #624 Update no-relative-imports: disallow . and .. path components
  • #594 Update import-name: fixed for long ../.. paths and similar
  • #527 Allow .jsx files to be considered as TSX

➕ New rules:

  • #457 New rule: informative docs
  • #280 New rule: react-a11y-required
  • #278 New rule: react-a11y-no-onchange
  • #275 New rule: react-a11y-input-elements
  • #253 New rule: non-literal-fs-path
  • #147 New rule: use-simple-attributes

✅ General changes:

  • #634 Remove absolute paths from error messages
  • #588 Update import-name: better documentation on complex packages
  • #571 Update react-anchor-blank-noopener: option to avoid redundant rel values
  • #545 Update mocha-no-side-effect-code: ignore .forEach setups
  • #541 Update import-name: option for ignoring node_modules
  • #537 Update react-no-dangerous-html: suppressions no longer require absolute paths
  • #535 Update react-this-binding-issue: performance boost from internal Sets
  • #531 Update export-name: case-insensitive by default
  • #525 Don't consider .tsx.ts files as TSX
  • #518 Update no-function-expression: exclude generics in .tsx files
  • #498 Update function-name: add options for overlapping private and/or static method types
  • #493 Update no-relative-import: allow same folder imports
  • #486 Remove newline-before-return from recommended preset
  • #459 Update function-name: support symbol properties as names
  • #451 Update import-name: allow more forms of specifies with hyphens
  • #440 Update no-suspicious-comment: allow links to issues
  • #437 Update react-a11y-image-button-has-alt: no longer throw on input elements
  • #434 Update react-a11y-anchors: warn when there is no 'href' attribute
  • #433 Update react-a11y-anchors: allow children and hidden content
  • #430 Update export-name: add ignore-case option
  • #429 Update import-name: clear documentation examples
  • #424 Update import-name: allow snake_case file names
  • #394 Update react-a11y-anchors: add ignore-case and ignore-whitespace options
  • #393 Update max-func-body-length: allow default classes
  • #392 Update react-this-binding: add detection for @bind decorators
  • #378 Update import-name: ignore modules with dotted paths
  • #362 Update no-increment-decrement: add an allow-for-loop option
  • #353 Update react-tsx-curly-spacing: empty {} node when it only contains comments
  • #317 Update react-a11y-img-has-alt: alt-text cannot be an image file name
  • #276 Update img-alt-ignored-image-support: add check for title attribute for images

☑️ Internal improvements:

  • #622 Added Node versions 10 and 11 on Travis
  • #616 Add watcher that will run tests and lint
  • #613 Remove Appveyor
  • #610 Simplified release process to remove npm-* and releases branches
  • #602 Enabled prefer-readonly in source code
  • #587 Added Windows builds to Travis configuration
  • #568 Completely removed ErrorTolerantWalker
  • #566 Enabled no-any in source code
  • #558 Added Prettier
  • #556 Mark ErrorTolerantWalker as deprecated
  • #528 Added launch.json for VS Code
  • #512 Bumped Node versions on Travis to 6 and 8
  • #490 Stopped using null unnecessarily in source code
  • #484 Replaced Grunt dependency with npm scripts
  • #461 Used TypeScript's --strict mode in source code

All Issues

This was a huge one. Thanks so much to our many contributors, both during #hacktoberfest and in the surrounding weeks!

⚠️ Breaking changes:

  • #632 Update export-name: fixed overly permissive validator
  • #624 Update no-relative-imports: disallow . and .. path components
  • #594 Update import-name: fixed for long ../.. paths and similar
  • #527 Allow .jsx files to be considered as TSX

➕ New rules:

  • #457 New rule: informative docs
  • #280 New rule: react-a11y-required
  • #278 New rule: react-a11y-no-onchange
  • #275 New rule: react-a11y-input-elements
  • #253 New rule: non-literal-fs-path

✅ General changes:

  • #634 Remove absolute paths from error messages
  • #588 Update import-name: better documentation on complex packages
  • #571 Update react-anchor-blank-noopener: option to avoid redundant rel values
  • #545 Update mocha-no-side-effect-code: ignore .forEach setups
  • #541 Update import-name: option for ignoring node_modules
  • #537 Update react-no-dangerous-html: suppressions no longer require absolute paths
  • #535 Update react-this-binding-issue: performance boost from internal Sets
  • #531 Update export-name: case-insensitive by default
  • #525 Don't consider .tsx.ts files as TSX
  • #518 Update no-function-expression: exclude generics in .tsx files
  • #498 Update function-name: add options for overlapping private and/or static method types
  • #493 Update no-relative-import: allow same folder imports
  • #486 Remove newline-before-return from recommended preset
  • #459 Update function-name: support symbol properties as names
  • #451 Update import-name: allow more forms of specifies with hyphens
  • #440 Update no-suspicious-comment: allow links to issues
  • #437 Update react-a11y-image-button-has-alt: no longer throw on input elements
  • #434 Update react-a11y-anchors: warn when there is no 'href' attribute
  • #433 Update react-a11y-anchors: allow children and hidden content
  • #430 Update export-name: add ignore-case option
  • #429 Update import-name: clear documentation examples
  • #424 Update import-name: allow snake_case file names
  • #394 Update react-a11y-anchors: add ignore-case and ignore-whitespace options
  • #393 Update max-func-body-length: allow default classes
  • #392 Update react-this-binding: add detection for @bind decorators
  • #378 Update import-name: ignore modules with dotted paths
  • #362 Update no-increment-decrement: add an allow-for-loop option
  • #353 Update react-tsx-curly-spacing: empty {} node when it only contains comments
  • #317 Update react-a11y-img-has-alt: alt-text cannot be an image file name
  • #276 Update img-alt-ignored-image-support: add check for title attribute for images

☑️ Internal improvements:

  • #622 Added Node versions 10 and 11 on Travis
  • #616 Add watcher that will run tests and lint
  • #610 Simplified release process to remove npm-* and releases branches
  • #602 Enabled prefer-readonly in source code
  • #587 Added Windows builds to Travis configuration
  • #568 Completely removed ErrorTolerantWalker
  • #566 Enabled no-any in source code
  • #558 Added Prettier
  • #556 Mark ErrorTolerantWalker as deprecated
  • #528 Added launch.json for VS Code
  • #512 Bumped Node versions on Travis to 6 and 8
  • #490 Stopped using null unnecessarily in source code
  • #484 Replaced Grunt dependency with npm scripts
  • #461 Used TypeScript's --strict mode in source code

All Issues

  • #479 Source control improvement: repository forces \n endline style on Windows
  • #485 Adjusted tsutils peer dependency to not allow versions that break either TypeScript 2.X or 3.X

All Issues

  • #207 Checked second expect() messages in chai-vague-errors
  • #454 Disable no-multiline-string in recommended ruleset
  • #465 Avoided matching describe() calls in max-func-body-length
  • #468 Fixed max-func-body-length off-by-one counts
  • #475 Added TypeScript@3 as allowed peer dependency
  • #476 Fixed react-a11y-image-button-has-alt crashes on expression types

All Issues

  • #115 Single line block comments allowed to be nested inside code or JSX
  • #291 Excluded generators in no-function-expression
  • #381 Fixed no-unnecessary-local-variable false positive
  • #389 Ignored test inclusions/exclusions for mocha-no-side-effect-code
  • #412 Fixed several no-octal-literal edge cases
  • #413 Fixed backslashes in no-octal-literal
  • #417 Type-checking for noStringBased rules
  • #423 Allowed http://localhost for recommended no-http-string setting
  • #425 Added config setting for no-inner-html for which expressions to flag
  • #427 Added console.error to recommended ruleset for no-console
  • #444 Started flagging export { ... } declarations in export-name
  • #446 Allowed this.timeout in mocha-no-side-effect-code
  • #447 Update broken accessibility link in README.md
  • #449 Removed invalid examples.com domain from recommended ruleset

All Issues

  • #390 react-a11y-image-button-has-alt toLowerCase error throws
  • #414 Remove TypeError in reactA11yImgHasAltRule.ts for undefined role attribute
  • #411 Removed default configuration of deprecated rules.
  • #405 Deprecated several rules that are now duplicates
  • #410 Removed default configuration of deprecated rules.

All Issues

  • #402 fix false positive for no-string-based-set-timeout
  • #406 deprecate no-stateless-class rule in favor of no-unnecessary-class
  • #382 Deprecate the no-var-self rule and replace with no-this-assignment
  • #401 add grunt rule to generate rule-metadata.json which contains all rule…
  • #400 Audit rules that have already been added in TSLint
  • #399 Use ReadonlyArray for node arrays
  • #391 Upgrade grunt and other library versions in build
  • #386 Add 'typescript' to peer dependencies
  • #379 The use-isnan rule is fully removed

All Issues

  • #373 Fix tsutils peer dependency issue with tslint-microsoft-contrib@5.0.0
  • #371 relax tsutils peer dependency
  • #375 Fix mocha-avoid-only. Only return expression length to stop annoying whole block underlining
  • #372 Remove the use-isnan rule
  • #370 Fix no-http-string. Do not ignore template strings

All Issues

  • #359 Update TSLint to v5
  • #354 tslint 5.0.0 contains custom rule breaking changes
  • #367 Add support for tslint version to 5.1.0
  • #369 Support typescript 2.3
  • #349 New rule: no-useless-files
  • #368 Remove deprecated rule 'no-unused-imports'
  • #364 remove no-sparse-arrays rule
  • #361 Use TypeScript config files for compilation
  • #360 gruntfile and tsconfig are inconsistent
  • #350 Add AppVeyor configuration
  • #348 Fix the new rule snippet to not create an immediately broken file

4.0.1

All Issues

  • #345 Remove no-unused-variable to suppress tslint warning
  • #344 typedef rule - Change recommended parameters so to something meaningful bug
  • #343 object-literal-key-quotes false positive when linting empty string
  • #341 Recommended value for member-ordering rule is pointless enhancement
  • #338 no-http-string rule - false positive when http:// occurs in the middle of a string
  • #337 Performance - no-http-string should replace regex with indexOf
  • #336 no-http-string rule should support very large source files and string input
  • #333 remove "prefer-const" rule - tslint has same rule with same name so our's is unusable
  • #332 Performance - no-http-string should use visitStringLiteral not visitNode
  • #331 no-http-string's NoHttpStringWalker should use visitStringLiteral
  • #328 Deprecate no-empty-interfaces - rule is now in TSLint bug
  • #327 Improve import-name failure message when import filenames contain a dot enhancement
  • #326 update recommended ruleset with new tslint 4.0 rules

4.0.0

All Issues

  • #313 Enhancement - tslint 4.0 support
  • #319 Enhancement - react-a11y-anchors-rule now includes innerimage alt text as its text content
  • #318 Enhancement - Fix line endings errors in IDE by providing an .editorconfig file
  • #320 Bug - react-a11y-img-has-alt not working when passing options

2.0.14

All Issues

  • #302 New Rule - react-tsx-curly-spacing - Port TSX curly spacing rule.
  • #255 New Rule - new security rule: detect-non-literal-require
  • #311 Enhancement - Configurable Props and State interface names
  • #310 Enhancement - Rule no-stateless-class does not account for constructors using parameter properties bug
  • #308 Enhancement - function-name rule - add support for linting protected methods
  • #303 Enhancement - mocha-no-side-effect: Add support for "BeforeAll()" and "afterAll()" methods (Jasmine)
  • #301 Enhancement - Declare TypeScript SDK path in VSCode settings.
  • #292 Enhancement - support checkLoops for noConstantConditionRule
  • #240 Enhancement - mocha rules: support context and specify feature-request
  • #317 Documentation - Use inline code in prefer-type-cast doc to improve readability
  • #312 Bug Fix - Support for Typescript 2.1
  • #307 Bug Fix - False positive for no-unnecessary-semicolons on empty loops bug
  • #306 Bug Fix - false positive in string timeout methods: Function is treated as string
  • #305 Bug Fix - fix anchors rule not correctly apply 4 chars rule
  • #304 Bug Fix - Remove deprecated no-duplicate-key rule
  • #298 Bug Fix - update rule: react-a11y-img-has-alt - should allow role='presentation' with non-empty alt text.
  • #296 Bug Fix - update rule: react-a11y-role-supports-aria-props - Do not check custom element
  • #295 Bug Fix - update rule: react-a11y-anchors - Do not check if role='button'
  • #261 Bug Fix - 'this' banned term conflicts with Typescript's function this-types

2.0.13

All Issues

  • #268 Make extends tslint.json easier by adding "rulesDirectory": "./".
  • #270 TestHelper fail in version 2.0.12
  • #289 react-a11y-anchors false positive when anchor href is undefined bug
  • #288 react-a11y-proptypes: fix rule to scan boolean types when analyzing tokens bug
  • #287 aria-role-supports-props: false positive when role is defined by an expression bug
  • #269 react-a11y-anchors fails on links that contact exactly 4 characters of text bug

2.0.11/2.0.12

A big release and a big thank you to all the contributors: From the Suzhou SOX Publishing team

  • Liubin Guo (huge thanks!), Liaoliang Ye, and Evgeniia Firsova

From the Microsoft Social Engagement team

  • MogensFogh, Daniel Manesku - @danielmanesku, Cosmin Cojocar - @cosmincojocar, and @loicraux

From the world outside Microsoft!

  • Matteo Ferrando - @chamini2, Gaurav Ramanan - @gaurav21r, Przemysław Duszyński - @Przemek-at-Ais, @studds, and Saurabh Sharma

All Issues

  • #267 remove underscore dependency in 2.0.11
  • #256 new security rule: detect-possible-timing-attacks
  • #210 new security rule: react-anchor-blank-noopener
  • #187 new security rule: insecure random (CWE-330)
  • #186 new security rule: suspicious comment (CWE 546)
  • #257 new rule: react-a11y-event-has-role
  • #247 new rule: react-a11y-aria-unsupported-elements
  • #246 new rule: react-a11y-image-button-has-alt rule
  • #245 new rule: react-a11y-proptypes
  • #216 new rule: react-a11y-role-supports-aria-props - Enforce that elements with explicit or implicit roles defined contain only aria-* properties supported by that role
  • #215 new rule: react-a11y-role - Elements with aria roles must use a valid, non-abstract aria role
  • #214 new rule: react-a11y-role-has-required-aria-props - Elements with aria roles must have all required attributes according to the role
  • #213 new rule: react-a11y-props - Enforce all aria-* props are valid.
  • #212 new rule: react-a11y-img-has-alt - elements must have an alt-text defined
  • #211 new rule: react-a11y-tabindex-no-positive - Enforce tabIndex value is not greater than zero.
  • #199 new rule: react-a11y-anchors
  • #197 new rule: react-a11y-titles
  • #194 new rule: react-a11y-lang
  • #239 Support for context.only in Mocha related rules
  • #265 allow other projects to use extends for our tslint.json
  • #234 react-aria rules: update implicit roles, aria schema, and role schema to support ARIA 1.1
  • #218 Update react-a11y-img-has-alt - If an image has an alt or title attribute, it should not have a presentation role

2.0.10

All Issues

  • #189 new security rule: iframe has invalid or missing sandbox attribute
  • #73 new rule: unused react interface property
  • #180 new rule: chai - indexOf can be .contains call
  • #179 new rule: unneeded mocha done
  • #171 new rule: no-unsupported-browser-code
  • #115 new rule: no single line block comment
  • #85 new rule: mocha-no-side-effect-code
  • #44 new rule: enforce one of the two Underscore function call forms
  • #190 Add tslint.json to npm release
  • #184 Export TestHelper in npm package
  • #183 add Common Weakness Enumeration info to all rules and generate spreadsheet
  • #173 rewrite formatters adding extra white space
  • #172 import-name needs to be configurable for kebab-cased imports
  • #110 prefer-array-literal: Error when using Array in a type annotation
  • #83 enhance chai-vague-error rule
  • #64 Update development section of the doc