Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

theclive
Copy link

This update fixes #114 by updating eslint and related packages to the latest versions.

Prettier-standard includes following packages so you don't need to install them in your repository:

- eslint
- babel-eslint
- @babel/eslint-parser
Copy link
Author

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

Comment on lines +125 to +127
parserOptions: {
requireConfigFile: false
},
Copy link
Author

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

Comment on lines -134 to -141
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')
Copy link
Author

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

@theclive theclive marked this pull request as ready for review March 30, 2021 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: "prettier/@typescript-eslint" has been merged into "prettier" in eslint-config-prettier 8.0.0
1 participant