Skip to content

Commit f533577

Browse files
chore(release): 101
1 parent 94bdfda commit f533577

File tree

9 files changed

+2140
-1874
lines changed

9 files changed

+2140
-1874
lines changed

.travis.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git:
66
branches:
77
only:
88
- master
9-
- /^greenkeeper/.*$/
9+
- next
1010

1111
language: node_js
1212

@@ -18,24 +18,28 @@ cache:
1818
matrix:
1919
fast_finish: true
2020
include:
21-
- node_js: "11"
21+
- node_js: "12"
2222
script: npm run $JOB_PART
2323
env: JOB_PART=pretest
24-
- node_js: "11"
24+
- node_js: "12"
2525
script: npm run $JOB_PART
26-
env: JOB_PART=test-only
26+
env: JOB_PART=test:only
2727
- node_js: "10"
2828
script: npm run $JOB_PART
29-
env: JOB_PART=test-only
29+
env: JOB_PART=test:only
3030
- node_js: "8"
3131
script: npm run $JOB_PART
32-
env: JOB_PART=test-only
33-
- node_js: "6"
34-
script: npm run $JOB_PART
35-
env: JOB_PART=test-only
32+
env: JOB_PART=test:only
3633

3734
before_install:
38-
- "if [[ `npm -v` != 6* ]]; then npm i -g npm@latest; fi"
39-
- nvm --version
35+
- npm install -g npm@latest
36+
37+
install:
38+
- npm ci
39+
40+
before_script:
4041
- node --version
4142
- npm --version
43+
44+
script:
45+
- npm run $JOB_PART

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
This project adheres to [Semantic Versioning](http://semver.org). Except add new
66
rule (it is breaking changed by default).
77

8+
## 101.0.0 - 2019-05-06
9+
10+
- Added: `jest/no-mocks-import` rule.
11+
- Changed: disable `react/prefer-es6-class` rule.
12+
- Changed: minimum required `nodejs` version is `8.9.0`.
13+
- Chore: minimum require `eslint-plugin-import` version is now `^2.17.2`.
14+
- Chore: minimum require `eslint-plugin-jest` version is now `^22.5.1`.
15+
- Chore: minimum require `eslint-plugin-node` version is now `^9.0.1`.
16+
- Chore: minimum require `eslint-plugin-react` version is now `^7.13.0`.
17+
- Chore: minimum require `eslint-plugin-unicorn` version is now `^8.0.2`.
18+
819
## 100.0.0 - 2019-04-03
920

1021
- Added: `unicorn/prefer-query-selector` rule.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2018 itgalaxy inc.
3+
Copyright (c) 2016-present itgalaxy inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lib/config/rules/import.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ module.exports = {
3232
"import/no-cycle": "error",
3333
// Prevent unnecessary path segemnts in import and require statements
3434
"import/no-useless-path-segments": "error",
35+
// Modules without any exports
36+
// Enable in future
37+
"import/no-unused-modules": "off",
3538

3639
// Helpful warnings
3740

lib/config/rules/jest.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module.exports = {
2525
"jest/no-jasmine-globals": "error",
2626
// Disallow importing `jest`
2727
"jest/no-jest-import": "error",
28+
// Disallow manually importing from __mocks__
29+
"jest/no-mocks-import": "error",
2830
// Disallow large snapshots
2931
"jest/no-large-snapshots": "off",
3032
// Using a callback in asynchronous tests

lib/config/rules/node.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ module.exports = {
8282
allowBatchAssign: false
8383
}
8484
],
85+
// Enforce the style of file extensions in import declarations
86+
// Disable in favor `import/extensions`
87+
"node/file-extension-in-import": "off",
8588
// Enforce either `Buffer` or `require("buffer").Buffer`
8689
"node/prefer-global/buffer": ["error", "always"],
8790
// Enforce either `console` or `require("console")`
@@ -95,6 +98,13 @@ module.exports = {
9598
// Enable after migrate on node@10
9699
// Enforce either `URLSearchParams` or `require("url").URLSearchParams`
97100
"node/prefer-global/url-search-params": "off",
101+
// Enable after migrate on node@10
98102
// enforce either `URL` or `require("url").URL`
99-
"node/prefer-global/url": "off"
103+
"node/prefer-global/url": "off",
104+
// Enable after migrate on node@10
105+
// Enforce require("dns").promises
106+
"node/prefer-promises/dns": "off",
107+
// Enable after migrate on node@10
108+
// Enforce require("fs").promises
109+
"node/prefer-promises/fs": "off"
100110
};

lib/config/rules/react.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ module.exports = {
9696
}
9797
],
9898
// Enforce ES5 or ES6 class for React Components
99-
"react/prefer-es6-class": ["error", "always"],
99+
"react/prefer-es6-class": "off",
100+
// Using Flow, one can define types for props. This rule enforces that prop types are read-only (covariant).
101+
"react/prefer-read-only-props": "off",
100102
// Enforce stateless React Components to be written as a pure function
101103
"react/prefer-stateless-function": [
102104
"error",
@@ -180,6 +182,10 @@ module.exports = {
180182
sortShapeProp: true
181183
}
182184
],
185+
// Enforce the state initialization style to be either in a constructor or with a class property
186+
"react/state-in-constructor": "error",
187+
// Defines where React component static properties should be positioned.
188+
"react/static-property-placement": "off",
183189
// Enforce style prop value being an object
184190
"react/style-prop-object": "error",
185191
// Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children
@@ -276,6 +282,8 @@ module.exports = {
276282
// Enforces that there is exactly one space between all attributes and after tag name and the first attribute in the same line.
277283
// Disable in favor `prettier`
278284
"react/jsx-props-no-multi-spaces": "off",
285+
// Disallow JSX props spreading
286+
"react/jsx-props-no-spreading": "off",
279287
// Enforce defaultProps declarations alphabetical sorting
280288
"react/jsx-sort-default-props": [
281289
"off",

0 commit comments

Comments
 (0)