Skip to content

Commit

Permalink
chore(prettier): Setup usage of prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jun 18, 2017
1 parent 4b82fbe commit 7cfe1cf
Show file tree
Hide file tree
Showing 3 changed files with 308 additions and 134 deletions.
24 changes: 15 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: 'airbnb',
extends: ['airbnb', 'prettier'],
rules: {
'max-len': ["warn", 160, 4, {"ignoreUrls": true}],
'no-multi-spaces': ["error", { exceptions: { "ImportDeclaration": true } }],
Expand Down Expand Up @@ -29,15 +29,12 @@ module.exports = {
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,

// eslint-3.3.0
"no-global-assign": 0,
"no-unsafe-negation": 0,

// tmp
"no-restricted-properties": 0,
"no-useless-return": 0,
"no-multi-assign": 0,
// May want to remove at some point
'no-restricted-properties': 0,
},
plugins: [
'prettier'
],
globals: {
__BASE_PATH__: false,
},
Expand All @@ -47,4 +44,13 @@ module.exports = {
env: {
browser: true,
},
rules: {
'prettier/prettier': [
'error', {
printWidth: 100,
singleQuote: true,
trailingComma: "es5"
}
],
}
};
Loading

0 comments on commit 7cfe1cf

Please sign in to comment.