Skip to content

Commit

Permalink
refactor/style: add ESLint and fix all problems
Browse files Browse the repository at this point in the history
  • Loading branch information
AtilioA committed Oct 24, 2023
1 parent ce9f178 commit eae25ca
Show file tree
Hide file tree
Showing 27 changed files with 2,447 additions and 1,172 deletions.
48 changes: 48 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error", 2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
};
Loading

0 comments on commit eae25ca

Please sign in to comment.