-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Delete Phenomic and update dependencies #74
Conversation
The migration to Docusaurus has worked (see stylelint#67), so this deletes Phenomic code as the old engine. - Delete unused directories and files. - Update dependencies. - Use Node 12 (latest) in Travis CI.
Travis CI and Netlify recognize a `.nvmrc` file to detect needed Node version.
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.
Nice cleanup!
There are few thing to improve developer experience.
Also, I noticed following warning after linting:
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
@hudochenkov Thanks for the review! I pushed the changes you reviewed. 😃 About the following comment,
The warning can be fixed by the following change: ⬇️ diff --git a/package.json b/package.json
index ca8119b..401ccc5 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,11 @@
"start": "npm run gendoc && cd website && npm start"
},
"eslintConfig": {
+ "settings": {
+ "react": {
+ "version": "16.5"
+ }
+ },
"root": true,
"extends": [
"eslint:recommended", However, I'm thinking about the description on
The used React version in this project depends on Docusaurus, and we don't need to define the React version explicitly. So, if the React depended by Docusaurus would be updated, we might need to also change the ESLint settings ( I don't think a good idea to depend on a specific React version implicitly, and I think better to ignore the warning now. Because the warning may be fixed naturally in the future. What do you think about my opinion? |
Thank you for changes! I think we need to explicitly set I also noticed this PostCSS warning:
I can't find any issue report in Docusaurus repository about it. Is is something we could fix? |
Make sense. 👍
diff --git a/package.json b/package.json
index ca8119b..02fad9a 100644
--- a/package.json
+++ b/package.json
@@ -28,6 +28,11 @@
"eslint:recommended",
"plugin:react/recommended"
],
+ "settings": {
+ "react": {
+ "version": "detect"
+ }
+ },
"parserOptions": {
"ecmaVersion": "2019"
}, Do you have any good idea? |
Looks like a known issue jsx-eslint/eslint-plugin-react#2218. Let's use
I understand your point. Warnings are telling that something wrong, and I don't like when something wrong :) We have only two ways to remove warning: specify version or remove React plugin. |
Yes, there are some pros and cons, but it seems good to set |
> Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
The above PostCSS warning seems to be due to On the other hand, Perhaps, PostCSS seems to warn here: Thus, I think good to set diff --git a/package.json b/package.json
index e1f03f8..2344406 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"test": "npm run build",
"pregendoc": "rimraf docs",
"gendoc": "node ./scripts/generate-stylelint-docs docs",
- "build": "npm run gendoc && cd website && npm run build",
+ "build": "npm run gendoc && cd website && NODE_ENV=production npm run build",
"start": "npm run gendoc && cd website && npm start"
},
"eslintConfig": { But if using the solution, should we think to install |
Good investigations!
I don't think we need it at the moment, because I don't know any contributor to the website who is using Windows. |
OK, I will push the change of Or Docusaurus v2 seems to set Anyway, |
> Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
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.
Amazing!
Awesome, thanks a bunch @ybiquitous |
I opened the PR facebook/docusaurus#1664 to fix the warning. |
The migration to Docusaurus has worked (see #67), so this deletes Phenomic code as the old engine.
None, but for details see #67.
This PR does the followings:
Demo: https://stylelint-docusaurus.netlify.com/