Skip to content

Commit

Permalink
release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Apr 6, 2024
1 parent 3233f48 commit 2204a5e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 47 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

#### [1.1.1] - 2024-04-06

- remove haraka:recommended
- remove rules included in eslint:recommended

#### [1.1.0] - 2024-04-06

- chore: update to eslint 8 standards
Expand Down
65 changes: 19 additions & 46 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,28 @@
"use strict";

// 0 = off
// 1 = warn
// 2 = error

const envs = {
node: true,
es6: true,
mocha: true,
};

const globals = {
OK: true,
CONT: true,
DENY: true,
DENYSOFT: true,
DENYDISCONNECT: true,
DENYSOFTDISCONNECT: true,
};

const recommendedRules = {
"dot-notation": "error",
"one-var": ["error", "never"],
"no-empty": ["error", { allowEmptyCatch: true }],
"no-shadow": "error",
"no-undef": "warn",
"no-unused-vars": ["warn", { args: "none" }],
"no-console": "off",
"no-path-concat": "error",
"no-cond-assign": ["error", "except-parens"],
"no-constant-condition": ["error", { checkLoops: false }],
"prefer-const": ["error", { ignoreReadBeforeAssign: true }],
"no-var": "error",
"object-shorthand": ["warn", "always"],
"prefer-template": "warn",
};

module.exports = {
env: envs,
env: {
node: true,
es6: true,
mocha: true,
},
root: true,
extends: "eslint:recommended",
globals: globals,
globals: {
OK: true,
CONT: true,
DENY: true,
DENYSOFT: true,
DENYDISCONNECT: true,
DENYSOFTDISCONNECT: true,
},
rules: {
// 0 = off // 1 = warn // 2 = error
"no-newline-no-curly-if": require("./rules/no-newline-no-curly-if"),
},
configs: {
recommended: {
env: envs,
extends: "eslint:recommended",
globals: globals,
rules: recommendedRules,
},
"no-empty": ["error", { allowEmptyCatch: true }],
"no-undef": "warn",
"no-console": "off",
"no-constant-condition": ["error", { checkLoops: false }],
"prefer-const": ["error", { ignoreReadBeforeAssign: true }],
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@haraka/eslint-config",
"version": "1.1.0",
"version": "1.1.1",
"description": "eslint config for Haraka projects",
"keywords": [
"eslint",
Expand Down

0 comments on commit 2204a5e

Please sign in to comment.