@poap/skunk-linter
v0.0.3
Published
Linting and styleguide for team skunk
Downloads
21
Readme
ESLint declarations for team skunk
A shared set of standards and preferences, enforced through eslint and vscode.
Quickstart
To use:
npm install -D @poap/skunk-linter @babel/eslint-parser eslint eslint-plugin-react husky
- Copy
.eslintrc.js
to your project's.eslintrc.js
- Copy
.babelrc
to your project's.babelrc
- Copy
.vscode/settings.json
to your project's.vscode/settings.json
- Copy
.husky/pre-commit
to your project's.husky/pre-commit
- Run husky initial setup
Lazy shell
npm install -D @poap/skunk-linter @babel/eslint-parser eslint eslint-plugin-react husky
mkdir .vscode .husky
# Download files
curl https://raw.githubusercontent.com/poap-xyz/skunk-linter/main/.eslintrc.js --output .eslintrc.js
curl https://raw.githubusercontent.com/poap-xyz/skunk-linter/main/.vscode/settings.json --output .vscode/settings.json
curl https://raw.githubusercontent.com/poap-xyz/skunk-linter/main/.husky/pre-commit --output .husky/pre-commit
curl https://raw.githubusercontent.com/poap-xyz/skunk-linter/main/.babelrc --output .babelrc
git add -f .eslintrc.js .babelrc .vscode/* .husky/*
chmod ug+x .husky/*
npm pkg set scripts.prepare="husky install"
npm pkg set scripts.lint="eslint --fix src"
npm run prepare
npx husky add .husky/pre-commit
git add .husky/pre-commit
Making changes
The relevant source files are in modules/
. If you make a change, you can update the package by:
- Making the changes
- Updating the version number in
package.json
- Pushing to the main branch of the repo or opening a pull request