Skip to content

Commit

Permalink
Use based person's config
Browse files Browse the repository at this point in the history
  • Loading branch information
kadiryazici committed Mar 17, 2024
1 parent 94202cb commit 57a6706
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 222 deletions.
24 changes: 2 additions & 22 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
import antfu from '@antfu/eslint-config'
import config from '@kadiryazici/eslint-config'

export default antfu({
rules: {
'no-console': 'off',
'vue/attribute-hyphenation': 'off',
'vue/v-on-event-hyphenation': 'off',
'ts/consistent-type-definitions': ['error', 'type'],
'vue/custom-event-name-casing': 'off',
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 1,
},
multiline: {
max: 1,
},
}],
// Require curly always for if statements
'curly': ['error', 'all'],
// if else statements should be separated by a newline
'brace-style': ['error', 'stroustrup', { allowSingleLine: false }],
},
})
export default config()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"wowerlay": "1.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.4",
"@iconify-json/octicon": "^1.1.52",
"@iconify-json/ph": "^1.1.11",
"@kadiryazici/eslint-config": "^1.0.2",
"@tauri-apps/cli": "^1.5.3",
"@types/node": "^20.11.16",
"@vitejs/plugin-vue": "5.0.3",
Expand Down
Loading

0 comments on commit 57a6706

Please sign in to comment.