mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-01 11:59:10 -06:00
workflow: move eslint-config-* packages to standalone repos for easier maintenance
Their upstream packages update much more frequently than most other packages in this repo, so they are more likely to be subject to breaking changes, thus requiring a different version strategy.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": false,
|
||||
"useWorkspaces": true,
|
||||
"version": "4.0.0-alpha.4",
|
||||
"packages": [
|
||||
"packages/@vue/babel-preset-app",
|
||||
|
||||
@@ -44,6 +44,10 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.4.5",
|
||||
"@vue/eslint-config-airbnb": "^4.0.0",
|
||||
"@vue/eslint-config-prettier": "^4.0.1",
|
||||
"@vue/eslint-config-standard": "^4.0.0",
|
||||
"@vue/eslint-config-typescript": "^4.0.0",
|
||||
"@vuepress/plugin-pwa": "^1.0.1",
|
||||
"@vuepress/theme-vue": "^1.0.1",
|
||||
"babel-core": "7.0.0-bridge.0",
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
__tests__
|
||||
__mocks__
|
||||
@@ -1,11 +0,0 @@
|
||||
# @vue/eslint-config-airbnb
|
||||
|
||||
> eslint-config-airbnb for vue-cli
|
||||
|
||||
This config is specifically designed to be used by `vue-cli` setups
|
||||
and is not meant for outside use (it can be used but some adaptations
|
||||
on the user side might be needed - for details see the config file).
|
||||
|
||||
A part of its design is that this config may implicitly depend on
|
||||
other parts of `vue-cli` setups, such as `eslint-plugin-vue` being
|
||||
extended in the same resulting config.
|
||||
@@ -1,36 +0,0 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve('eslint-config-airbnb-base')
|
||||
],
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
webpack: {
|
||||
config: require.resolve('@vue/cli-service/webpack.config.js')
|
||||
}
|
||||
},
|
||||
'import/extensions': [
|
||||
'.js',
|
||||
'.jsx',
|
||||
'.mjs',
|
||||
'.ts',
|
||||
'.tsx'
|
||||
]
|
||||
},
|
||||
rules: {
|
||||
'import/extensions': ['error', 'always', {
|
||||
js: 'never',
|
||||
mjs: 'never',
|
||||
jsx: 'never',
|
||||
ts: 'never',
|
||||
tsx: 'never'
|
||||
}],
|
||||
'no-param-reassign': ['error', {
|
||||
props: true,
|
||||
ignorePropertyModificationsFor: [
|
||||
'state', // for vuex state
|
||||
'acc', // for reduce accumulators
|
||||
'e' // for e.returnvalue
|
||||
]
|
||||
}]
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
"name": "@vue/eslint-config-airbnb",
|
||||
"version": "4.0.0",
|
||||
"description": "eslint-config-airbnb for vue-cli",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/vue-cli.git",
|
||||
"directory": "packages/@vue/eslint-config-airbnb"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"cli"
|
||||
],
|
||||
"author": "Evan You",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/eslint-config-airbnb#readme",
|
||||
"dependencies": {
|
||||
"eslint-config-airbnb-base": "^13.1.0",
|
||||
"eslint-import-resolver-webpack": "^0.11.1",
|
||||
"eslint-plugin-import": "^2.17.3"
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
__tests__
|
||||
__mocks__
|
||||
@@ -1,11 +0,0 @@
|
||||
# @vue/eslint-config-prettier
|
||||
|
||||
> eslint-config-prettier for vue-cli
|
||||
|
||||
This config is specifically designed to be used by `vue-cli` setups
|
||||
and is not meant for outside use (it can be used but some adaptations
|
||||
on the user side might be needed - for details see the config file).
|
||||
|
||||
A part of its design is that this config may implicitly depend on
|
||||
other parts of `vue-cli` setups, such as `eslint-plugin-vue` being
|
||||
extended in the same resulting config.
|
||||
@@ -1,11 +0,0 @@
|
||||
module.exports = {
|
||||
plugins: ['prettier'],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
require.resolve('eslint-config-prettier'),
|
||||
require.resolve('eslint-config-prettier/vue')
|
||||
],
|
||||
rules: {
|
||||
'prettier/prettier': 'warn'
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
"name": "@vue/eslint-config-prettier",
|
||||
"version": "4.0.1",
|
||||
"description": "eslint-config-prettier for vue-cli",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/vue-cli.git",
|
||||
"directory": "packages/@vue/eslint-config-prettier"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"cli"
|
||||
],
|
||||
"author": "Evan You",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/eslint-config-prettier#readme",
|
||||
"dependencies": {
|
||||
"eslint-config-prettier": "^4.3.0",
|
||||
"eslint-plugin-prettier": "^3.1.0",
|
||||
"prettier": "^1.17.1"
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
__tests__
|
||||
__mocks__
|
||||
@@ -1,11 +0,0 @@
|
||||
# @vue/eslint-config-standard
|
||||
|
||||
> eslint-config-standard for vue-cli
|
||||
|
||||
This config is specifically designed to be used by `vue-cli` setups
|
||||
and is not meant for outside use (it can be used but some adaptations
|
||||
on the user side might be needed - for details see the config file).
|
||||
|
||||
A part of its design is that this config may implicitly depend on
|
||||
other parts of `vue-cli` setups, such as `eslint-plugin-vue` being
|
||||
extended in the same resulting config.
|
||||
@@ -1,5 +0,0 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve('eslint-config-standard')
|
||||
]
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"name": "@vue/eslint-config-standard",
|
||||
"version": "4.0.0",
|
||||
"description": "eslint-config-standard for vue-cli",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/vue-cli.git",
|
||||
"directory": "packages/@vue/eslint-config-standard"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"cli"
|
||||
],
|
||||
"author": "Evan You",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/eslint-config-standard#readme",
|
||||
"dependencies": {
|
||||
"eslint-config-standard": "^12.0.0",
|
||||
"eslint-plugin-import": "^2.17.3",
|
||||
"eslint-plugin-node": "^9.1.0",
|
||||
"eslint-plugin-promise": "^4.1.1",
|
||||
"eslint-plugin-standard": "^4.0.0"
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
__tests__
|
||||
__mocks__
|
||||
@@ -1,13 +0,0 @@
|
||||
# @vue/eslint-config-typescript
|
||||
|
||||
> eslint-config-typescript for vue-cli
|
||||
|
||||
See [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/eslint-plugin) for available rules.
|
||||
|
||||
This config is specifically designed to be used by `vue-cli` setups
|
||||
and is not meant for outside use (it can be used but some adaptations
|
||||
on the user side might be needed - for details see the config file).
|
||||
|
||||
A part of its design is that this config may implicitly depend on
|
||||
other parts of `vue-cli` setups, such as `eslint-plugin-vue` being
|
||||
extended in the same resulting config.
|
||||
@@ -1,22 +0,0 @@
|
||||
module.exports = {
|
||||
plugins: ['@typescript-eslint'],
|
||||
// Prerequisite `eslint-plugin-vue`, being extended, sets
|
||||
// root property `parser` to `'vue-eslint-parser'`, which, for code parsing,
|
||||
// in turn delegates to the parser, specified in `parserOptions.parser`:
|
||||
// https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
|
||||
parserOptions: {
|
||||
parser: require.resolve('@typescript-eslint/parser')
|
||||
},
|
||||
rules: {
|
||||
// https://typescript-eslint.io/parser
|
||||
'no-undef': 'off',
|
||||
'no-unused-vars': 'off',
|
||||
// https://github.com/typescript-eslint/typescript-eslint/issues/46
|
||||
// '@typescript-eslint/no-unused-vars': 'error',
|
||||
|
||||
// temporary fix for https://github.com/vuejs/vue-cli/issues/1922
|
||||
// very strange as somehow this rule gets different behaviors depending
|
||||
// on the presence of @typescript-eslint/parser...
|
||||
'strict': 'off'
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
{
|
||||
"name": "@vue/eslint-config-typescript",
|
||||
"version": "4.0.0",
|
||||
"description": "eslint-config-typescript for vue-cli",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/vue-cli.git",
|
||||
"directory": "packages/@vue/eslint-config-typescript"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"cli"
|
||||
],
|
||||
"author": "Evan You",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/eslint-config-typescript#readme",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^1.7.0",
|
||||
"@typescript-eslint/parser": "^1.7.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user