An open API service indexing awesome lists of open source software.

https://github.com/hiroxto/eslint-config

ESLintのShareable Config
https://github.com/hiroxto/eslint-config

Last synced: 3 months ago
JSON representation

ESLintのShareable Config

Awesome Lists containing this project

README

          

# @hiroxto/eslint-config

[![npm version](https://badge.fury.io/js/@hiroxto%2Feslint-config.svg)](https://badge.fury.io/js/@hiroxto%2Feslint-config)
![GitHub Actions test workflow](https://github.com/hiroxto/eslint-config/actions/workflows/test.yml/badge.svg)

ESLintのShareable Config

## 使い方

eslintと@hiroxto/eslint-configをインストール。

```shell
$ yarn add -D eslint @hiroxto/eslint-config
```

`.eslintrc.js`を以下のように設定。

```javascript
module.exports = {
root: true,
extends: ['@hiroxto'],
rules: {
// プロジェクト固有のルールがあるならここに書く
},
};
```

他の設定ファイルを読み込む場合は更に追加する。

```javascript
module.exports = {
root: true,
extends: ['@hiroxto', '@hiroxto/eslint-config/vue'],
rules: {
// プロジェクト固有のルールがあるならここに書く
},
};
```

## LICENSE

MIT