Skip to content

Commit

Permalink
#14 eslint and prettier configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
ofcyln committed May 16, 2020
1 parent 92e1e75 commit aa13a54
Show file tree
Hide file tree
Showing 7 changed files with 1,114 additions and 89 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"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": {}
}
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"jsxBracketSameLine": true,
"trailingComma": "all",
"semi": true,
"bracketSpacing": true
}
Loading

0 comments on commit aa13a54

Please sign in to comment.