* add new reactA11yMediaCaptionsRule
* add react-a11y-media-caption to readme
* add unit tests
fix behavior of validateMediaType
* fix according to comments
add unit tests
* modify get JsxExpression
text to look only for string literals
* modify to check string literal inside JsxExpression
add spread attributes logic to track elements
* replace getAttributeText with getStringLiteral
* add uni test to indicate no variable as expression
* git l
* Use only tslint --test for prefer-array-literal rule
* Restrict only global objects with Array (fixes#856)
* Add allow-single-argument option and check argument types (fixes#822)
* Update docs and metadata for prefer-array-literal rule
* Apply suggestions related to wording in README.md
Co-Authored-By: Josh Goldberg <joshuakgoldberg@outlook.com>
* Change new option name to allow-size-argument
* Use Set for restricted namespaces. Add `self` to restrictions
* Fix error message for incorrect size argument
* Handle array spread in argument position
* Drop node text from all error messages
* Handle potential exceptions from TS
* Add comment about additional check for SpreadElement
* Revamped configs into 'core', 'latest', and (legacy) 'recommended'
Those three config files now exist as `.json` under `/configs`; they're copied to `dist/build/configs`. `recommended.json` becomes `tslint.json` as well.
* Normalized trailing commas; added back .gitignore fields
* Moved void-zero to latest.json
* Moved to exporting root-level configs
* Switched to auto-generating latest.json
* Aligned naming with TSLint's recommended -> latest
* Update ExtendedMetadata.ts
* Replace Release Notes with info about CHANGELOG.md and Releases
* Replace Release Notes with links to CHANGELOG.md and Releases
* Updated Releases (markdown)
* Revert "Updated Releases (markdown)"
This reverts commit b9214fd89cc3cd2238a4f43c3c4bf7ac3c2cc7e9.
* Add instruction to replace @next placeholder
* Move Wiki files to docs folder (fixes#808)
* Apply Prettier formatter to docs
* Update link to Releases doc
* Replace Markdown table format with HTML table
* Add links from removed Releases page to README.md
* Validate order of rules in README.md (fixes#816)
* Fix rules order in README.md
* create-rule task also updates README (fixed#816)
* Update CONTRIBUTING.md with detais about README.md actions (fixes#648)
* implement reactA11yIFramesRule
add unit tests
* generate README and tslint.json
* generate README and tslint.json
* Rename reactA11yIFramesRule.ts to reactA11yIframesRule.ts
* Rename reactA11yIFramesRuleTests.ts to reactA11yIframesRuleTests.ts
* add call to super, fix README.md, lowercase tsUtils
* add tslint tests
fix build error (String -> string)
* update tslint-warnings after npm install
* remove mocha test
add comma to rule description
fix function names in test.tsx.lint
* refactor reactA11yIframsRule to use walk function
add unit tests for class and function rule enforcement
* remove resetting previousTiltles when JsxFragment is enountered
* add some test cases
* add rule and test
* feeback - simplify rule, update to new test format, fix descriptions
* feedback - fix typo, version, rationale on one line
* feedback -add fix for rule
* Remove extra line
* implement react-a11y-accessible-headings
* fix tslint.json after merge
* add an ability to distinct unbinded/binded jsxElements.
fix review comments
add unit tests
* re-implement rule, remove unwanted private members,
re-write unit tests
* remove elements ordering enforcement,
add default heading length,
fix rule description and options description
add unit tests for react components and functions,
add unit tests for nested heading elements, spans and expressions
* Add reference for react-a11y-no-onchange
to README.md and metadata.rationale
* README: add missing closing li tag
* README: put use-simple-attribute into alphabetical position
* docs(react-a11y-anchors): add references to metadata.rational
* docs(react-a11y-event-has-role): add references to metadata.rational
* docs(react-a11y-img-has-alt): add references to metadata.rational
* docs(react-a11y-input-elements): add references to metadata.rational
* docs(react-a11y-lang): add references to metadata.rational
* docs(react-a11y-required): add references to metadata.rational
* docs(react-a11y-role-has-required-aria-props): add references to metadata.rational
* docs(react-a11y-no-positive): add references to metadata.rational
* docs(react-a11y-titles): add references to metadata.rational
* docs(react-a11y-role-supports-aria-props): add references to metadata.rational
- sync description with README in markdown format
* docs(react-a11y-role): add references to metadata.rational
- sync description with README in markdown format
* Updated Configuration in README.md to refer to tslint.json
No need to have it mention Grunt specifically, since `tslint.json` is the standard for configuring lint settings.
Fixes#627.
* Nit: option
* Add prettier, prettierrc and prettierignore
* Add tslint-config-prettier to avoid tslint and prettier conflicts
* First prettier run
* Prettify json files
* Ignore package.json and package-lock.json
* Prettier json files
* Use single quotes
* Revert to single quotes
* Use 4 spaces when creating JSON files
* Remove TODO comments
* Bring back TODO comments
* Add tslint:check as part of test script
* Remove conflicting rules from tslint.json as reported by tslint-config-prettier
* Use exact version for prettier
* Fix tests
* tslint-disable for variable-name
* Add no-unnecessary-semicolons to disabled rules
* Disable arrow-return-shorthand
* Make comment spacing consistent
* Update recommendations
* Single space before and after curly parens
* Generate recommended_ruleset with single quotes
* Single quote 'rule' key
* Grammatical fix
* Generate recommended ruleset
* Ignore recommended_ruleset.js
* Format markdown files using prettier
* Format *.md files
* Remove new line
* Add tslint:check before linting
* Update .prettierignore
* Add husky and lint-staged
* Run prettier on pre-commit
* Add prettier-vscode as a recommendation
* Escape asterisk
* Remove extra space
* Remove unwanted string concatenations
* Fix lint errors
* Add regular Grunt tasks to npm scripts
* Add example for testing rules with tslint --test
* Migrate custom grunt tasks to node scripts
* Add create rule task
* Remove Grunt and related packages
* Use ES2015 template literals for build tasks
* Update VS Code debug tasks
* Add simler watcher tasks and update README with relevant info
* Remove unnecessary Grunt install step on CI
* Fix forrmatting and typos in README.md
* Sorted most scripts alphabeticallt. Renamed ts > tsc
* Split common.js. Use destructuring for requires.
* Remove unnecessary test-data compilation
* Return colorful outpur for errors. Format template literals
* Added an InformativeDocsRule
For any JSDoc comment on something with a name, if the comment only rephrases the name, this complains. Takes in configurable word aliases and a list of "useless" words that don't add to comments. I expect we'll slowly find more words to add to those defaults.
Fixes#457.
* Merge branch 'master'
* Fixed a couple of lint complaints
* Added README.md comments
* Correctly added metadata for rule
* Added auto-generated tslint-warnings.csv
* Add new rule of react-a11y-input-elements
* Update README.md and build new rule
* Use getJsxAttributesFromJsxElement only for input elements
* Revert tslint.json formator changes
* Fix missing revert tslint changes
* Update rule and tests with latest master changes
* feat(ReactThisBindingIssueRule): allow decorators to bind
* refactor(ReactThisBindingIssue): make a method pure
* refactor(ReactThisBindingIssue): use Array.some instead of Array.find
* refactor(ReactThisBindingRule): change schema
* refactor(ReactThisBindingRule): validate config
* refactor(ReactThisBindingRule): refactor test data, more readable array check
* test(ReactThisBindingIssue): fix test data
* fix(ReactThisBindingIssue): fix check for array