Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Add prettier, husky, lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
ylv-io committed Sep 27, 2019
1 parent 4a376fc commit 61be757
Show file tree
Hide file tree
Showing 5 changed files with 1,081 additions and 41 deletions.
54 changes: 26 additions & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
module.exports = {
"extends": "airbnb-base",
"env": {
"es6": true,
"browser": true,
"jest": true,
extends: 'airbnb-base',
plugins: ['prettier'],
env: {
es6: true,
browser: true,
jest: true,
},
"plugins": [
],
"globals": {
},
"rules": {
"no-underscore-dangle": 0,
"no-await-in-loop": 0,
"no-constant-condition": 0,
"max-len": 0,
"no-console": 0,
"no-nested-ternary": 0,
"no-unused-vars": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"import/prefer-default-export": 0,
"security/no-block-members": 0,
globals: {},
rules: {
'no-underscore-dangle': 0,
'no-await-in-loop': 0,
'no-constant-condition': 0,
'max-len': 0,
'no-console': 0,
'no-nested-ternary': 0,
'no-unused-vars': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/prefer-default-export': 0,
'security/no-block-members': 0,
'no-plusplus': 'off',
"import/no-named-as-default": 0,
"no-restricted-syntax": 0,
"no-param-reassign": 0,
"no-continue": 0,
"no-loop-func": 0,
"prefer-destructuring": 0,
}
};
'import/no-named-as-default': 0,
'no-restricted-syntax': 0,
'no-param-reassign': 0,
'no-continue': 0,
'no-loop-func': 0,
'prefer-destructuring': 0,
},
};
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ module.exports = {
},
],
],
};
};
Loading

0 comments on commit 61be757

Please sign in to comment.