fix: eslint config

This commit is contained in:
Baptiste Grob
2021-01-11 13:18:00 +01:00
parent d44748fcad
commit 5a3b810896

View File

@@ -1,11 +1,15 @@
{ {
"extends": ["eslint:recommended", "semistandard", "prettier"], "extends": ["eslint:recommended", "prettier"],
"parser": "babel-eslint", "parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./app/assets/javascripts/tsconfig.json"
},
"rules": { "rules": {
"standard/no-callback-literal": 0, // Disable this as we have too many callbacks relying on literals "standard/no-callback-literal": 0, // Disable this as we have too many callbacks relying on literals
"no-throw-literal": 0, "no-throw-literal": 0,
// "no-console": "error", "no-console": "warn",
"semi": 1 "semi": 1,
"camelcase": "warn"
}, },
"env": { "env": {
"browser": true "browser": true