-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from cNikolaou/frontend_format_lint
Add Prettier and ESLint to format and lint `frontend/`
- Loading branch information
Showing
22 changed files
with
2,682 additions
and
1,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ignore changes made by formatting with Prettier | ||
ff38a0d24eab8b96a555c91793b2a7ea8401aada |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
semi: true | ||
singleQuote: true | ||
tabWidth: 2 | ||
trailingComma: 'es5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import pluginJs from '@eslint/js'; | ||
import pluginVue from 'eslint-plugin-vue'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
|
||
export default [ | ||
pluginJs.configs.recommended, | ||
|
||
...pluginVue.configs['flat/essential'], | ||
|
||
eslintConfigPrettier, | ||
|
||
{ | ||
files: ['**/*.{js,mjs,cjs,vue}'], | ||
|
||
rules: { | ||
'no-unused-vars': 'warn', | ||
'no-extra-boolean-cast': 'warn', | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['**/*.vue'], | ||
rules: { | ||
'vue/require-v-for-key': 'warn', | ||
'vue/multi-word-component-names': 'warn', | ||
'vue/no-side-effects-in-computed-properties': 'warn', | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.