Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c26aeb9

Browse files
committed
fix: avoid unneeded blank line
1 parent e15dcb9 commit c26aeb9

File tree

6 files changed

+5
-15
lines changed

6 files changed

+5
-15
lines changed

‎lib/configs/base.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* This file has been automatically generated,
44
* in order to update its content execute "npm run update"
55
*/
6-
76
module.exports = {
87
parserOptions: {
98
ecmaVersion: 'latest',

‎lib/configs/flat/base.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* This file has been automatically generated,
44
* in order to update its content execute "npm run update"
55
*/
6-
76
module.exports = [
87
{
98
name: 'vue/base/setup',

‎lib/configs/vue2-essential.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* This file has been automatically generated,
44
* in order to update its content execute "npm run update"
55
*/
6-
76
module.exports = {
87
extends: require.resolve('./base'),
98
rules: {

‎lib/configs/vue3-essential.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* This file has been automatically generated,
44
* in order to update its content execute "npm run update"
55
*/
6-
76
module.exports = {
87
extends: require.resolve('./base'),
98
rules: {

‎tools/update-lib-configs.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,15 @@ function formatCategory(category) {
5353
const extendsCategoryId = extendsCategories[category.categoryId]
5454
const formattedRules = formatRules(category.rules, category.categoryId)
5555
const ruleLevelVariable = formattedRules.includes('ruleLevel')
56-
? "const ruleLevel = process.env.VUE_ESLINT_ALWAYS_ERROR === 'true' ? 'error' : 'warn'"
56+
? "\nconst ruleLevel = process.env.VUE_ESLINT_ALWAYS_ERROR === 'true' ? 'error' : 'warn'\n"
5757
: ''
5858

5959
if (extendsCategoryId == null) {
6060
return `/*
6161
* IMPORTANT!
6262
* This file has been automatically generated,
6363
* in order to update its content execute "npm run update"
64-
*/
65-
${ruleLevelVariable}
66-
64+
*/${ruleLevelVariable}
6765
module.exports = {
6866
parserOptions: {
6967
ecmaVersion: 'latest',
@@ -86,9 +84,7 @@ module.exports = {
8684
* IMPORTANT!
8785
* This file has been automatically generated,
8886
* in order to update its content execute "npm run update"
89-
*/
90-
${ruleLevelVariable}
91-
87+
*/${ruleLevelVariable}
9288
module.exports = {
9389
extends: require.resolve('./${extendsCategoryId}'),
9490
rules: ${formattedRules}

‎tools/update-lib-flat-configs.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,15 @@ function formatCategory(category) {
5353
const extendsCategoryId = extendsCategories[category.categoryId]
5454
const formattedRules = formatRules(category.rules, category.categoryId)
5555
const ruleLevelVariable = formattedRules.includes('ruleLevel')
56-
? "const ruleLevel = process.env.VUE_ESLINT_ALWAYS_ERROR === 'true' ? 'error' : 'warn'"
56+
? "\nconst ruleLevel = process.env.VUE_ESLINT_ALWAYS_ERROR === 'true' ? 'error' : 'warn'\n"
5757
: ''
5858

5959
if (category.categoryId === 'base') {
6060
return `/*
6161
* IMPORTANT!
6262
* This file has been automatically generated,
6363
* in order to update its content execute "npm run update"
64-
*/
65-
${ruleLevelVariable}
66-
64+
*/${ruleLevelVariable}
6765
module.exports = [
6866
{
6967
name: 'vue/base/setup',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /