0.2.0 • Published 2 years ago

eslint-config-mskcc v0.2.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 years ago

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" pathDescriptionfile types
ES6mskccES6 base (must be at the end of the arrayjs
Reactmskcc/reactReact rules (airbnb)js, jsx
React with TypeScriptmskcc/typescriptReact and TypeScript rules (airbnb)ts, tsx
Markdownmskcc/markdownMarkdown rulesmd,mdx

TODO

  • Futher investigation of import resolver