Skip to content

Commit afbd8e6

Browse files
lint code
1 parent 0bece06 commit afbd8e6

File tree

120 files changed

+1416
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1416
-195
lines changed

eslint.config.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,40 @@ export default [
4646
"@typescript-eslint/no-non-null-assertion": "off",
4747
"@typescript-eslint/explicit-module-boundary-types": "off",
4848
"@typescript-eslint/no-explicit-any": "off",
49+
// Adicione estas regras:
50+
"padding-line-between-statements": [
51+
"error",
52+
{
53+
blankLine: "always",
54+
prev: "const",
55+
next: "*",
56+
},
57+
{
58+
blankLine: "never",
59+
prev: "const",
60+
next: "const",
61+
},
62+
{
63+
blankLine: "always",
64+
prev: "let",
65+
next: "*",
66+
},
67+
{
68+
blankLine: "never",
69+
prev: "let",
70+
next: "let",
71+
},
72+
{
73+
blankLine: "always",
74+
prev: "var",
75+
next: "*",
76+
},
77+
{
78+
blankLine: "never",
79+
prev: "var",
80+
next: "var",
81+
},
82+
],
4983
"license-header/header": [
5084
"error",
5185
[

server/src/linter/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface LinterDiagnostic {
3232

3333
export function lint(tokens: Token[]): LinterDiagnostic[] {
3434
const diagnostics: LinterDiagnostic[] = [];
35+
3536
Rules.filter(
3637
(rule) => rule.check && enabled.indexOf(rule.code) !== -1,
3738
).forEach((rule) =>

0 commit comments

Comments
 (0)