-
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.
frontend: Add
eslint.config.js
file to report warnings
Add `eslint.config.js` file to report warnings instead of errors for the potential issues that ESLint reports for the `frontend/`. The reported issues could be fixed opportunistically when making other changes to the codebase, in order to test the various components at the same time.
- Loading branch information
Showing
7 changed files
with
48 additions
and
71 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,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', | ||
}, | ||
}, | ||
]; |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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