eslint-config-base-diametra
v1.0.0
Published
The Diametra-Labs ESLint configuration preset is intended for react projects that are **written only with javascript**. It offers a very flexible configuration. This preset is not meant to kill your productivity, just worry about coding : )
Downloads
2
Maintainers
Readme
eslint-config-base-diametra
The Diametra-Labs ESLint configuration preset is intended for react projects that are written only with javascript. It offers a very flexible configuration. This preset is not meant to kill your productivity, just worry about coding : )
Features
using eslint best practices
with prettier support, thanks to eslint-plugin-prettier. We take care of formatting the code for you 👌
with react, react-hooks
Installation
including ECMAScript 6+
Install the package with
npm install eslint-config-base-diametra --save-dev
# or
yarn add eslint-config-base-diametra -D
Usage
Now add the config to either your package.json
:
{
"eslintConfig": {
"extends": "eslint-config-base-diametra"
}
}
to your .eslintrc
:
{
"extends": "eslint-config-base-diametra"
}
or .eslintrc.js
:
module.exports = {
extends: 'eslint-config-base-diametra',
}
Assumptions
This ESLint configuration comes with some fundamental assumptions:
- react and/or node environment
- browser and/or node environment
- parser: babel (used babel-eslint parser)