1.1.0 • Published 1 year ago

@healthkit/eslint v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

pnpm add @healthkit/eslint -D

On .eslintrc.js

const eslint = require('./');

module.exports = eslint('node', true);

or for ts

const config = require('@healthkit/eslint');

const config = config('node');
module.exports = {
  ...config,
  parserOptions: {
    ...config.parserOptions,
    tsconfigRootDir: __dirname,
    project: ['./tsconfig.json'],
  },
};

and package.json

{
    "script": {
        "lint": "eslint --quiet ./src/** --ext .ts,.tsx",
        "lint-fix": "eslint --quiet ./src/** --ext .ts,.tsx --fix",
    } 
}