eslint-plugin-haraka
Advanced tools
Comparing version 1.0.14 to 1.0.15
## 1.0.14 - 2021-02-03 | ||
#### N.N.N - YYYY-MM-DD | ||
* CI travis -> Github Actions | ||
* dep eslint >= 7 (was 6) | ||
* ecmaVersion 2017 -> 2018 | ||
#### 1.0.15 - 2022-05-28 | ||
## 1.0.13 - 2019-11-22 | ||
- style: replace integers with off|warn|error | ||
- chore(ci): update configs | ||
- chore(pkg): add .release submodule | ||
* eslint prefers 'warn' to 'warning' <sigh> | ||
#### 1.0.14 - 2021-02-03 | ||
## 1.0.12 - 2019-11-22 | ||
- CI travis -> Github Actions | ||
- dep eslint >= 7 (was 6) | ||
- ecmaVersion 2017 -> 2018 | ||
* add prefer-template rule | ||
* add eslint parserOptions: ecmaVersion: 2017 | ||
* convert .eslintrc.json to .eslintrc.yaml | ||
#### 1.0.13 - 2019-11-22 | ||
## 1.0.11 - 2019-07-09 | ||
- eslint prefers 'warn' to 'warning' <sigh> | ||
* add brace-style rule | ||
#### 1.0.12 - 2019-11-22 | ||
## 1.0.10 - 2019-06-22 | ||
- add prefer-template rule | ||
- add eslint parserOptions: ecmaVersion: 2017 | ||
- convert .eslintrc.json to .eslintrc.yaml | ||
* remove node 6 testing | ||
#### 1.0.11 - 2019-07-09 | ||
## 1.0.9 - 2017-09-16 | ||
- add brace-style rule | ||
* remove no-useless-escape rule | ||
#### 1.0.10 - 2019-06-22 | ||
## 1.0.8 - 2017-09-13 | ||
- remove node 6 testing | ||
* import rules from haraka/Haraka | ||
#### 1.0.9 - 2017-09-16 | ||
## 1.0.7 - 2017-06-16 | ||
- remove no-useless-escape rule | ||
* Fixes the format of an eslint plugin. The "rules" section is for custom | ||
#### 1.0.8 - 2017-09-13 | ||
- import rules from haraka/Haraka | ||
#### 1.0.7 - 2017-06-16 | ||
- Fixes the format of an eslint plugin. The "rules" section is for custom | ||
rules (i.e. the code for defining the rules), not for enforced rules. | ||
## 1.0.6 - 2017-06-15 | ||
#### 1.0.6 - 2017-06-15 | ||
* eslint 4 enables no-useless-escape. Reduces error to warning until that rule | ||
- eslint 4 enables no-useless-escape. Reduces error to warning until that rule | ||
is less brain damaged. | ||
## 1.0.5 - 2017-02-01 | ||
#### 1.0.5 - 2017-02-01 | ||
* fixed missing comma at end of no-empty rule | ||
* added "no-undef": 1 (warnings only) | ||
- fixed missing comma at end of no-empty rule | ||
- added "no-undef": 1 (warnings only) | ||
## 1.0.3 - 2017-01-27 | ||
#### 1.0.3 - 2017-01-27 | ||
* Updated rules from Haraka main repo | ||
* renamed .eslintrc to .eslintrc.json | ||
* added travis testing | ||
* added install and usage sections to README | ||
* added env:es6=true | ||
* added space-before-function-paren rule | ||
- Updated rules from Haraka main repo | ||
- renamed .eslintrc to .eslintrc.json | ||
- added travis testing | ||
- added install and usage sections to README | ||
- added env:es6=true | ||
- added space-before-function-paren rule |
28
index.js
'use strict'; | ||
// 0 = off | ||
// 1 = warn | ||
// 2 = error | ||
const recommendedRules = { | ||
"comma-dangle": [2, "only-multiline"], | ||
"dot-notation": 2, | ||
"indent": [2, 4, {"SwitchCase": 1}], | ||
"one-var": [2, "never"], | ||
"no-trailing-spaces": [2, { "skipBlankLines": false }], | ||
"keyword-spacing": [2, { | ||
"comma-dangle": ["error", "only-multiline"], | ||
"dot-notation": "error", | ||
"indent": ["error", 4, {"SwitchCase": 1}], | ||
"one-var": ["error", "never"], | ||
"no-trailing-spaces": ["error", { "skipBlankLines": false }], | ||
"keyword-spacing": ["error", { | ||
"before": true, | ||
"after": true | ||
}], | ||
"no-delete-var": 2, | ||
"no-empty": ["error", { "allowEmptyCatch": true }], | ||
"no-label-var": 2, | ||
"no-shadow": 2, | ||
"no-undef": 1, | ||
"no-unused-vars": [ 1, { "args": "none" }], | ||
"space-before-function-paren": [2, { "anonymous": "always", "named": "always" }], | ||
"no-console": 0, | ||
"no-shadow": "error", | ||
"no-undef": "warn", | ||
"no-unused-vars": [ "warn", { "args": "none" }], | ||
"space-before-function-paren": ["error", { "anonymous": "always", "named": "always" }], | ||
"no-console": "off", | ||
"no-path-concat": "error", | ||
@@ -22,0 +24,0 @@ "no-cond-assign": ["error", "except-parens"], |
{ | ||
"name": "eslint-plugin-haraka", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "eslint rules for Haraka projects", | ||
@@ -26,4 +26,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": ">=7" | ||
"eslint": ">=8" | ||
} | ||
} |
# haraka-eslint | ||
[![Build Status][ci-img]][ci-url] | ||
[![Windows Build Status][ci-win-img]][ci-win-url] | ||
[![Code Climate][clim-img]][clim-url] | ||
[![NPM][npm-img]][npm-url] | ||
@@ -41,14 +41,12 @@ | ||
Step #4 above does this automatically when Travis is set up. | ||
Step #4 above does this automatically when CI tests are set up. | ||
If you agree with the lint suggestions, you can run `npm run lintfix` and the changes will be made to your files automatically. | ||
If you disagree, you can add custom rules to your .eslintrc.json file. | ||
If you disagree, you can add custom rules to your .eslintrc file. | ||
<!-- leave these buried at the bottom of the document --> | ||
[ci-img]: https://travis-ci.org/haraka/haraka-eslint.svg | ||
[ci-url]: https://travis-ci.org/haraka/haraka-eslint | ||
[ci-win-img]: https://ci.appveyor.com/api/projects/status/CHANGETHIS?svg=true | ||
[ci-win-url]: https://ci.appveyor.com/project/msimerson/haraka-eslint | ||
[ci-img]: https://github.com/haraka/haraka-eslint/actions/workflows/ci-test.yml/badge.svg | ||
[ci-url]: https://github.com/haraka/haraka-eslint/actions/workflows/ci-test.yml | ||
[clim-img]: https://codeclimate.com/github/haraka/haraka-eslint/badges/gpa.svg | ||
@@ -55,0 +53,0 @@ [clim-url]: https://codeclimate.com/github/haraka/haraka-eslint |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7273
7
76
55
1