Skip to content
Permalink
Browse files
tests: Fix parser error
  • Loading branch information
MichaelDeBoey committed May 11, 2020
1 parent 7133483 commit 22a5c0d59dc31725ed2c58fb53d7786c98640a5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
@@ -11,7 +11,7 @@
"devDependencies": {
"ajv": "^6.10.2",
"babel-cli": "^6.26.0",
"babel-eslint": "^10.0.2",
"babel-eslint": "^10.1.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.7.0",
@@ -199,7 +199,7 @@ const ALWAYS_VALID = [
*/
{
const ruleTester = new RuleTester({
parser: 'babel-eslint',
parser: require.resolve('babel-eslint'),
});

ruleTester.run('no-undef must not trigger an error in these cases', noUndefRule, {
@@ -210,7 +210,7 @@ const ALWAYS_VALID = [

{
const ruleTester = new RuleTester({
parser: 'babel-eslint',
parser: require.resolve('babel-eslint'),
});

ruleTester.run('no-undef must trigger an error when define-flow-type is not used in these cases', noUndefRule, {
@@ -92,7 +92,7 @@ const ALWAYS_VALID = [
*/
{
const ruleTester = new RuleTester({
parser: 'babel-eslint',
parser: require.resolve('babel-eslint'),
});

ruleTester.run('no-unused-vars must not trigger an error in these cases', noUnusedVarsRule, {
@@ -103,7 +103,7 @@ const ALWAYS_VALID = [

{
const ruleTester = new RuleTester({
parser: 'babel-eslint',
parser: require.resolve('babel-eslint'),
});

ruleTester.run('no-unused-vars must trigger an error in these cases', noUnusedVarsRule, {
@@ -117,7 +117,7 @@ const ALWAYS_VALID = [

{
const ruleTester = new RuleTester({
parser: 'babel-eslint',
parser: require.resolve('babel-eslint'),
rules: {
'use-flow-type': 1,
},

0 comments on commit 22a5c0d

Please sign in to comment.