Skip to content

Commit de2602e

Browse files
authored
Use @babel/eslint-parser in integration tests (#1179)
1 parent ccda941 commit de2602e

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

test/integration/config.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,24 @@ const enableAllRules = Object.fromEntries(
99

1010
module.exports = {
1111
root: true,
12-
parser: 'babel-eslint',
12+
parser: '@babel/eslint-parser',
1313
parserOptions: {
1414
ecmaVersion: 2021,
1515
ecmaFeatures: {
1616
jsx: true
17+
},
18+
requireConfigFile: false,
19+
babelOptions: {
20+
babelrc: false,
21+
configFile: false,
22+
parserOpts: {
23+
plugins: [
24+
'jsx',
25+
'classProperties',
26+
'doExpressions',
27+
'exportDefaultFrom'
28+
]
29+
}
1730
}
1831
},
1932
plugins: [

test/integration/projects.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ module.exports = [
5959
'tests/**'
6060
]
6161
},
62-
'https://github.com/facebook/react',
6362
{
6463
repository: 'https://github.com/angular/angular',
6564
ignore: [
@@ -94,7 +93,13 @@ module.exports = [
9493
'https://github.com/sindresorhus/capture-website',
9594
'https://github.com/sindresorhus/file-type',
9695
'https://github.com/sindresorhus/slugify',
97-
'https://github.com/gatsbyjs/gatsby',
96+
{
97+
repository: 'https://github.com/gatsbyjs/gatsby',
98+
ignore: [
99+
// These files use `flow`
100+
'**/*.js'
101+
]
102+
},
98103
{
99104
repository: 'https://github.com/puppeteer/puppeteer',
100105
ignore: [
@@ -123,7 +128,6 @@ module.exports = [
123128
]
124129
},
125130
'https://github.com/ReactTraining/react-router',
126-
'https://github.com/facebook/relay',
127131
'https://github.com/mozilla/pdf.js',
128132
// #912
129133
{

0 commit comments

Comments
 (0)