Skip to content

Commit 27fc5bc

Browse files
author
Joachim Seminck
committed
Rename no-static-typos to no-typos
1 parent 8f188ac commit 27fc5bc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Finally, enable all of the rules that you would like to use. Use [our preset](#
100100
* [react/no-redundant-should-component-update](docs/rules/no-redundant-should-component-update.md): Prevent usage of `shouldComponentUpdate` when extending React.PureComponent
101101
* [react/no-render-return-value](docs/rules/no-render-return-value.md): Prevent usage of the return value of `React.render`
102102
* [react/no-set-state](docs/rules/no-set-state.md): Prevent usage of `setState`
103-
* [react/no-static-typos](docs/rules/no-static-typos.md): Prevent casing typos when declaring static class properties.
103+
* [react/no-typos](docs/rules/no-typos.md): Prevent common casing typos
104104
* [react/no-string-refs](docs/rules/no-string-refs.md): Prevent using string references in `ref` attribute.
105105
* [react/no-unescaped-entities](docs/rules/no-unescaped-entities.md): Prevent invalid characters from appearing in markup
106106
* [react/no-unknown-property](docs/rules/no-unknown-property.md): Prevent usage of unknown DOM property (fixable)

docs/rules/no-static-typos.md renamed to docs/rules/no-typos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Prevent casing typos when declaring static class properties (react/no-static-typos)
1+
# Prevents common casing typos (react/no-typos)
22

33
Ensure no casing typos were made declaring static class properties
44

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var allRules = {
6565
'void-dom-elements-no-children': require('./lib/rules/void-dom-elements-no-children'),
6666
'jsx-tag-spacing': require('./lib/rules/jsx-tag-spacing'),
6767
'no-redundant-should-component-update': require('./lib/rules/no-redundant-should-component-update'),
68-
'no-static-typos': require('./lib/rules/no-static-typos')
68+
'no-typos': require('./lib/rules/no-typos')
6969
};
7070

7171
function filterRules(rules, predicate) {

lib/rules/no-static-typos.js renamed to lib/rules/no-typos.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @fileoverview Prevent casing typos when declaring propTypes, contextTypes and defaultProps
2+
* @fileoverview Prevent common casing typos
33
*/
44
'use strict';
55

@@ -14,7 +14,7 @@ var STATIC_CLASS_PROPERTIES = ['propTypes', 'contextTypes', 'childContextTypes',
1414
module.exports = {
1515
meta: {
1616
docs: {
17-
description: 'Prevent casing typos when declaring static class properties',
17+
description: 'Prevent common casing typos',
1818
category: 'Stylistic Issues',
1919
recommended: false
2020
},

tests/lib/rules/no-static-typos.js renamed to tests/lib/rules/no-typos.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
2-
* @fileoverview Tests for no-static-typos
2+
* @fileoverview Tests for no-typos
33
*/
44
'use strict';
55

66
// -----------------------------------------------------------------------------
77
// Requirements
88
// -----------------------------------------------------------------------------
99

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

1313
var parserOptions = {
@@ -24,7 +24,7 @@ var parserOptions = {
2424
var ERROR_MESSAGE = 'Typo in static class property declaration';
2525

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

2929
valid: [{
3030
code: [

0 commit comments

Comments
 (0)