@madgex/eslint-config-madgex

2.1.0 • Public • Published

eslint-config-madgex

ESLint rules related to Madgex projects.

Install

npm install eslint@9 @madgex/eslint-config-madgex -save-dev

VSCode extension

Use VSCode Extension v3.0.5+ (you might need to switch to pre-release version)

Usage

⚠️ Recomended to use only 1 type of source file in your repo, either commonjs or module (esm). eslint & eslint-plugin-n (this config depends on) has difficulty supporting both at the same time in a monorepo.

// package.json
// ESM import/export modules, set to commonjs if you are using `require/module.exports`, you cant use both
"type": "module",
{
  "engines": {
    "node": ">=18"
  }
}

Node/Browser

// eslint.config.js
import configMadgex from '@madgex/eslint-config-madgex';
export default [...configMadgex];

Vue

config order matters.

// eslint.config.js
import configMadgex from '@madgex/eslint-config-madgex';
import pluginVue from 'eslint-plugin-vue';

export default [...configMadgex, ...pluginVue.configs['flat/recommended']];

Readme

Keywords

none

Package Sidebar

Install

npm i @madgex/eslint-config-madgex

Weekly Downloads

107

Version

2.1.0

License

MIT

Unpacked Size

5.01 kB

Total Files

4

Last publish

Collaborators

  • fernando.perez86
  • ali.hussnain
  • nabuckley
  • dbangamuwa
  • umar.mahmood
  • sjohnson-madgex
  • mbainwiley
  • luke.morgan
  • sadi.uddin
  • joseph.gavin
  • luis.sb.madgex
  • jameswragg
  • richp
  • madgex-npm
  • systems.team
  • celine.cozler
  • antoninoriesi
  • jackjohn86
  • rachel.godfrey
  • claudiayrr
  • nigelpevans