Skip to content

Commit 0deb63b

Browse files
committed
feat: integrate Prettier with ESLint and CI pipeline
- Extend eslint-config-prettier to disable formatting rules - Add check-format step to GitHub Actions workflow - Ensure CI enforces code formatting standards Issue: CLDSRV-723
1 parent 1b6f06f commit 0deb63b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ jobs:
9595
cache: pip
9696
- name: Install python deps
9797
run: pip install flake8
98+
- name: Check code formatting
99+
run: yarn run --silent check-format
98100
- name: Lint Javascript
99101
run: yarn run --silent lint -- --max-warnings 0
100102
- name: Lint Markdown

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const compat = new FlatCompat({
1212
allConfig: js.configs.all
1313
});
1414

15-
export default [...compat.extends('@scality/scality'), {
15+
export default [...compat.extends('@scality/scality'), ...compat.extends('prettier'), {
1616
plugins: {
1717
mocha,
1818
},

0 commit comments

Comments
 (0)