Skip to content

Commit

Permalink
Revert "Add Prettier GitHub workflow (#9163)"
Browse files Browse the repository at this point in the history
This reverts commit 3239aa5.
  • Loading branch information
rachelwhitton committed Oct 14, 2024
1 parent 4b6ceae commit 1ff5ada
Show file tree
Hide file tree
Showing 8 changed files with 25,292 additions and 9,439 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"globals": {
"MktoForms2": "readonly",
"jQuery": "readonly",
"$": "readonly"
}
}
80 changes: 0 additions & 80 deletions .github/workflows/prettier.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,6 @@ lando start
You can view the local environment at `localhost:8000/`. Updates to docs are automatically refreshed in the browser.
## Linting and Code Formatting
We use ESLint and Prettier to enforce code style. On each pull request to the repository, if any `.js`, `.jsx`, `.ts` or `.tsx` files are modified in the `/src` directory, We run Prettier to check for code styling issues on the updated/changed files. If Prettier made any changes, those changes are automatically committed back to the PR (see [example PR](https://github.com/pantheon-systems/documentation/pull/9180#issuecomment-2292403319)).
To check for linting issues locally, run:
```bash
npm run lint
```
To automatically fix formatting issues across the entire `/src` directory, run:
```bash
npm run format
```
Be cautious when running this command, as it will automatically fix any formatting issues it can.
## Testing
We include several tools to test that new content doesn't break the documentation. Most of these tests are performed automatically by our continuous integration service, but pull requests created from external contributors aren't included in CI tests. If you want to manually test your branch, you can execute the following tests within the Docker container.
Expand Down
27 changes: 0 additions & 27 deletions eslint.config.js

This file was deleted.

Loading

0 comments on commit 1ff5ada

Please sign in to comment.