Skip to content

Commit 0b19eda

Browse files
committed
🔥 drop Prettier Twig “linting”
1 parent f66308d commit 0b19eda

File tree

5 files changed

+9
-252
lines changed

5 files changed

+9
-252
lines changed

Diff for: ‎.lintstagedrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"src/**/*.{js,jsx,ts,tsx}": "eslint --ext .js,.jsx,.ts,.tsx --max-warnings=0",
3-
"src/**/*.{css,scss,styles.js,styles.jsx}": "stylelint",
4-
"src/**/*.{twig,html}": "prettier --check"
3+
"src/**/*.{css,scss,styles.js,styles.jsx}": "stylelint"
54
}

Diff for: ‎.prettierrc

-12
This file was deleted.

Diff for: ‎README.md

-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ $ npx antistatique-frontend@latest
6161
│   └── workflows 👉 Github Actions Workflow for Tests
6262
├── .husky 👉 Husky (pre-commit) configuration
6363
├── .lintstagedrc 👉 lint-staged (for pre-commits) configuration
64-
├── .prettierrc 👉 Prettier configuration (mainly for HTML/TWIG)
6564
├── .storybook
6665
│   ├── main.js 👉 Storybook configuration
6766
│   └── preview.js 👉 Where you load you global CSS
@@ -89,10 +88,8 @@ Now that you've get all the good stuff that you need, you have some new NPM scri
8988

9089
- `yarn lint:js` : Lint your TypeScript files
9190
- `yarn lint:css` : Lint your CSS/PostCSS files
92-
- `yarn lint:html` : Lint your HTML/Twig files
9391
- `yarn fix:js` : Fix JS/TS lint errors
9492
- `yarn fix:css` : Fix CSS/PostCSS lint errors
95-
- `yarn fix:html` : Fix HTML/Twig Prettier format
9693
- `yarn cypress:open` : Open Cypress (for TDD)
9794
- `yarn cypress:run` : Run Cypress tests (website + storybook)
9895
- `yarn jest:start` : Start Jest server

Diff for: ‎package.json

-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
},
1717
"scripts": {
1818
"lint:js": "eslint --ext js,jsx,ts,tsx ./ --max-warnings=0",
19-
"lint:html": "prettier --check 'playground/**/*.{html,twig}'",
2019
"lint:css": "stylelint 'playground/**/*.css'",
2120
"fix:js": "eslint --ext js,jsx,ts,tsx ./ --max-warnings=0 --fix",
2221
"fix:css": "stylelint --fix 'playground/**/*.css'",
23-
"fix:html": "prettier --write 'playground/**/*.{html,twig}'",
2422
"cypress:open": "cypress open",
2523
"cypress:run": "cypress run",
2624
"jest:start": "jest --watchAll",
@@ -57,9 +55,6 @@
5755
"jest": "^29.0.2",
5856
"lint-staged": "^13.0.3",
5957
"pinst": "^3.0.0",
60-
"prettier": "^2.7.1",
61-
"prettier-plugin-twig-enhancements": "^1.0.1",
62-
"prettier-plugin-twig-melody": "^0.4.6",
6358
"stylelint": "^14.11.0",
6459
"stylelint-config-standard": "^28.0.0",
6560
"stylelint-order": "^5.0.0",

0 commit comments

Comments
 (0)