This repository has been archived by the owner on May 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] Add Prettier and ESLint with --fix
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.
- Loading branch information