https://github.com/lifion/eslint-config-lifion-web
Lifion's ESLint config for the Web
https://github.com/lifion/eslint-config-lifion-web
Last synced: about 2 months ago
JSON representation
Lifion's ESLint config for the Web
- Host: GitHub
- URL: https://github.com/lifion/eslint-config-lifion-web
- Owner: lifion
- License: apache-2.0
- Created: 2022-04-23T15:09:31.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-07-18T13:52:51.000Z (almost 2 years ago)
- Last Synced: 2025-03-06T03:04:36.470Z (3 months ago)
- Language: JavaScript
- Size: 1.35 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# eslint-config-lifion-web
[](http://badge.fury.io/js/eslint-config-lifion-web) [](CODE_OF_CONDUCT.md)
This package provides Lifion's base JS `.eslintrc` for the Web as an extensible shared config.
## Usage
Install the module and its peer dependencies:
```sh
npm install eslint-config-lifion-web eslint@8 prettier@2 -D
```Make sure ESLint uses this module by adding "extends" to your `.eslintrc` file:
```json
{
"extends": "lifion-web"
}
```Configure Prettier by adding this to your `.prettierrc` file:
```json
{
"endOfLine": "auto",
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none"
}
```You might want to add these npm scripts to your `package.json` file:
```json
{
"scripts": {
"eslint": "eslint . --ext .js,.json,.md,.ts --ignore-pattern='!.*.*'",
"prettier": "prettier --write '**/*.{hbs,js,json,md,ts}' '.*rc' '!dist/**/*.js'"
}
}
```## License
[Apache-2.0](LICENSE)