Skip to content

Commit

Permalink
chore(release): 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jul 3, 2019
1 parent 5c2c5b7 commit 69e3030
Show file tree
Hide file tree
Showing 11 changed files with 2,896 additions and 2,061 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ indent_size = 4

[*.py]
indent_size = 4

[*.{xml,xml.dist}]
indent_size = 4
65 changes: 65 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
"use strict";

module.exports = {
parserOptions: {
sourceType: "script"
},
extends: ["plugin:itgalaxy/esnext", "plugin:itgalaxy/node"],
overrides: [
// Source
{
// Exclude nested tests
excludedFiles: ["**/__tests__/**/*", "**/__mocks__/**/*", "**/*.md"],
files: ["src/**/*"],
parserOptions: {
sourceType: "module"
},
rules: {
// Allow to use ECMAScript 6 modules because we use `babel`
"node/no-unsupported-features/es-syntax": "off"
}
},

// Jest
{
extends: ["plugin:itgalaxy/jest"],
excludedFiles: ["**/*.md"],
files: ["**/__tests__/**/*", "**/__mocks__/**/*"],
parserOptions: {
sourceType: "module"
},
rules: {
// Allow to use `console` (example - `mocking`)
"no-console": "off",
// Allow to use ECMAScript 6 modules because we use `babel`
"node/no-unsupported-features/es-syntax": "off"
}
},

// Markdown
{
extends: ["plugin:itgalaxy/markdown"],
files: ["**/*.md"],
parserOptions: {
sourceType: "module",
ecmaFeatures: {
impliedStrict: true
}
},
rules: {
strict: "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-process-env": "off",
"no-process-exit": "off",
"no-console": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"node/no-unpublished-require": "off",
"node/no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": "off"
}
}
],
root: true
};
5 changes: 5 additions & 0 deletions .remarkrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

module.exports = {
plugins: ["remark-preset-lint-itgalaxy"]
};
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ cache:

matrix:
include:
- node_js: "11"
- node_js: "12"
script: npm run pretest
env: CI=pretest
- node_js: "6"
script: npm run test:only
env: CI=tests 6
- node_js: "8"
script: npm run test:only
env: CI=tests 8
Expand Down
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

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

## 7.0.0 - 2019-07-03

- Changed: minimum require Node.js version is `8.9.0`.

## 6.0.1 - 2019-03-26

- Chore: migrate on `ip-regex` to avoid lodash vulnerable libraries
Expand Down Expand Up @@ -51,8 +55,7 @@ This project adheres to [Semantic Versioning](http://semver.org).

- Changed: use `[cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for
loading configuration.
- Feature: in CLI if the parent directory does not exist when you write
`robots.txt`, it's created.
- Feature: in CLI if the parent directory does not exist when you write `robots.txt`, it's created.

## 4.0.4 - 2017-10-09

Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ robotstxt({
],
sitemap: "http://example.com/sitemap.xml",
host: "http://example.com"
}).then(content => {
console.log(content);
});
})
.then(content => {
console.log(content);

return content;
})
.catch(error => {
throw error;
});
```

## File based configuration
Expand Down
21 changes: 21 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"use strict";

const MIN_BABEL_VERSION = 7;

module.exports = api => {
api.assertVersion(MIN_BABEL_VERSION);
api.cache(true);

return {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "8.9.0"
}
}
]
]
};
};
5 changes: 3 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

module.exports = {
"*.{js,jsx}": [
"*.{js,mjs,jsx}": [
"prettier --list-different",
"eslint --report-unused-disable-directives",
"git add"
Expand All @@ -10,5 +10,6 @@ module.exports = {
"prettier --list-different",
"remark -f -q",
"git add"
]
],
"*.{yml,yaml}": ["prettier --list-different", "git add"]
};
Loading

0 comments on commit 69e3030

Please sign in to comment.