Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
environment (#10)
Browse files Browse the repository at this point in the history
* Revert "use eslint for both error check and code style"

This reverts commit 7996094.

* Revert "remove prettier: not mature enough for this project requirements"

This reverts commit b548a52.

* update prettier settings

* use Node.js v10

* upgrade packages
  • Loading branch information
josmardias authored Aug 21, 2018
1 parent 101fc67 commit 06e4d12
Show file tree
Hide file tree
Showing 7 changed files with 4,649 additions and 2,505 deletions.
13 changes: 9 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global module */

module.exports = {
env: {
es6: true,
Expand All @@ -9,10 +7,17 @@ module.exports = {
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'./config/eslint/detect-errors.js',
'./config/eslint/code-style.js',
'prettier',
],
parserOptions: {
sourceType: 'module',
},
/*
User experience rules (bug prevention) should be added as "error".
Developer experience (code quality) rules should be added as "warn".
Code style rules shouldn't be added here, use prettier instead.
*/
rules: {
'no-unused-vars': ['warn'],
},
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8
v10
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
bracketSpacing: true,
printWidth: 100,
semi: false,
singleQuote: true,
trailingComma: 'all',
}
231 changes: 0 additions & 231 deletions config/eslint/code-style.js

This file was deleted.

Loading

0 comments on commit 06e4d12

Please sign in to comment.