Skip to content

Commit

Permalink
chore(release): 101
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 6, 2019
1 parent 94bdfda commit f533577
Showing 9 changed files with 2,140 additions and 1,874 deletions.
26 changes: 15 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ git:
branches:
only:
- master
- /^greenkeeper/.*$/
- next

language: node_js

@@ -18,24 +18,28 @@ cache:
matrix:
fast_finish: true
include:
- node_js: "11"
- node_js: "12"
script: npm run $JOB_PART
env: JOB_PART=pretest
- node_js: "11"
- node_js: "12"
script: npm run $JOB_PART
env: JOB_PART=test-only
env: JOB_PART=test:only
- node_js: "10"
script: npm run $JOB_PART
env: JOB_PART=test-only
env: JOB_PART=test:only
- node_js: "8"
script: npm run $JOB_PART
env: JOB_PART=test-only
- node_js: "6"
script: npm run $JOB_PART
env: JOB_PART=test-only
env: JOB_PART=test:only

before_install:
- "if [[ `npm -v` != 6* ]]; then npm i -g npm@latest; fi"
- nvm --version
- npm install -g npm@latest

install:
- npm ci

before_script:
- node --version
- npm --version

script:
- npm run $JOB_PART
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org). Except add new
rule (it is breaking changed by default).

## 101.0.0 - 2019-05-06

- Added: `jest/no-mocks-import` rule.
- Changed: disable `react/prefer-es6-class` rule.
- Changed: minimum required `nodejs` version is `8.9.0`.
- Chore: minimum require `eslint-plugin-import` version is now `^2.17.2`.
- Chore: minimum require `eslint-plugin-jest` version is now `^22.5.1`.
- Chore: minimum require `eslint-plugin-node` version is now `^9.0.1`.
- Chore: minimum require `eslint-plugin-react` version is now `^7.13.0`.
- Chore: minimum require `eslint-plugin-unicorn` version is now `^8.0.2`.

## 100.0.0 - 2019-04-03

- Added: `unicorn/prefer-query-selector` rule.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2018 itgalaxy inc.
Copyright (c) 2016-present itgalaxy inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
3 changes: 3 additions & 0 deletions lib/config/rules/import.js
Original file line number Diff line number Diff line change
@@ -32,6 +32,9 @@ module.exports = {
"import/no-cycle": "error",
// Prevent unnecessary path segemnts in import and require statements
"import/no-useless-path-segments": "error",
// Modules without any exports
// Enable in future
"import/no-unused-modules": "off",

// Helpful warnings

2 changes: 2 additions & 0 deletions lib/config/rules/jest.js
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@ module.exports = {
"jest/no-jasmine-globals": "error",
// Disallow importing `jest`
"jest/no-jest-import": "error",
// Disallow manually importing from __mocks__
"jest/no-mocks-import": "error",
// Disallow large snapshots
"jest/no-large-snapshots": "off",
// Using a callback in asynchronous tests
12 changes: 11 additions & 1 deletion lib/config/rules/node.js
Original file line number Diff line number Diff line change
@@ -82,6 +82,9 @@ module.exports = {
allowBatchAssign: false
}
],
// Enforce the style of file extensions in import declarations
// Disable in favor `import/extensions`
"node/file-extension-in-import": "off",
// Enforce either `Buffer` or `require("buffer").Buffer`
"node/prefer-global/buffer": ["error", "always"],
// Enforce either `console` or `require("console")`
@@ -95,6 +98,13 @@ module.exports = {
// Enable after migrate on node@10
// Enforce either `URLSearchParams` or `require("url").URLSearchParams`
"node/prefer-global/url-search-params": "off",
// Enable after migrate on node@10
// enforce either `URL` or `require("url").URL`
"node/prefer-global/url": "off"
"node/prefer-global/url": "off",
// Enable after migrate on node@10
// Enforce require("dns").promises
"node/prefer-promises/dns": "off",
// Enable after migrate on node@10
// Enforce require("fs").promises
"node/prefer-promises/fs": "off"
};
10 changes: 9 additions & 1 deletion lib/config/rules/react.js
Original file line number Diff line number Diff line change
@@ -96,7 +96,9 @@ module.exports = {
}
],
// Enforce ES5 or ES6 class for React Components
"react/prefer-es6-class": ["error", "always"],
"react/prefer-es6-class": "off",
// Using Flow, one can define types for props. This rule enforces that prop types are read-only (covariant).
"react/prefer-read-only-props": "off",
// Enforce stateless React Components to be written as a pure function
"react/prefer-stateless-function": [
"error",
@@ -180,6 +182,10 @@ module.exports = {
sortShapeProp: true
}
],
// Enforce the state initialization style to be either in a constructor or with a class property
"react/state-in-constructor": "error",
// Defines where React component static properties should be positioned.
"react/static-property-placement": "off",
// Enforce style prop value being an object
"react/style-prop-object": "error",
// Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children
@@ -276,6 +282,8 @@ module.exports = {
// Enforces that there is exactly one space between all attributes and after tag name and the first attribute in the same line.
// Disable in favor `prettier`
"react/jsx-props-no-multi-spaces": "off",
// Disallow JSX props spreading
"react/jsx-props-no-spreading": "off",
// Enforce defaultProps declarations alphabetical sorting
"react/jsx-sort-default-props": [
"off",
Loading

0 comments on commit f533577

Please sign in to comment.