Install husky and prettier to format staged files

This commit is contained in:
Lisa
2021-09-19 14:11:59 +00:00
committed by Sofiya Tepikin
parent 50d01cbaa4
commit 3625d5a4bb
4 changed files with 14 additions and 25 deletions
+3 -20
View File
@@ -1,9 +1,6 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:react/recommended',
],
extends: ['eslint:recommended', 'plugin:react/recommended'],
env: {
node: true,
mocha: true,
@@ -24,23 +21,9 @@ module.exports = {
},
},
rules: {
indent: ['error', 2],
'no-console': ['error', { 'allow': ['warn', 'error'] }],
'space-before-function-paren': 0,
semi: ['warn', 'never'],
'space-infix-ops': ['warn'],
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-var': 'error',
'prefer-const': 'error',
'no-trailing-spaces': 'error',
'react/prop-types': 2,
'max-len': [
1,
{
'ignoreStrings': true,
'ignoreComments': true,
'ignoreTemplateLiterals': true
}
],
'no-multi-spaces': 2,
},
};
}