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:
Haoqun Jiang
2019-07-08 22:47:58 +08:00
parent bd82649a64
commit 3289e1065c
18 changed files with 5 additions and 246 deletions

View File

@@ -1,6 +1,6 @@
{
"npmClient": "yarn",
"useWorkspaces": false,
"useWorkspaces": true,
"version": "4.0.0-alpha.4",
"packages": [
"packages/@vue/babel-preset-app",

View File

@@ -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",

View File

@@ -1,2 +0,0 @@
__tests__
__mocks__

View File

@@ -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.

View File

@@ -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
]
}]
}
}

View File

@@ -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"
}
}

View File

@@ -1,2 +0,0 @@
__tests__
__mocks__

View File

@@ -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.

View File

@@ -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'
}
}

View File

@@ -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"
}
}

View File

@@ -1,2 +0,0 @@
__tests__
__mocks__

View File

@@ -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.

View File

@@ -1,5 +0,0 @@
module.exports = {
extends: [
require.resolve('eslint-config-standard')
]
}

View File

@@ -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"
}
}

View File

@@ -1,2 +0,0 @@
__tests__
__mocks__

View File

@@ -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.

View File

@@ -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'
}
}

View File

@@ -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"
}
}