Skip to content

Commit

Permalink
chore(lint): init eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
IB3N committed Nov 7, 2022
1 parent 5d2fa32 commit 0c56306
Show file tree
Hide file tree
Showing 5 changed files with 2,966 additions and 67 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
env: {
browser: true,
es2021: true,
'react-native/react-native': true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended',
],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true,
},
sourceType: 'module',
},
plugins: ['react', 'react-native'],
rules: {
'react/jsx-props-no-spreading': 'warn',
},
};
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ local.properties
buck-out/
\.buckd/
*.keystore

# eslint
.eslintcache
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ images
*/.expo
*/node_modules
*/yarn.lock
*/package
*/package

.eslintcache
Loading

0 comments on commit 0c56306

Please sign in to comment.