An opinionated code respository for conforming to Vue v3 and Tailwind v3 coding standards.
Clone this repository or update the recommended files below to your existing project:
package.json
(essential).eslintrc.js
(essential)tailwind.config.js
(essential)webpack.config.js
,webpack.mix.js
- non-essential Laravel-mix wrapper for running webpack (optional)
Once the project has been cloned, next install NPM within the project root:
npm install
Run the below NPX command in the root of the directory:
npx eslint -c .eslintrc.js "./resources/js/**" --fix
-c .eslintrc.js
- specifies the Eslint configuration file"./resources/js/**"
- i.e. all files/sub files in the directory--fix
- automatically fix problems
Automatically enforce Eslint rules for your editor when saving files, thus ensuring your conforming to coding standards all the time.
- Install VSCode
- Install the Eslint VSCode extension to the editor with the following settings
-
- Editor: Default Formatter > Eslint
-
- Editor: Format On Paste > check
-
- Editor: Format On Save > check
NOTE: If you're using Eslint on an old project for the first time, ensure you run the command specified in Usage within the root of the project and correct any of the outputted issues from Eslint.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.