Skip to content

Commit

Permalink
Update eslint.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wandyezj committed Feb 16, 2024
1 parent f796108 commit d5dc7e0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions config/eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"rules": {

// https://eslint.org/docs/latest/rules/eqeqeq
// poka-yoke
"eqeqeq": ["error", "always"],
Expand All @@ -24,11 +23,7 @@

// https://eslint.org/docs/latest/rules/quotes
// consistency
"quotes": [
"warn",
"double",
{ "allowTemplateLiterals": true, "avoidEscape": true }
],
"quotes": ["warn", "double", { "allowTemplateLiterals": true, "avoidEscape": true }],

// https://eslint.org/docs/latest/rules/semi
// poka-yoke
Expand Down Expand Up @@ -57,6 +52,13 @@
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": ["variable"],
"modifiers": ["const"],
"format": ["strictCamelCase", "UPPER_CASE"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "enumMember",
"format": ["PascalCase"],
Expand Down

0 comments on commit d5dc7e0

Please sign in to comment.