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

Add .editorconfig #65

Merged
merged 2 commits into from
Aug 24, 2017
Merged

Add .editorconfig #65

merged 2 commits into from
Aug 24, 2017

Conversation

GaryJones
Copy link
Contributor

@GaryJones GaryJones commented Aug 24, 2017

The first commit adds the config.

The second commit is auto applying PHPStorm's formatting, using the editorconfig, and then re-adjusting a few bits back to preferred formatting (like putting the . before pipe and not at the end of the previous line) and a couple of other changes.

To ignore whitespace-only changes, see https://github.com/craigsimps/gulp-wp-toolkit/pull/65/files?w=1

Format files in different ways:

- `.js`, `.json`, `.*rc` and similar files should be 2 space indents.
- `.xml` and the example `Gulpfile.js` (which would be copied into a WordPress theme, which uses 4-space tabs for indentation) should be 4-space tabs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants