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

[DO NOT MERGE] Prettier test #1441

Closed
wants to merge 2 commits into from
Closed

Conversation

yajo
Copy link
Member

@yajo yajo commented Nov 19, 2019

Just testing some new pre-commit configs, using https://prettier.io/ and eslint --fix.

I'll open another PR in MQT, this is just the showcase of it.

1st commit includes the configuration changes, and 2nd commit is pre-commig run --all-files so you see the result.

@Tecnativa

yajo added 2 commits November 19, 2019 11:07
- Add Prettier.
- Configure ESLint to not conflict with Prettier.
- ConfigureESLint to --fix other things.
@OCA-git-bot
Copy link
Contributor

Hi @yajo, @Tardo,
some modules you are maintaining are being modified, check this out!

@yajo yajo self-assigned this Nov 19, 2019
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 19, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Configure ESLint using `eslint-config-prettier` and removing stylistic checks to avoid conflicts with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
@yajo
Copy link
Member Author

yajo commented Nov 19, 2019

This remains here as an example for OCA/maintainer-quality-tools#618. Go there if you liked it! 😊

@yajo yajo closed this Nov 19, 2019
@yajo yajo deleted the 13.0-prettier-test branch November 19, 2019 11:26
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 19, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Configure ESLint using `eslint-config-prettier` and removing stylistic checks to avoid conflicts with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 19, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Configure ESLint using `eslint-config-prettier` and removing stylistic checks to avoid conflicts with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 19, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Configure ESLint using `eslint-config-prettier` and removing stylistic checks to avoid conflicts with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 21, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Configure ESLint using `eslint-config-prettier` and removing stylistic checks to avoid conflicts with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 21, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Configure ESLint using `eslint-config-prettier` and removing stylistic checks to avoid conflicts with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
@yajo yajo restored the 13.0-prettier-test branch November 26, 2019 11:08
@yajo yajo deleted the 13.0-prettier-test branch November 26, 2019 11:22
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 26, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Transform `.eslintrc` (deprecated) to `.eslintrc.yml`, which supports more advanced syntax.
- Simplify `.eslintrc.yml` removing disabled checks. All checks are disabled by default anyways.
- Remove from `.eslintrc.yml` all stylistic checks that would conflict with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 28, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Transform `.eslintrc` (deprecated) to `.eslintrc.yml`, which supports more advanced syntax.
- Simplify `.eslintrc.yml` removing disabled checks. All checks are disabled by default anyways.
- Remove from `.eslintrc.yml` all stylistic checks that would conflict with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Nov 28, 2019
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Transform `.eslintrc` (deprecated) to `.eslintrc.yml`, which supports more advanced syntax.
- Simplify `.eslintrc.yml` removing disabled checks. All checks are disabled by default anyways.
- Remove from `.eslintrc.yml` all stylistic checks that would conflict with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.
- Add prettier ignoration tags to README.md template, to avoid double-formatting addons table section.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Jan 15, 2020
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Transform `.eslintrc` (deprecated) to `.eslintrc.yml`, which supports more advanced syntax.
- Simplify `.eslintrc.yml` removing disabled checks. All checks are disabled by default anyways.
- Remove from `.eslintrc.yml` all stylistic checks that would conflict with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.
- Add prettier ignoration tags to README.md template, to avoid double-formatting addons table section.
- Ignore for now README.md files to avoid overcomplicating maintenance of those files.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo added a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Jan 15, 2020
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Transform `.eslintrc` (deprecated) to `.eslintrc.yml`, which supports more advanced syntax.
- Simplify `.eslintrc.yml` removing disabled checks. All checks are disabled by default anyways.
- Remove from `.eslintrc.yml` all stylistic checks that would conflict with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.
- Add prettier ignoration tags to README.md template, to avoid double-formatting addons table section.
- Ignore for now README.md files to avoid overcomplicating maintenance of those files.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo pushed a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Jan 15, 2020
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Transform `.eslintrc` (deprecated) to `.eslintrc.yml`, which supports more advanced syntax.
- Simplify `.eslintrc.yml` removing disabled checks. All checks are disabled by default anyways.
- Remove from `.eslintrc.yml` all stylistic checks that would conflict with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.
- Add prettier ignoration tags to README.md template, to avoid double-formatting addons table section.
- Ignore for now README.md files to avoid overcomplicating maintenance of those files.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
yajo pushed a commit to Tecnativa/maintainer-quality-tools that referenced this pull request Jan 16, 2020
This commit includes:

- Using https://prettier.io/ for supported file formats (these include CSS, SCSS, JS, HTML, MD, YAML and others; see website).
- Transform `.eslintrc` (deprecated) to `.eslintrc.yml`, which supports more advanced syntax.
- Simplify `.eslintrc.yml` removing disabled checks. All checks are disabled by default anyways.
- Remove from `.eslintrc.yml` all stylistic checks that would conflict with Prettier.
- Add `Promise` as a builtin for v13 (this was missed before, so I take this chance to add that).
- Format properly `.travis.yml` so that when it gets merged downstream it gets less diffs when passed trhough Prettier.
- Use `eslint --fix` so we get less warnings and more fixes.
- Add prettier ignoration tags to README.md template, to avoid double-formatting addons table section.
- Ignore for now README.md files to avoid overcomplicating maintenance of those files.

Some insights:

- See OCA/web#1441 as an example of how a web repo looks after this change.
- A beta XML Prettier plugin exists, which could be used in the future to autoformat XML files too!
  - But it's not usable for us right now, as you can see in prettier/plugin-xml#13 (comment)
  - Once that's fixed, we can use a configuration similar to prettier/plugin-xml#17 (comment) to integrate here.
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.

2 participants