forked from OCA/maintainer-quality-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
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). - 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.
- Loading branch information
Showing
4 changed files
with
111 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.