-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade eslint & related packages #116
base: master
Are you sure you want to change the base?
Conversation
Prettier-standard includes following packages so you don't need to install them in your repository: | ||
|
||
- eslint | ||
- babel-eslint | ||
- @babel/eslint-parser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
babel-eslint
was deprecated 6 months ago
parserOptions: { | ||
requireConfigFile: false | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This solves the babel parsing error that throws for each file after upgrading to @babel/eslint-parser
:
./prettier-standard/src/cli.js
0:0 error Parsing error: No Babel config file detected for ./prettier-standard/src/cli.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files
./prettier-standard/src/index.js
0:0 error Parsing error: No Babel config file detected for ./prettier-standard/src/index.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files
./prettier-standard/src/scms/git.js
0:0 error Parsing error: No Babel config file detected for ./prettier-standard/src/scms/git.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files
./prettier-standard/src/utils.js
0:0 error Parsing error: No Babel config file detected for ./prettier-standard/src/utils.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files
./prettier-standard/test/cli.test.js
0:0 error Parsing error: No Babel config file detected for ./prettier-standard/test/cli.test.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files
./prettier-standard/test/index.test.js
0:0 error Parsing error: No Babel config file detected for ./prettier-standard/test/index.test.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files
getConfig('prettier', 'index.js'), | ||
getConfig('prettier', '@typescript-eslint.js'), | ||
getConfig('prettier', 'babel.js'), | ||
getConfig('prettier', 'flowtype.js'), | ||
getConfig('prettier', 'react.js'), | ||
getConfig('prettier', 'standard.js'), | ||
getConfig('prettier', 'unicorn.js'), | ||
getConfig('prettier', 'vue.js') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This addresses the breaking changes from v8.0.0 of eslint-config-prettier
This update fixes #114 by updating eslint and related packages to the latest versions.