Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use default print width #19

Merged
merged 3 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.1.0-beta.14"
"version": "0.1.0-beta.15"
}
11 changes: 9 additions & 2 deletions packages/eslint-config-base/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
],
plugins: ['prettier', '@typescript-eslint', 'import'],
parserOptions: {
ecmaVersion: 2018,
Expand All @@ -15,7 +18,11 @@ module.exports = {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true }
],
'import/no-extraneous-dependencies': 'error'
}
};
2 changes: 1 addition & 1 deletion packages/eslint-config-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/eslint-config-base",
"version": "0.1.0-beta.14",
"version": "0.1.0-beta.15",
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/eslint-config-vue",
"version": "0.1.0-beta.14",
"version": "0.1.0-beta.15",
"publishConfig": {
"access": "public"
},
Expand All @@ -10,7 +10,7 @@
"lint": "eslint ."
},
"dependencies": {
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.14",
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.15",
"eslint-plugin-vue": "^9.18.1"
}
}
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/eslint-config",
"version": "0.1.0-beta.14",
"version": "0.1.0-beta.15",
"publishConfig": {
"access": "public"
},
Expand All @@ -10,6 +10,6 @@
"lint": "eslint ."
},
"dependencies": {
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.14"
"@snapshot-labs/eslint-config-base": "^0.1.0-beta.15"
}
}
7 changes: 6 additions & 1 deletion packages/eslint-nuxt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ module.exports = {
'vue/define-macros-order': [
'error',
{
order: ['defineOptions', 'defineProps', 'defineEmits', 'defineSlots']
order: [
'defineOptions',
'defineProps',
'defineEmits',
'defineSlots'
]
}
],
'vue/define-props-declaration': ['error', 'type-based'],
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/eslint-config-nuxt",
"version": "0.1.0-beta.14",
"version": "0.1.0-beta.15",
"publishConfig": {
"access": "public"
},
Expand Down
1 change: 0 additions & 1 deletion packages/prettier-config/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
semi: true,
singleQuote: true,
printWidth: 100,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the change

tabWidth: 2,
trailingComma: 'none',
arrowParens: 'avoid'
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/prettier-config",
"version": "0.1.0-beta.11",
"version": "0.1.0-beta.15",
"publishConfig": {
"access": "public"
},
Expand Down