eslint-config-monar
Monar eslint config
Last updated 4 months ago by mastermonar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-monar 
SYNC missed versions from official npm registry.

Monar eslint-config

Install

yarn add -ED eslint-config-monar

Setup

Extend your .eslintrc configuration with:

extends: ['monar'],

Configure a tsconfig.json file to the root of the workspace if you don't already have one:

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "lib": ["es2017", "dom"],
    "rootDir": "src",
    "jsx": "react",
    "strict": true,
    "esModuleInterop": true,
    "moduleResolution": "node",
    "experimentalDecorators": true
  },
  "exclude": ["node_modules"]
}

React (optional)

Install peer dependencies:

yarn add -ED eslint-plugin-react eslint-plugin-react-hooks

Extend your .eslintrc configuration with:

extends: ['monar/react'],

Helpers

Add these to your package.json scripts:

"scripts": {
  "lint": "eslint --ext .js,.jsx,.ts,.tsx ./src",
  "lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx ./src"
}

Current Tags

  • 2.0.1                                ...           latest (4 months ago)

5 Versions

  • 2.0.1                                ...           4 months ago
  • 2.0.0                                ...           5 months ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 6
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |