Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shelfio/eslint-config
https://github.com/shelfio/eslint-config
eslint-config npm-package prettier
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shelfio/eslint-config
- Owner: shelfio
- License: mit
- Created: 2018-11-11T02:15:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T23:39:28.000Z (7 months ago)
- Last Synced: 2024-04-14T13:11:38.287Z (7 months ago)
- Topics: eslint-config, npm-package, prettier
- Language: JavaScript
- Size: 680 KB
- Stars: 6
- Watchers: 22
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: license
Awesome Lists containing this project
README
# @shelf/eslint-config ![](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)
## Style Guide
Read our [style guide](./docs/style-guide.md)
## Install
```
$ yarn add @shelf/eslint-config --dev
```## Usage
### Backend
```js
import tsConfig from '@shelf/eslint-config/typescript';export default [...tsConfig];
```### Frontend
#### JavaScript with React `eslint.config.js`
```js
import feConfig from '@shelf/eslint-config/frontend';export default [
...feConfig,
{
settings: {
react: {
version: '16.7.0',
},
},
rules: {
"react/prop-types": "warn"
}
}
];
```#### TypeScript or TypeScript + Next `eslint.config.js`
```js
import feTsConfig from '@shelf/eslint-config/frontend-typescript';export default [
...feTsConfig,
{
settings: {
react: {
version: '16.7.0',
},
},
rules: {
"react/prop-types": "warn"
}
}
];
```#### Vue `eslint.config.js`
```js
import feVueConfig from '@shelf/eslint-config/frontend-vue';export default [
...feVueConfig,
{
rules: {
"no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
}
}
];
```#### Typescript with Vue `eslint.config.js`
```js
import feTsVueConfig from '@shelf/eslint-config/frontend-typescript-vue';export default [
...feTsVueConfig,
{
rules: {
"@typescript-eslint/no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
}
}
];
```## Publish
```sh
$ yarn version
$ git push --tags
```## License
MIT © [Shelf](https://shelf.io)