Skip to content

Commit 735b537

Browse files
committed
Remove Vue 2 support.
1 parent fce768e commit 735b537

File tree

6 files changed

+4
-49
lines changed

6 files changed

+4
-49
lines changed

CHANGELOG.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
- **BREAKING**: Change `'@stylistic/comma-dangle'` to `'never'` from
1515
`'only-multiline'`. Changed to enforce a more uniform style. Override locally
1616
if it causes issues.
17-
- **BREAKING**: Rename `vue` config to `vue2`. Various projects have been using
18-
`vue` when they should be using `vue3`. This will make usage more explicit.
17+
- **BREAKING**: Remove `vue` rules for Vue 2. Keep `vue3` as a versioned name.
1918

2019
### Migration
2120
- ESLint v9 is a major breaking change and will require manual updates.
@@ -25,7 +24,7 @@
2524
- The configuration file changes from multiple `.eslintrc.cjs` or similar to
2625
a single top level `eslint.config.js`.
2726
- Invocation is now `eslint` without options.
28-
- Style rules were deprecated and moved to the stylistic project.
27+
- Style rules were deprecated and moved to the `stylistic` project.
2928
- The Digital Bazaar rules are mostly the same as before with updates to
3029
`@stylistic/RULENAME` as needed.
3130
- Note the common `max-len` is now `@stylistic/max-len`.
@@ -35,8 +34,8 @@
3534
v8, or update to v9 and drop Quasar linting and only use Vue linting.
3635
- Major types of rules are grouped together.
3736
- The groups can be composed together as needed.
38-
- There are opinionated configs that compose a number of rules and apply to
39-
many common Digital Bazaar repositories.
37+
- There are opinionated "recommended" configs that compose a number of rules
38+
and apply to many common Digital Bazaar repositories.
4039
- See the [README](./README.md) for notes and usage examples.
4140

4241
### 5.2.0 - 2024-05-02

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ There are various core rule sets:
77
- `eslint-config-digitalbazaar/import`: Rules for es6 imports in the browser and node code.
88
- `eslint-config-digitalbazaar/jsdoc`: Rules for JSDoc for both node and browser code.
99
- `eslint-config-digitalbazaar/module`: Rules for modules for both node and browser code.
10-
- `eslint-config-digitalbazaar/vue2`: Rules for Vue 2 code.
1110
- `eslint-config-digitalbazaar/vue3`: Rules for Vue 3 code.
1211

1312
For common use cases, there are recommended configs, that load the core rules:
1413
- `eslint-config-digitalbazaar/browser-recommended`: Recommended rules for projects targeting web browsers.
1514
- `eslint-config-digitalbazaar/node-recommended`: Recommended rules for projects targeting node.
1615
- `eslint-config-digitalbazaar/recommended`: Common recommended rules.
1716
- `eslint-config-digitalbazaar/universal-recommended`: Recommended rules for projects targeting node and web browsers.
18-
- `eslint-config-digitalbazaar/vue2-recommended`: Recommended rules for projects targeting Vue 2.
1917
- `eslint-config-digitalbazaar/vue3-recommended`: Recommended rules for projects targeting Vue 3.
2018

2119
## Installation
@@ -119,27 +117,6 @@ export default [
119117
];
120118
```
121119

122-
### Vue 2
123-
124-
To use the Vue 2 rules you will need to install [`eslint-plugin-vue`](https://eslint.vuejs.org/):
125-
```
126-
npm i -D eslint-plugin-vue
127-
```
128-
129-
Example `eslint.config.js` Vue setup:
130-
```js
131-
import config from 'eslint-config-digitalbazaar'
132-
import vue2Config from 'eslint-config-digitalbazaar/vue2'
133-
134-
export default [
135-
...config,
136-
...vue2Config
137-
];
138-
```
139-
140-
For command line use you may need to [explicitly enable linting `.vue`
141-
files](https://eslint.vuejs.org/user-guide/#running-eslint-from-the-command-line).
142-
143120
### Vue 3
144121

145122
To use the Vue 3 rules you will need to install [`eslint-plugin-vue`](https://eslint.vuejs.org/):

configs/vue2-recommended.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

configs/vue2.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"./node-recommended": "./configs/node-recommended.js",
1414
"./recommended": "./configs/recommended.js",
1515
"./universal-recommended": "./configs/universal-recommended.js",
16-
"./vue2": "./configs/vue2.js",
17-
"./vue2-recommended": "./configs/vue2-recommended.js",
1816
"./vue3": "./configs/vue3.js",
1917
"./vue3-recommended": "./configs/vue3-recommended.js"
2018
},

templates/vue2.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)