Skip to content

Commit

Permalink
chore(*): update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Jul 20, 2024
1 parent 6117352 commit 80a613f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,37 @@ module.exports = {
],
rules: {
// Basic
quotes: ["error", "single"],
"no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 1 }],
"no-multi-spaces": "error",
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error", "always"],
"no-trailing-spaces": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"indent": ["error", 2],
"brace-style": ["error", "1tbs", { allowSingleLine: true }],
indent: ["error", 2, { SwitchCase: 1 }],
"keyword-spacing": ["error", { before: true, after: true }],
"padded-blocks": ["error", "never"],
"comma-spacing": ["error", { before: false, after: true }],
"space-in-parens": ["error", "never"],
// TypeScript
"@typescript-eslint/semi": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
// Import
"import/no-cycle": "error",
"import/no-unresolved": "off",
"import/order": [
"warn",
{
"newlines-between": "always",
groups: [
"builtin",
"external",
"parent",
"sibling",
["builtin", "external"],
["parent", "sibling"],
"index",
"object",
"type",
Expand Down

0 comments on commit 80a613f

Please sign in to comment.