Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voightco/wallace
Swiftly set-up your local development environment
https://github.com/voightco/wallace
configuration dotfiles editorconfig eslint prettier vscode
Last synced: 20 days ago
JSON representation
Swiftly set-up your local development environment
- Host: GitHub
- URL: https://github.com/voightco/wallace
- Owner: voightco
- License: mit
- Created: 2020-05-06T14:08:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T06:09:49.000Z (about 2 years ago)
- Last Synced: 2024-11-26T11:43:35.092Z (3 months ago)
- Topics: configuration, dotfiles, editorconfig, eslint, prettier, vscode
- Language: JavaScript
- Homepage:
- Size: 492 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
![wallacelogo](./docs/github-logo.jpg)
Quickly set-up your local linting environment.
## Intro
A **basic linting set-up** you can add to any (node) project. These are opionated default configuration files. Please tweak them to your liking, don't take them 'as is'.
## Includes
- [EditorConfig][config]: helps to maintain a consistent coding styles across various editors and IDEs.
- [ESLint][eslint]: analyzes JavaScript to quickly find syntax problems (errors).
- [Stylelint][stylelint]: avoids errors and enforces conventions in your styles.
- [Prettier][prettier]: opinionated code formatter (style).
- [VScode editor settings][prettier]: common defaults for the VSCode text editor.## Install
Most of these configurations work by installing a plugin for your text editor and then adding _configuration files_ to your project. You can add these `dotfiles` to your _existing project_, put them in the root of your directory. Or install them _globally_ on your machine by adding them to the root of your machine.
### Linting
If you installed the _plugins for your editor_, it will show any linting warnings and errors trough the interface. You can also lint trough your _cli_ using `npm run scripts`.
_Lint every JavaScript file in your project using the cli_
```
npm run lint:css
```_Lint every CSS file in your project using the cli_
```
npm run lint:js
```### VSCode settings
The easiest way to install the VScode configuration is to open up the `settings.json` file from **this repository** and copy and paste the contents into your current `settings.json` **from VScode**.
## Plugins
- Install the [EditorConfig plugin][ediplugin] for your text editor
- Install the [ESLint plugin][esplugin] for your text editor
- Install the [Stylelint plugin][styleplug] for your text editor_You'll probably don't need the prettier plugin, we extend prettier through ESLint._
## Support
I believe in making resources and products public and free (as in freedom, not free as in free frappuccinos) so people can build upon them. If you like my resources and products you can consider [supporting me][support].
Made with 🤍 by [Danny de Vries][author] and [contributors][contributors].
## License
[MIT][license] © [Danny de Vries][author]
[author]: https://github.com/dandevri
[license]: license
[contributors]: https://github.com/voightco/wallace/graphs/contributors
[support]: https://www.dandevri.es/support/
[ediplugin]: https://editorconfig.org/#download
[config]: https://editorconfig.org/
[eslint]: https://eslint.org/
[esplugin]: https://eslint.org/docs/user-guide/integrations
[prettier]: https://prettier.io/
[stylelint]: https://stylelint.io/
[styleplug]: https://stylelint.io/user-guide/integrations/editor