fix: eslint config
This commit is contained in:
12
.eslintrc
12
.eslintrc
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user