Skip to content

Commit

Permalink
Updated linting/formatting
Browse files Browse the repository at this point in the history
Added prettier for formatting
Moved from tslint -> eslint (tslint is depracated)
  • Loading branch information
james-pre committed Mar 13, 2023
1 parent a0f2ec4 commit b9a57a0
Show file tree
Hide file tree
Showing 4 changed files with 2,777 additions and 482 deletions.
53 changes: 24 additions & 29 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"no-useless-escape": "warn",
"no-unused-vars": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-unreachable": "warn",
"no-extra-semi": "warn",
"no-fallthrough": "off",
"no-empty": "warn",
"no-case-declarations": "off"
},
"ignorePatterns": [ "scripts/*.js" ],
"plugins": ["@typescript-eslint"]
}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"useTabs": true,
"trailingComma": "es5",
"tabWidth": 4,
"printWidth": 180,
"arrowParens": "avoid"
}
Loading

0 comments on commit b9a57a0

Please sign in to comment.