Skip to content

Commit

Permalink
feat: add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Uceda committed Aug 21, 2022
1 parent 833a9dd commit aec8e98
Show file tree
Hide file tree
Showing 5 changed files with 2,068 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
globals: {
context: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
settings: {
react: {
version: 'detect',
},
},
env: {
es2021: true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:prettier/recommended',
],
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
},
};
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
Loading

0 comments on commit aec8e98

Please sign in to comment.