Skip to content

Commit

Permalink
ci: adds missing eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Feb 5, 2024
1 parent 26e5d8b commit a74c7dd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"env" : {
"browser" : true,
"node" : true,
"es2022" : true
},
"parser" : "@babel/eslint-parser",
"parserOptions" : {
"ecmaVersion" : 13,
"requireConfigFile" : false
},
"extends" : [ "eslint:recommended" ],
"rules" : {
"indent" : [ "error", "tab", { "SwitchCase": 1, "MemberExpression": "off", "CallExpression": { "arguments": "off" } } ],
"linebreak-style" : [ "error", "unix" ],
"quotes" : [ "error", "double", { "allowTemplateLiterals": true } ],
"semi" : [ "error", "always" ],
"no-mixed-spaces-and-tabs" : [ "error", "smart-tabs" ],
"nonblock-statement-body-position" : [ "error", "beside" ],
"keyword-spacing" : [ "error", { "before": true, "after": true } ],
"no-unused-vars" : [ "warn" ],
"no-cond-assign" : [ "error" ],
"no-useless-escape" : [ "off" ],
"no-console" : [ "off" ],
"no-control-regex" : [ "off" ],
"no-empty" : [ "error", { "allowEmptyCatch": true } ],
"no-prototype-builtins" : [ "off" ],
"no-unmodified-loop-condition" : [ "error" ],
"no-unreachable-loop" : [ "error" ],
"require-atomic-updates" : [ "off" ],
"no-unsafe-optional-chaining" : [ "error" ],
"no-delete-var" : [ "off" ],
"prefer-const" : [ "warn", { "destructuring": "all" } ],
"no-var" : [ "warn" ]
}
}

0 comments on commit a74c7dd

Please sign in to comment.