Skip to content

Commit

Permalink
feat: configure eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
edlimerkaj committed Nov 24, 2020
1 parent e5aa430 commit ead0847
Show file tree
Hide file tree
Showing 4 changed files with 1,103 additions and 91 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 = {
env: {
browser: true,
es6: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: "module",
},
plugins: ["react"],
rules: {},
}
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
printWidth: 85,
arrowParens: "always",
semi: false,
tabWidth: 2,
}
Loading

0 comments on commit ead0847

Please sign in to comment.