Skip to content

Commit

Permalink
style(prettier)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 27, 2025
1 parent 508cbc5 commit e72e6a6
Show file tree
Hide file tree
Showing 7 changed files with 679 additions and 720 deletions.
6 changes: 3 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
engines:
eslint:
enabled: true
channel: "eslint-9"
channel: 'eslint-9'
config:
config: "eslint.config.mjs"
config: 'eslint.config.mjs'
checks:
complexity:
enabled: false

ratings:
paths:
- "**.js"
- '**.js'

checks:
file-lines:
Expand Down
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
allow:
- dependency-type: production
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "18 7 * * 4"
- cron: '18 7 * * 4'

jobs:
codeql:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ To check access results from other plugins, use the standard _results_
methods.

```js
const ar = connection.results.get("access");
const ar = connection.results.get('access')
if (ar.pass.length > 2) {
// they passed the connection and helo checks
}

const ar = connection.transaction.results.get("access");
const ar = connection.transaction.results.get('access')
if (ar.pass.length > 2) {
// they passed the mail and rcpt checks
}
Expand Down
23 changes: 13 additions & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import globals from 'globals'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
})

export default [
...compat.extends("@haraka"),
...compat.extends('@haraka'),
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
"rules": {
'no-unused-vars': ['warn', { caughtErrorsIgnorePattern: '^ignore' }],
}
},
];
]
Loading

0 comments on commit e72e6a6

Please sign in to comment.