@valtech-commerce/pwastudio-config
v1.1.0
Published
Valtech_Commerce PWA Studio configurations
Downloads
644
Readme
@valtech-commerce/pwastudio-config
Opinionated PWA Studio configurations.
Configurations
| config | Description | | ------------------------------------ | ---------------------------- | | eslint | Configurations for ESLint | | prettier | Configurations for Prettier | | stylelint | Configurations for stylelint |
Install
$ npm install @valtech-commerce/pwastudio-config
Usage for ESLint
Add some ESLint config to your .eslintrc.cjs
:
module.exports = {
...require("@valtech-commerce/pwastudio-config/eslint"),
};
Used plugin / configuration
- @valtech-commerce/react - Valtech_Commerce base React.js rules
- eslint-plugin-package-json - Rules for valid, consistent, and readable package.json files
- jsx-a11y/recommended - Recommended rules for accessibility rules on JSX elements
- package-json/recommended - Recommended rules for package.json files
- @magento/eslint-config - Recommended rules for PWA Studio
Usage for Prettier
Add some Prettier config to your .prettierrc.cjs
:
module.exports = {
...require("@valtech-commerce/pwastudio-config/prettier"),
};
Usage for stylelint
Add some stylelint config to your .stylelintrc.cjs
:
module.exports = {
...require("@valtech-commerce/pwastudio-config/stylelint"),
};
Used plugin / configuration
- @valtech-commerce/core - Valtech_Commerce base rules
- stylelint-config-css-modules - CSS modules shareable config for stylelint.
- stylelint-react-native - A collection of React Native specific linting rules
Documentation
See the Changelog to see what has changed.
Contribute
See the Contributing Guidelines for ways to get started.
See the Support Guide for ways to get help.
See the Security Policy for sharing vulnerability reports.
This project has a Code of Conduct. By interacting with this repository, organization, or community you agree to abide by its terms.