eslint-config-mskcc
v0.2.0
Published
MSKCC base eslint config
Downloads
3
Maintainers
Readme
eslint-config-mskcc
This package provides MSKCC base eslint configurations to keep code quality consistent with all our teams. Use this as the base to your project. These configurations will be continuously updated.
Installation
pnpm install --save-dev eslint // Actual prettier
pnpm install --save-dev eslint-config-mskcc // configuration file
or
npm install --save-dev prettier // Actual prettier
npm install --save-dev prettier-config-mskcc // configuration file
Usage
Create a .eslintrc.js
file in your root directory, then add the appropriate configuration(s):
// es6
module.exports = {
extends: ['mskcc'],
};
// ReactJS
module.exports = {
extends: ['mskcc/react', 'mskcc'],
};
// ReactJS with TypeScript
module.exports = {
extends: ['mskcc/typescript', 'mskcc'],
};
Full list of configurations
| Type | "extends" path | Description | file types |
| --------------------- | ------------------ | ----------------------------------------- | ----------- |
| ES6 | mskcc
| ES6 base (must be at the end of the array | js
|
| React | mskcc/react
| React rules (airbnb) | js
, jsx
|
| React with TypeScript | mskcc/typescript
| React and TypeScript rules (airbnb) | ts
, tsx
|
| Markdown | mskcc/markdown
| Markdown rules | md
,mdx
|
TODO
- Futher investigation of import resolver