Skip to content

Commit

Permalink
[Dev Deps] update @types/eslint, @types/node, `@typescript-eslint…
Browse files Browse the repository at this point in the history
…/parser`, `eslint-config-airbnb-base`, `eslint-plugin-import`, `typescript`
  • Loading branch information
ljharb committed Jun 12, 2020
1 parent 45e482a commit fbd799c
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 17 deletions.
2 changes: 0 additions & 2 deletions lib/rules/jsx-curly-newline.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ module.exports = {
}
],


messages: {
expectedBefore: 'Expected newline before \'}\'.',
expectedAfter: 'Expected newline after \'{\'.',
Expand Down Expand Up @@ -169,7 +168,6 @@ module.exports = {
}
}


// ----------------------------------------------------------------------
// Public
// ----------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion lib/rules/jsx-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const hasProp = require('jsx-ast-utils/hasProp');
const docsUrl = require('../util/docsUrl');
const pragmaUtil = require('../util/pragma');


// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion lib/rules/jsx-max-depth.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ module.exports = {
return count;
}


function report(node, depth) {
context.report({
node,
Expand Down
1 change: 0 additions & 1 deletion lib/util/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ function getComponentProperties(node) {
}
}


/**
* Gets the first node in a line from the initial node, excluding whitespace.
* @param {Object} context The node to check
Expand Down
1 change: 0 additions & 1 deletion lib/util/pragma.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const JSX_ANNOTATION_REGEX = /^\*\s*@jsx\s+([^\s]+)/;
// Does not check for reserved keywords or unicode characters
const JS_IDENTIFIER_REGEX = /^[_$a-zA-Z][_$a-zA-Z0-9]*$/;


function getCreateClassFromContext(context) {
let pragma = 'createReactClass';
// .eslintrc shared settings (http://eslint.org/docs/user-guide/configuring#adding-shared-settings)
Expand Down
1 change: 0 additions & 1 deletion lib/util/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ module.exports = function propTypesInstructions(context, components, utils) {
return {};
}


/**
* Mark a prop type as declared
* @param {ASTNode} node The AST node being checked.
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@
"string.prototype.matchall": "^4.0.2"
},
"devDependencies": {
"@types/eslint": "^6.8.0",
"@types/eslint": "^6.8.1",
"@types/estree": "0.0.44",
"@types/node": "^13.13.6",
"@typescript-eslint/parser": "^2.33.0",
"@types/node": "^14.0.13",
"@typescript-eslint/parser": "^2.34.0",
"babel-eslint": "^8.2.6",
"coveralls": "^3.1.0",
"eslint": "^3 || ^4 || ^5 || ^6 || ^7",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-plugin-eslint-plugin": "^2.2.1",
"eslint-plugin-import": "^2.20.2",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-eslint-plugin": "^2.2.2",
"eslint-plugin-import": "^2.21.2",
"istanbul": "^0.4.5",
"markdown-magic": "^1.0.0",
"mocha": "^5.2.0",
"semver": "^6.3.0",
"sinon": "^7.5.0",
"typescript": "^3.9.2",
"typescript": "^3.9.5",
"typescript-eslint-parser": "^20.1.1"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion tests/lib/rules/destructuring-assignment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @fileoverview Rule to forbid or enforce destructuring assignment consistency.
*/
Expand Down
1 change: 0 additions & 1 deletion tests/lib/rules/jsx-curly-newline.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ ruleTester.run('jsx-curly-newline', rule, {
options: CONSISTENT
},


// {singleline: 'consistent', multiline: 'require'} option

{
Expand Down
1 change: 0 additions & 1 deletion tests/lib/rules/jsx-no-bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ ruleTester.run('jsx-no-bind', rule, {
errors: [{message: 'JSX props should not use .bind()'}]
},


// Arrow functions
{
code: '<div onClick={() => alert("1337")}></div>',
Expand Down

0 comments on commit fbd799c

Please sign in to comment.