Skip to content

Commit

Permalink
Add editor config and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra committed Nov 11, 2016
1 parent 05ae93b commit 9d7b961
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
@@ -0,0 +1,23 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# http://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
tab_width = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.txt]
trim_trailing_whitespace = false

[*.{md,json,yml,js}]
indent_style = space
indent_size = 2
20 changes: 20 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,20 @@
env:
browser: true
commonjs: true
es6: true
node: true
parserOptions:
sourceType: module
rules:
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always

0 comments on commit 9d7b961

Please sign in to comment.