Skip to content

Commit

Permalink
Fix linting errors from the var -> const/let PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Seminck committed Jun 28, 2017
1 parent efb7366 commit 84bd235
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Components = require('../util/Components');
// Rule Definition
// ------------------------------------------------------------------------------

var STATIC_CLASS_PROPERTIES = ['propTypes', 'contextTypes', 'childContextTypes', 'defaultProps'];
const STATIC_CLASS_PROPERTIES = ['propTypes', 'contextTypes', 'childContextTypes', 'defaultProps'];

module.exports = {
meta: {
Expand Down
10 changes: 5 additions & 5 deletions tests/lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
// Requirements
// -----------------------------------------------------------------------------

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

var parserOptions = {
const parserOptions = {
ecmaVersion: 6,
ecmaFeatures: {
jsx: true
Expand All @@ -21,9 +21,9 @@ var parserOptions = {
// Tests
// -----------------------------------------------------------------------------

var ERROR_MESSAGE = 'Typo in static class property declaration';
const ERROR_MESSAGE = 'Typo in static class property declaration';

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

valid: [{
Expand Down

0 comments on commit 84bd235

Please sign in to comment.