Skip to content

Commit

Permalink
Update Strict Patterns (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueleite42 authored Jun 4, 2021
1 parent 685b966 commit 56b0f1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@techmmunity/eslint-config",
"version": "1.3.4",
"version": "1.3.5",
"license": "Apache-2.0",
"author": "Techmmunity",
"description": "Techmmunity Custom ESLint Config",
Expand Down
8 changes: 4 additions & 4 deletions src/ts-nextjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ module.exports = {
"error",
{
selector: "default",
format: ["strictCamelCase"],
format: ["camelCase"],
},
{
selector: "enum",
format: ["StrictPascalCase"],
format: ["PascalCase"],
custom: {
regex: "Enum$",
match: true,
Expand All @@ -66,11 +66,11 @@ module.exports = {
},
{
selector: "variableLike",
format: ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"],
format: ["camelCase", "PascalCase", "UPPER_CASE"],
},
{
selector: "typeLike",
format: ["StrictPascalCase"],
format: ["PascalCase"],
},
],
/**
Expand Down
8 changes: 4 additions & 4 deletions src/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ module.exports = {
"error",
{
selector: "default",
format: ["strictCamelCase"],
format: ["camelCase"],
},
{
selector: "enum",
format: ["StrictPascalCase"],
format: ["PascalCase"],
custom: {
regex: "Enum$",
match: true,
Expand All @@ -61,12 +61,12 @@ module.exports = {
},
{
selector: "variableLike",
format: ["strictCamelCase", "UPPER_CASE"],
format: ["camelCase", "UPPER_CASE"],
leadingUnderscore: "allow",
},
{
selector: "typeLike",
format: ["StrictPascalCase"],
format: ["PascalCase"],
},
],
"@typescript-eslint/no-base-to-string": "error",
Expand Down

0 comments on commit 56b0f1e

Please sign in to comment.