@golemio/lint-config-frontend
v1.0.0-dev.741512476
Published
Golemio Linting Shareable Config for Frontend Devs
Downloads
2
Readme
@golemio/lint-config-frontend
Golemio Linting Shareable Config for Frontend
Installation
yarn add -D @golemio/lint-config-frontend prettier eslint [email protected] @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-next eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort lint-staged postcss stylelint stylelint-config-prettier-scss stylelint-config-standard-scss
Usage
// for NEXT.js projects
// .eslintrc.json
module.exports = {
extends: "@golemio/lint-config-frontend",
};
// and copy .lintstagedrc.json, .prettierrc.json and .stylelintrc.json from repository
// optionally add to package.json scripts for local manual linting: "ts-lint": "tsc --noEmit -p tsconfig.json", "style": "stylelint **/*.scss --fix"