Skip to content

Commit

Permalink
chore: release 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Aug 15, 2022
1 parent cb5bfd2 commit 121caf8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
15 changes: 15 additions & 0 deletions packages/eslint-config-airbnb-with-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# @vue/eslint-config-airbnb-with-typescript

## 7.0.0

### Major Changes

- When using the Airbnb Style in a TypeScript project, you no longer need to install both `@vue/eslint-config-airbnb` and `@vue/eslint-config-typescript`.
You can just use the `@vue/eslint-config-airbnb-with-typescript` package.

It also provides stricter rules for TypeScript.

For example, by default, only `<script lang="ts">` is allowed in `.vue` files.
You can opt-in the `@vue/eslint-config-airbnb-with-typescript/allow-js-in-vue` config to allow plain JavaScript `<script>`s.
It is strongly discouraged to use JSX and TSX syntaxes in `.vue` files, but we still provide corresponding configs to allow you opt-in them.

2 changes: 1 addition & 1 deletion packages/eslint-config-airbnb-with-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/eslint-config-airbnb-with-typescript",
"version": "6.0.0",
"version": "7.0.0",
"description": "eslint-config-airbnb for Vue.js projects with TypeScript support",
"main": "index.js",
"exports": {
Expand Down
14 changes: 14 additions & 0 deletions packages/eslint-config-airbnb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# @vue/eslint-config-airbnb

## 7.0.0

### Major Changes

- All the eslint plugins are listed as `dependencies`, rather than `peerDependencies`.
So when using these configs with `@rushstack/eslint-patch`, you no longer have to install the plugins separately.

- This major version adds a lot style / accessibility rules for JSX / `<template>` syntaxes, adapted from the upstream [`eslint-plugin-airbnb`](https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v19.0.4/packages/eslint-config-airbnb).
You might see many more errors if you are upgrading from older versions of this package. Luckily, most of them are auto-fixable.

- In this version, we've provided a `createAliasSetting` helper to help users configure the path aliases used in the project for ESLint.
So this package is no longer only coupled with `@vue/cli`. Explicitly invoking the helper function is also more reliable than the previous auto-detection feature.
3 changes: 1 addition & 2 deletions packages/eslint-config-airbnb/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "@vue/eslint-config-airbnb",
"version": "6.0.0",
"version": "7.0.0",
"description": "eslint-config-standard for Vue.js projects",
"main": "index.js",
"exports": {
".": "./index.js",
"./createAliasSetting": "./createAliasSetting.js",
"./package.json": "./package.json",

"./rules/imports": "./rules/imports.js",
"./rules/jsx": "./rules/jsx.js",
"./rules/jsx-a11y": "./rules/jsx-a11y.js",
Expand Down

0 comments on commit 121caf8

Please sign in to comment.