aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-04-18 16:43:31 +0300
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-04-18 16:45:06 +0300
commit8d26eb5b5e6b0bac4298ca0b2946193a841eade5 (patch)
treeba3ba3b996ebb71caba7afbd43d1736a2c55bb6a /.eslintrc.js
Initial commit
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..7bce3e7
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,36 @@
+module.exports = {
+ "env": {
+ "node": true,
+ "es2021": true
+ },
+ "extends": [
+ "eslint:recommended",
+ "plugin:@typescript-eslint/recommended"
+ ],
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "ecmaVersion": 12,
+ "sourceType": "module"
+ },
+ "plugins": [
+ "@typescript-eslint"
+ ],
+ "rules": {
+ "indent": [
+ "error",
+ 2
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "quotes": [
+ "error",
+ "double"
+ ],
+ "semi": [
+ "error",
+ "always"
+ ]
+ }
+};