Skip to content

Commit

Permalink
Added ESLint and Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sonufrienko committed Aug 18, 2018
1 parent 8f69d1d commit 5fd383c
Show file tree
Hide file tree
Showing 6 changed files with 4,739 additions and 1,039 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
@@ -0,0 +1,17 @@
root = true

[*]
indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

[*.{yml,yaml,json}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
17 changes: 17 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,17 @@
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"plugins": ["prettier", "import"],
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"prettier/prettier": ["error", { "singleQuote": true }],
"class-methods-use-this": 0
}
}
4 changes: 4 additions & 0 deletions .prettierignore
@@ -0,0 +1,4 @@
lib/
package-lock.json
package.json
yarn.lock
6 changes: 6 additions & 0 deletions .prettierrc
@@ -0,0 +1,6 @@
{
"printWidth": 80,
"useTabs": true,
"tabWidth": 2,
"singleQuote": true
}

0 comments on commit 5fd383c

Please sign in to comment.