Package Exports
- @chenyueban/lint
- @chenyueban/lint/src/eslint
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chenyueban/lint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lint
USAGE
- Install
@chenyueban/lint
npm install --save-dev @chenyueban/lint eslint prettier husky lint-staged
# or
yarn add @chenyueban/lint eslint prettier husky lint-staged -DIt will automatically generate a .eslintrc.js/.prettierrc.js for you (if there's no such file before)
You can customize the rules
in .eslintrc.js
module.exports = {
extends: [require.resolve('@chenyueban/lint/src/eslint')],
rules: {
// your rules
},
}in .prettierrc.js
const config = require('@chenyueban/lint')
module.exports = {
...config.prettier,
}