Skip to content

Commit

Permalink
Rename no-static-typos to no-typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Seminck committed Jun 28, 2017
1 parent 7620d47 commit efb7366
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Finally, enable all of the rules that you would like to use. Use [our preset](#
* [react/no-redundant-should-component-update](docs/rules/no-redundant-should-component-update.md): Prevent usage of `shouldComponentUpdate` when extending React.PureComponent
* [react/no-render-return-value](docs/rules/no-render-return-value.md): Prevent usage of the return value of `React.render`
* [react/no-set-state](docs/rules/no-set-state.md): Prevent usage of `setState`
* [react/no-static-typos](docs/rules/no-static-typos.md): Prevent casing typos when declaring static class properties.
* [react/no-typos](docs/rules/no-typos.md): Prevent common casing typos
* [react/no-string-refs](docs/rules/no-string-refs.md): Prevent using string references in `ref` attribute.
* [react/no-unescaped-entities](docs/rules/no-unescaped-entities.md): Prevent invalid characters from appearing in markup
* [react/no-unknown-property](docs/rules/no-unknown-property.md): Prevent usage of unknown DOM property (fixable)
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-static-typos.md → docs/rules/no-typos.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Prevent casing typos when declaring static class properties (react/no-static-typos)
# Prevents common casing typos (react/no-typos)

Ensure no casing typos were made declaring static class properties

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const allRules = {
'jsx-tag-spacing': require('./lib/rules/jsx-tag-spacing'),
'no-redundant-should-component-update': require('./lib/rules/no-redundant-should-component-update'),
'boolean-prop-naming': require('./lib/rules/boolean-prop-naming'),
'no-static-typos': require('./lib/rules/no-static-typos')
'no-typos': require('./lib/rules/no-typos')
};

function filterRules(rules, predicate) {
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-static-typos.js → lib/rules/no-typos.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @fileoverview Prevent casing typos when declaring propTypes, contextTypes and defaultProps
* @fileoverview Prevent common casing typos
*/
'use strict';

Expand All @@ -14,7 +14,7 @@ var STATIC_CLASS_PROPERTIES = ['propTypes', 'contextTypes', 'childContextTypes',
module.exports = {
meta: {
docs: {
description: 'Prevent casing typos when declaring static class properties',
description: 'Prevent common casing typos',
category: 'Stylistic Issues',
recommended: false
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* @fileoverview Tests for no-static-typos
* @fileoverview Tests for no-typos
*/
'use strict';

// -----------------------------------------------------------------------------
// Requirements
// -----------------------------------------------------------------------------

var rule = require('../../../lib/rules/no-static-typos');
var rule = require('../../../lib/rules/no-typos');
var RuleTester = require('eslint').RuleTester;

var parserOptions = {
Expand All @@ -24,7 +24,7 @@ var parserOptions = {
var ERROR_MESSAGE = 'Typo in static class property declaration';

var ruleTester = new RuleTester();
ruleTester.run('no-static-typos', rule, {
ruleTester.run('no-typos', rule, {

valid: [{
code: [
Expand Down

0 comments on commit efb7366

Please sign in to comment.