Skip to content

Commit

Permalink
chore: prepare 91.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 7, 2018
1 parent 8650375 commit 10adcf1
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ 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).

## 91.0.0 - 2018-12-07

- Changed: `react` present doesn't extend `esnext` preset.

## 90.0.0 - 2018-12-06

- Added: `react/no-unescaped-entities` rule.
Expand Down
47 changes: 41 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ following configuration file:
{
"extends": [
"plugin:itgalaxy/esnext",
"plugin:itgalaxy/react",
"plugin:itgalaxy/lodash",
"plugin:itgalaxy/mocha"
]
Expand All @@ -90,22 +91,37 @@ Notice: presets **"plugin:itgalaxy/esnext"** or **"plugin:itgalaxy/es5"** always

This plugin provides the following core configurations:

- [all](lib/config/all.js): Use only for internal testing.

- [core](lib/config/core.js): Don't use. It is for internal purposes.

- [es5](lib/config/es5.js): Use this for legacy projects.

```json
{
"extends": ["plugin:itgalaxy/es5"]
}
```

- [esnext](lib/config/esnext.js): Use this for anything written with ES2015+ features.

```json
{
"extends": ["plugin:itgalaxy/esnext"]
}
```

- [html](lib/config/html.js): Allow linting `JavaScript` in `HTML` (and `HTML` based) files (don't forget add `.html` to `--ext` CLI argument).

```json
{
"extends": ["plugin:itgalaxy/esnext", "plugin:itgalaxy/html"]
}
```

- [markdown](lib/config/markdown.js): Allow linting `JavaScript` in `markdown` files (don't forget add `.md` to `--ext` CLI argument).

Use this configuration:

```js
module.exports = {
extends: ["plugin:itgalaxy/esnext"],
overrides: [
{
files: ["**/*.md"],
Expand All @@ -131,10 +147,29 @@ module.exports = {

- [node](lib/config/node.js): Use this for nodejs projects.

Example:

```json
{
"extends": ["plugin:itgalaxy/esnext", "plugin:itgalaxy/node"]
}
```

- [react](lib/config/react.js): Use this for React projects.

This plugin also provides the following tool-specific configurations, which can
be used on top of the core configurations:
Example:

```json
{
"extends": ["plugin:itgalaxy/esnext", "plugin:itgalaxy/react"]
}
```

- [all](lib/config/all.js): Don't use. It is for internal purposes (testings and tools).

- [core](lib/config/core.js): Don't use. It is for internal purposes (testings and tools).

This plugin also provides the following tool-specific configurations, which can be used on top of the core configurations:

- [AVA](lib/config/ava.js): Use this for projects that use the
[AVA](https://github.com/sindresorhus/ava).
Expand Down
7 changes: 1 addition & 6 deletions lib/config/react.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";

const path = require("path");
const jsxA11yRules = require("./rules/jsx-a11y");
const reactRules = require("./rules/react");

Expand All @@ -27,11 +26,7 @@ module.exports = {
}
},
plugins: ["react", "jsx-a11y"],
extends: [
path.resolve(__dirname, "./esnext.js"),
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
extends: ["plugin:react/recommended", "plugin:jsx-a11y/recommended"],
rules: Object.assign({}, reactRules, jsxA11yRules, {
"class-methods-use-this": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-itgalaxy",
"version": "90.0.0",
"version": "91.0.0",
"description": "Itgalaxy org's ESLint rules and configs.",
"keywords": [
"eslint",
Expand Down

0 comments on commit 10adcf1

Please sign in to comment.