Skip to content

Commit

Permalink
ci: adding ESLint and Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Simões committed Jun 1, 2020
1 parent 564322d commit feabf8d
Show file tree
Hide file tree
Showing 33 changed files with 1,232 additions and 241 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"browser": true,
"amd": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"parserOptions": {
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features
"sourceType": "module" // Allows for the use of imports
},
"rules": {}
}
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"jsxBracketSameLine": true
}
Loading

0 comments on commit feabf8d

Please sign in to comment.