Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.8.0 in /ui (#12)
Browse files Browse the repository at this point in the history
* Bump eslint from 8.57.0 to 9.8.0 in /ui

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.8.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.0...v9.8.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Łukasz Witkowski <contact@lukaszwitkowski.com>
  • Loading branch information
dependabot[bot] and lwitkowski authored Jul 31, 2024
1 parent d1008d3 commit f9ea7c1
Show file tree
Hide file tree
Showing 12 changed files with 366 additions and 381 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/cd-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ jobs:
working-directory: ./ui
run: npm install

- name: 'Check code formatting'
working-directory: ./ui
run: npx prettier . --check

- name: 'Static analysis (esLint)'
- name: 'Static analysis (esLint) and formatting checks'
working-directory: ./ui
run: npm run lint

Expand Down
13 changes: 0 additions & 13 deletions ui/.eslintrc.cjs

This file was deleted.

10 changes: 2 additions & 8 deletions ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ npm run build
npm run test:unit
```

### Lint with [ESLint](https://eslint.org/)
### Lint with [ESLint](https://eslint.org/) and Prettier checks/fixes

```sh
npm run lint
```

### Reformat sources

```sh
npx prettier --write .
```
```
16 changes: 16 additions & 0 deletions ui/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import eslint from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'

export default [
eslint.configs.recommended,
...pluginVue.configs['flat/recommended'],
eslintPluginPrettierRecommended,
{
files: ['**/*.vue', '**/*..js', '**/*..jsx', '**/*..cjs', '**/*..mjs'],
ignores: ['.gitignore'],
rules: {
'vue/multi-word-component-names': 'warn'
}
}
]
Loading

0 comments on commit f9ea7c1

Please sign in to comment.