0.3.1 • Published 5 days ago
@pretty-cozy/eslint-config v0.3.1
@pretty-cozy/eslint-config
A pretty cozy collection of eslint rules.
Available configs
config name | description |
---|---|
@pretty-cozy/eslint-config/base | General config without a specific usage scope |
@pretty-cozy/eslint-config/base-ts | Replaces /base to support typescript |
@pretty-cozy/eslint-config/react | React specific rule set |
@pretty-cozy/eslint-config/tailwind | Tailwind css specific rule set |
Setup
- Install
eslint
and the packagenpm i -D eslint @pretty-cozy/eslint-config
- Add an eslint configuration that extends on the configs you need.
For example, you can add this to your
package.json
:"eslintConfig": { "extends": [ "@pretty-cozy/eslint-config/base-ts", "@pretty-cozy/eslint-config/react" ] }
- Add npm scripts to your
package.json
:"scripts": { "lint": "eslint ./src", "lint:fix": "npx lint -- --fix" }
Usage
You can use eslint by executing the created scripts:
# Lint your code and print the result
npm run lint
# Autofix linter problems where possible
npm run lint:fix
0.3.1
5 days ago
0.3.0
2 months ago
0.3.0-alpha.0
2 months ago
0.2.0
10 months ago
0.1.0
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.4-alpha.1
1 year ago
0.0.4-alpha.0
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.2-alpha.9
1 year ago
0.0.2-alpha.8
1 year ago
0.0.2-alpha.7
1 year ago
0.0.2-alpha.6
1 year ago
0.0.2-alpha.5
1 year ago
0.0.2-alpha.4
1 year ago
0.0.2-alpha.3
1 year ago
0.0.2-alpha.2
1 year ago
0.0.2-alpha.1
1 year ago
0.0.2-alpha.0
1 year ago