https://github.com/leanpanda-com/eslint-config-leanpanda
ESLint configuration for LeanPanda projects
https://github.com/leanpanda-com/eslint-config-leanpanda
Last synced: 3 days ago
JSON representation
ESLint configuration for LeanPanda projects
- Host: GitHub
- URL: https://github.com/leanpanda-com/eslint-config-leanpanda
- Owner: leanpanda-com
- Created: 2019-04-09T17:06:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T12:10:07.000Z (almost 7 years ago)
- Last Synced: 2025-10-30T18:05:53.774Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-leanpanda
An ESLint configuration for Lean Panda projects.
# Usage
Add dependencies:
```sh
yarn add --dev \
babel-eslint \
eslint \
eslint-config-airbnb \
eslint-config-leanpanda \
eslint-plugin-import \
eslint-plugin-jsx-a11y \
eslint-plugin-react
```
Create .eslintrc.js
```js
module.exports = {
extends: 'leanpanda'
}
```
Modify package.json
```json
"scripts": {
...
"lint:prod": "eslint .",
...
},
```
# Development Mode
For a more relaxed development experience, create a development
mode config.
.eslintrc-dev.js:
```js
module.exports = {
extends: './.eslintrc.js',
rules: {
'no-console': 'off',
'no-unused-vars': 'warn'
}
}
```
Modify package.json
```json
"scripts": {
...
"lint:dev": "eslint -c .eslintrc-dev.js .",
...
},
```