Skip to content

Commit 69e3030

Browse files
chore(release): 7.0.0
1 parent 5c2c5b7 commit 69e3030

File tree

11 files changed

+2896
-2061
lines changed

11 files changed

+2896
-2061
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ indent_size = 4
1414

1515
[*.py]
1616
indent_size = 4
17-
18-
[*.{xml,xml.dist}]
19-
indent_size = 4

.eslintrc.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
"use strict";
2+
3+
module.exports = {
4+
parserOptions: {
5+
sourceType: "script"
6+
},
7+
extends: ["plugin:itgalaxy/esnext", "plugin:itgalaxy/node"],
8+
overrides: [
9+
// Source
10+
{
11+
// Exclude nested tests
12+
excludedFiles: ["**/__tests__/**/*", "**/__mocks__/**/*", "**/*.md"],
13+
files: ["src/**/*"],
14+
parserOptions: {
15+
sourceType: "module"
16+
},
17+
rules: {
18+
// Allow to use ECMAScript 6 modules because we use `babel`
19+
"node/no-unsupported-features/es-syntax": "off"
20+
}
21+
},
22+
23+
// Jest
24+
{
25+
extends: ["plugin:itgalaxy/jest"],
26+
excludedFiles: ["**/*.md"],
27+
files: ["**/__tests__/**/*", "**/__mocks__/**/*"],
28+
parserOptions: {
29+
sourceType: "module"
30+
},
31+
rules: {
32+
// Allow to use `console` (example - `mocking`)
33+
"no-console": "off",
34+
// Allow to use ECMAScript 6 modules because we use `babel`
35+
"node/no-unsupported-features/es-syntax": "off"
36+
}
37+
},
38+
39+
// Markdown
40+
{
41+
extends: ["plugin:itgalaxy/markdown"],
42+
files: ["**/*.md"],
43+
parserOptions: {
44+
sourceType: "module",
45+
ecmaFeatures: {
46+
impliedStrict: true
47+
}
48+
},
49+
rules: {
50+
strict: "off",
51+
"no-undef": "off",
52+
"no-unused-vars": "off",
53+
"no-process-env": "off",
54+
"no-process-exit": "off",
55+
"no-console": "off",
56+
"import/no-unresolved": "off",
57+
"import/extensions": "off",
58+
"node/no-unpublished-require": "off",
59+
"node/no-unpublished-import": "off",
60+
"node/no-unsupported-features/es-syntax": "off"
61+
}
62+
}
63+
],
64+
root: true
65+
};

.remarkrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
3+
module.exports = {
4+
plugins: ["remark-preset-lint-itgalaxy"]
5+
};

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ cache:
1717

1818
matrix:
1919
include:
20-
- node_js: "11"
20+
- node_js: "12"
2121
script: npm run pretest
2222
env: CI=pretest
23-
- node_js: "6"
24-
script: npm run test:only
25-
env: CI=tests 6
2623
- node_js: "8"
2724
script: npm run test:only
2825
env: CI=tests 8

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

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

7+
## 7.0.0 - 2019-07-03
8+
9+
- Changed: minimum require Node.js version is `8.9.0`.
10+
711
## 6.0.1 - 2019-03-26
812

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

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

5760
## 4.0.4 - 2017-10-09
5861

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,15 @@ robotstxt({
4242
],
4343
sitemap: "http://example.com/sitemap.xml",
4444
host: "http://example.com"
45-
}).then(content => {
46-
console.log(content);
47-
});
45+
})
46+
.then(content => {
47+
console.log(content);
48+
49+
return content;
50+
})
51+
.catch(error => {
52+
throw error;
53+
});
4854
```
4955

5056
## File based configuration

babel.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"use strict";
2+
3+
const MIN_BABEL_VERSION = 7;
4+
5+
module.exports = api => {
6+
api.assertVersion(MIN_BABEL_VERSION);
7+
api.cache(true);
8+
9+
return {
10+
presets: [
11+
[
12+
"@babel/preset-env",
13+
{
14+
targets: {
15+
node: "8.9.0"
16+
}
17+
}
18+
]
19+
]
20+
};
21+
};

lint-staged.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

33
module.exports = {
4-
"*.{js,jsx}": [
4+
"*.{js,mjs,jsx}": [
55
"prettier --list-different",
66
"eslint --report-unused-disable-directives",
77
"git add"
@@ -10,5 +10,6 @@ module.exports = {
1010
"prettier --list-different",
1111
"remark -f -q",
1212
"git add"
13-
]
13+
],
14+
"*.{yml,yaml}": ["prettier --list-different", "git add"]
1415
};

0 commit comments

Comments
 (0)