Skip to content

Commit

Permalink
chore: Rework ESLint config, format .prettierrc, add vendor stuff to …
Browse files Browse the repository at this point in the history
….eslintignore
  • Loading branch information
halfzebra committed Sep 28, 2018
1 parent b5fa103 commit 1766ea0
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 25 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
elm-stuff/
template/
tests/
node_modules/
build/
31 changes: 31 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6
},
"extends": [
"eslint:recommended"
],
"plugins": [
"prettier"
],
"rules": {
"curly": "error",
"no-console": "off",
"no-else-return": "error",
"no-inner-declarations": "off",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prettier/prettier": [
"error",
{
"singleQuote": true
}
],
"strict": "error"
}
}
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
singleQuote: true
"singleQuote": true
}
7 changes: 7 additions & 0 deletions tests/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

module.exports = {
env: {
mocha: true
}
};

0 comments on commit 1766ea0

Please sign in to comment.