Skip to content

Commit

Permalink
[trivial] Deleted .eslintrc.js and created .eslintrc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido-Barnea committed Oct 21, 2023
1 parent 3a0b9eb commit 8580be0
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .eslintrc.js

This file was deleted.

52 changes: 52 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"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,
{
"SwitchCase": 1,
"offsetTernaryExpressions": true
}
],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"prefer-const": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "_",
"argsIgnorePattern": "_",
"caughtErrorsIgnorePattern": "_"
}
],
"no-unneeded-ternary": ["error"]
}
}

0 comments on commit 8580be0

Please sign in to comment.