Skip to content

Commit

Permalink
chore(eslint): specify babel config file to parser
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Nov 18, 2021
1 parent 129f4bf commit 7738f29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ const prettierConf = require('./prettier.config.js');

module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
configFile: path.resolve(__dirname, '.babelrc.json'),
},
},
extends: ['airbnb/base', 'prettier'],
rules: {
'prettier/prettier': ['error', prettierConf],
Expand Down

0 comments on commit 7738f29

Please sign in to comment.