1.6.1-2 • Published 8 months ago
@ridecell/eslint-config-react v1.6.1-2
@ridecell/eslint-config-react
ESLint configuration for Ridecell React apps
NOTE: This is not the same https://www.npmjs.com/package/eslint-config-react
Installation
Run the following command in your project root directory:
yarn add --dev @ridecell/eslint-config-reactThen you need to create 3 files:
.eslintrcwith the following content:
{
"parser": "babel-eslint",
"extends": "@ridecell/eslint-config-react"
}.prettierrc.jswith the following content:
module.exports = require('@ridecell/eslint-config-react/.prettierrc').prettierignorewith the following content:
*.json
node_modules
distThat's it! You can always override those setting.
Prettier
You can add the following 2 commands to your package.json scripts
"prettier-changed": "pretty-quick",- prettifies only the files that were changed"prettier-all": "prettier --write \"**/*.{js,jsx}\""- prettifies all the files
Development
To test changes to the lint rules against code, use npm-link in a project. Helpful guide
1.6.1-2
8 months ago
1.6.1-1
10 months ago
1.6.1-0
10 months ago
1.6.0-2
2 years ago
1.6.0-1
2 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.0
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2-beta
7 years ago
1.1.1
7 years ago
1.0.3
7 years ago
1.0.2-beta4
7 years ago
1.0.2-beta2
7 years ago
1.0.2-beta
7 years ago
1.1.0
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago