Skip to content

Commit

Permalink
chore(release): 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 15, 2020
1 parent 91fffd7 commit af5b27b
Show file tree
Hide file tree
Showing 12 changed files with 5,492 additions and 4,401 deletions.
14 changes: 7 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
extends: [
"plugin:itgalaxy/script",
"plugin:itgalaxy/esnext",
"plugin:itgalaxy/node"
"plugin:itgalaxy/node",
],
overrides: [
// Tests
Expand All @@ -14,8 +14,8 @@ module.exports = {
files: ["**/__tests__/**/*", "**/__mocks__/**/*"],
rules: {
// Allow to use `console` (example - `mocking`)
"no-console": "off"
}
"no-console": "off",
},
},

// Markdown
Expand All @@ -28,9 +28,9 @@ module.exports = {
"import/no-unresolved": "off",
"node/no-unpublished-require": "off",
"node/no-unpublished-import": "off",
"unicorn/filename-case": "off"
}
}
"unicorn/filename-case": "off",
},
},
],
root: true
root: true,
};
2 changes: 1 addition & 1 deletion .remarkrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";

module.exports = {
plugins: ["remark-preset-lint-itgalaxy"]
plugins: ["remark-preset-lint-itgalaxy"],
};
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@ matrix:
- node_js: "12"
script: npm run $JOB_PART
env: JOB_PART=pretest
- node_js: "12"
- node_js: "14"
script: npm run $JOB_PART
env: JOB_PART=test:only
- node_js: "10"
- node_js: "12"
script: npm run $JOB_PART
env: JOB_PART=test:only
- node_js: "10"
script: npm run $JOB_PART
env: JOB_PART=test:only
- node_js: "8"
script: npm run $JOB_PART
env: JOB_PART=test:only

before_install:
- npm install -g npm@latest
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org).

## 5.0.0 - 2020-05-15

- Changed: minimum require `npm-package-json-lint` is now `^5.0.0`.
- Changed: minimum require `node.js` version is `10.13.0`

## 4.0.0 - 2019-10-08

- Feature: more rules.
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Add the following to your `.npmpackagejsonlintrc.json` or `npmpackagejsonlint.co

```js
module.exports = {
extends: "npm-package-json-lint-config-itgalaxy"
extends: "npm-package-json-lint-config-itgalaxy",
};
```

Expand All @@ -48,8 +48,8 @@ If you need to override a rule, your `.npmpackagejsonlintrc.json` or `npmpackage
module.exports = {
extends: "npm-package-json-lint-config-itgalaxy",
rules: {
"license-type": "off"
}
"license-type": "off",
},
};
```

Expand Down Expand Up @@ -85,8 +85,8 @@ A: Just disable `require-main` rule.
module.exports = {
extends: "npm-package-json-lint-config-itgalaxy",
rules: {
"require-main": "off"
}
"require-main": "off",
},
};
```

Expand Down
2 changes: 1 addition & 1 deletion __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("npm-package-json-lint-config-itgalaxy", () => {
const npmPackageJsonLint = new NpmPackageJsonLint({
configFile: path.resolve(__dirname, "../index.js"),
cwd: path.resolve(__dirname),
patterns: ["fixtures"]
patterns: ["fixtures"],
});
const results = npmPackageJsonLint.lint();

Expand Down
4 changes: 2 additions & 2 deletions husky.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module.exports = {
hooks: {
"pre-commit": "lint-staged"
}
"pre-commit": "lint-staged",
},
};
16 changes: 10 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,17 @@ const defaultConfig = {

"prefer-alphabetical-peerDependencies": "error",

// Scripts rules
"prefer-alphabetical-scripts": "off",
"prefer-scripts": "off",

// Format rules
"description-format": [
"error",
{
requireCapitalFirstLetter: true,
requireEndingPeriod: true
}
requireEndingPeriod: true,
},
],
"name-format": "error",
"version-format": "error",
Expand Down Expand Up @@ -149,14 +153,14 @@ const defaultConfig = {
"os",
"cpu",
"preferGlobal",
"publishConfig"
]
"publishConfig",
],
],

// Disallowed node rules
"prefer-no-engineStrict": "error",
"prefer-no-devDependencies": "off"
}
"prefer-no-devDependencies": "off",
},
};

module.exports = defaultConfig;
4 changes: 1 addition & 3 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ module.exports = {
"*.{js,mjs,jsx}": [
"prettier --list-different",
"eslint --report-unused-disable-directives",
"git add"
],
"*.{md,markdown,mdown,mkdn,mkd,mdwn,mkdown,ron}": [
"prettier --list-different",
"remark -f -q",
"git add"
],
"*.{yml,yaml}": ["prettier --list-different", "git add"]
"*.{yml,yaml}": ["prettier --list-different"],
};
2 changes: 1 addition & 1 deletion npmpackagejsonlint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";

module.exports = {
extends: "./index.js"
extends: "./index.js",
};
Loading

0 comments on commit af5b27b

Please sign in to comment.