Skip to content

Commit

Permalink
revert naming conventions eslint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arobsn committed Aug 8, 2023
1 parent b1d12ef commit 1c7b9f3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,51 @@
"camelcase": "off",
"no-console": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "default", "format": ["camelCase"] },
{ "selector": "typeProperty", "format": ["camelCase", "UPPER_CASE"] },
{ "selector": "enumMember", "format": ["PascalCase", "UPPER_CASE"] },
{ "selector": "objectLiteralProperty", "format": ["camelCase", "UPPER_CASE"] },
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow" },
{ "selector": "typeLike", "format": ["PascalCase"] },
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
},
{
"selector": "function",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow"
},
{
"selector": [
"classProperty",
"objectLiteralProperty",
"typeProperty",
"classMethod",
"objectLiteralMethod",
"typeMethod",
"accessor",
"enumMember"
],
"format": null,
"modifiers": ["requiresQuotes"]
},
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "require"
},
{
"selector": "memberLike",
"modifiers": ["protected"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
}
],
"eslint-comments/disable-enable-pair": ["error", { "allowWholeFile": true }],
"eslint-comments/no-unused-disable": "error",
"import/order": ["warn", { "alphabetize": { "order": "asc" } }],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"rootDir": "./src",
"outDir": "dist/cjs"
},
"include": ["src/**/*.ts", "src/constantSerializer.ts"]
"include": ["src/**/*.ts"]
}

0 comments on commit 1c7b9f3

Please sign in to comment.