1.5.3 • Published 16 days ago
@gearbox-solutions/eslint-config-gbx v1.5.3
eslint-config-gbx
Install package and dependencies
pnpm install --save-dev @gearbox-solutions/eslint-config-gbx
Create and configure your .eslintrc.cjs
touch .eslintrc.cjs
Add the following to your .eslintrc.cjs
module.exports = {
extends: '@gearbox-solutions/gbx',
};
Create and configure prettier.config.js
export default {
plugins: [import('prettier-plugin-tailwindcss')],
printWidth: 120
}
Add scripts to package.json
Add the following two script to your package.json file.
You'll need to replace <src>
with the location of the files you'd like ESLint to target. This may be different for each project.
"scripts": {
"lint": "eslint --ext .ts,.js,.vue <src>",
"lint:fix": "eslint --ext .ts,.js,.vue <src> --fix",
"prettier:write": "prettier --write \"resources/js/**/*.{js,ts,vue}\""
},
Run lint
Will display any errors or warnings ESLint finds in the codebase
npm run lint
Run fix
Will attempt to fix any errors or warnings that ESLint finds
npm run lint:fix
Run Prettier
Format files with Prettier formatting
npm run prettier:write
Publishing this package
If you make changes to this package, you'll need to publish it to NPM. To do so, follow these steps:
- Update Version in
package.json
- Commit and push changes
- run
npm publish --access public
1.5.3
16 days ago
1.5.2
24 days ago
1.5.1
29 days ago
1.5.0
2 months ago
1.4.5
3 months ago
1.4.4
4 months ago
1.2.0
10 months ago
1.4.3
8 months ago
1.4.2
10 months ago
1.4.1
10 months ago
1.2.3
10 months ago
1.4.0
10 months ago
1.3.1
10 months ago
1.2.2
10 months ago
1.3.0
10 months ago
1.2.1
10 months ago
1.1.1
11 months ago
1.1.0
11 months ago
1.0.1
1 year ago
1.0.0
1 year ago