Skip to content

Commit

Permalink
2.1.0
Browse files Browse the repository at this point in the history
- Update docs about ditching prop-types when working with TS
- Don't error on missing return type for function expressions
  • Loading branch information
stefanmaric committed Dec 22, 2021
1 parent 2f766aa commit e9d23ea
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 20 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## 2.1.0 - 2021-12-22

- Update docs about ditching prop-types when working with TS
- Don't error on missing return type for function expressions

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ If you don't see any of those, or if you see more than one, consult with your te
As a minimum, you are going to need to install `eslint` and `eslint-config-masterworks` as dev-dependencies. Based on your project's package manager:

```shell
$ npm install --save-dev eslint @masterworks/eslint-config-masterworks@github:MasterworksIO/eslint-config-masterworks#2.0.0
$ npm install --save-dev eslint @masterworks/eslint-config-masterworks@github:MasterworksIO/eslint-config-masterworks#2.1.0
```

```shell
$ yarn install --save-dev eslint @masterworks/eslint-config-masterworks@github:MasterworksIO/eslint-config-masterworks#2.0.0
$ yarn install --save-dev eslint @masterworks/eslint-config-masterworks@github:MasterworksIO/eslint-config-masterworks#2.1.0
```

```shell
$ pnpm install --save-dev eslint @masterworks/eslint-config-masterworks@github:MasterworksIO/eslint-config-masterworks#2.0.0
$ pnpm install --save-dev eslint @masterworks/eslint-config-masterworks@github:MasterworksIO/eslint-config-masterworks#2.1.0
```

Then create an `.eslintrc.json` (or any other of the [formats supported by ESLint](https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-file-formats)) if it doesn't exist already, and extend the [`base` preset](./base/):
Expand Down Expand Up @@ -118,7 +118,7 @@ When using `@masterworks/eslint-config-masterworks` presets, you should also use
"name": "my-project",
"prettier": "@masterworks/eslint-config-masterworks/prettier",
"devDependencies": {
"@masterworks/eslint-config-masterworks": "github:MasterworksIO/eslint-config-masterworks#2.0.0",
"@masterworks/eslint-config-masterworks": "github:MasterworksIO/eslint-config-masterworks#2.1.0",
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-base",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — the base config",
"main": "index.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions jsx-stylish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-jsx-stylish",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — stylish JSX",
"main": "index.js",
"repository": {
Expand All @@ -14,7 +14,7 @@
},
"homepage": "https://github.com/MasterworksIO/eslint-config-masterworks/tree/master/jsx-stylish",
"peerDependencies": {
"@masterworks/eslint-config-masterworks-jsx": "^2.0.0",
"@masterworks/eslint-config-masterworks-jsx": "^2.1.0",
"eslint": "^8.3.0"
}
}
2 changes: 1 addition & 1 deletion jsx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-jsx",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — JSX and a11y",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion modern/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-modern",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — ES6 to infinity",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion modules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-modules",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — ES modules",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-node",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — rules for NodeJS",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/prettier-config",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — the recommended Prettier config to go along",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-react",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — React specifics",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion stylish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-stylish",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — stylish preferences",
"main": "index.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions typescript-strict/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-typescript-strict",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — TypeScript in strict mode",
"main": "index.js",
"repository": {
Expand All @@ -14,7 +14,7 @@
},
"homepage": "https://github.com/MasterworksIO/eslint-config-masterworks/tree/master/typescript-strict",
"peerDependencies": {
"@masterworks/eslint-config-masterworks-typescript": "^2.0.0",
"@masterworks/eslint-config-masterworks-typescript": "^2.1.0",
"eslint": "^8.3.0",
"typescript": "^4.1.2"
}
Expand Down
4 changes: 2 additions & 2 deletions typescript-stylish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-typescript-stylish",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — stylish preferences",
"main": "index.js",
"repository": {
Expand All @@ -14,7 +14,7 @@
},
"homepage": "https://github.com/MasterworksIO/eslint-config-masterworks/tree/master/typescript-stylish",
"peerDependencies": {
"@masterworks/eslint-config-masterworks-typescript": "^2.0.0",
"@masterworks/eslint-config-masterworks-typescript": "^2.1.0",
"eslint": "^8.3.0",
"typescript": "^4.1.2"
}
Expand Down
2 changes: 1 addition & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masterworks/eslint-config-masterworks-typescript",
"version": "2.0.0",
"version": "2.1.0",
"description": "ESLint config presets for Masterworks — Base for TypeScript",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit e9d23ea

Please sign in to comment.