@pilaton/eslint-config-base
v1.3.0
Published
Basic ESLint configuration including Javascript and Typescript checks
Downloads
48
Readme
@pilaton/eslint-config-base
The configuration includes basic JS and TS code checks.
[!NOTE] Package from the
eslint-eco
monorepository.
I recommend reading the documentation to understand the whole picture.
Included in the package
- ESLint recommended config
eslint-plugin-n
— Additional ESLint rules for Node.jseslint-plugin-import
— ES2015+ (ES6+) import/export syntax linting supporteslint-plugin-promise
– The best practices for JS/TS promiseseslint-plugin-unicorn
— More than 100 powerful ESLint ruleseslint-config-prettier
— Turns off all rules that are unnecessary or might conflict with Prettier.eslint-config-standard
— Rules to make your code conform to the general practices of the «JS Standard Code Style»eslint-config-love
— Rules for TypeScript to comply with the «JS Standard Code Style»
Install
npm i @pilaton/eslint-config-base --save-dev
Usage
This configuration is created for the new ESLint Flat Config, and only supports ESM!
eslint.config.js
(eslint>=v8.23.1)
import base from '@pilaton/eslint-config-base';
export default [
...base,
{
// Your config
},
];