0.0.42 • Published 2 years ago
@nx-pkg/eslint-plugin v0.0.42
@nx-pkg/eslint-plugin
An ESLint plugin to enforce a consistent code styles across NxPKG projects
Installation
You'll first need to install ESLint:
$ yarn add -D eslintNext, install @nx-pkg/eslint-plugin:
$ yarn add -D @nx-pkg/eslint-pluginNote: If you installed ESLint globally (using the -g flag) then you must also install @nx-pkg/eslint-plugin globally.
Usage
Add @nx-pkg/eslint-plugin to the extends section of your .eslintrc.js or .eslintrc.json configuration file and
and configure parser and parserOptions. For the plugin, you can omit the eslint-plugin-:
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"extends": ["plugin:@nx-pkg/recommended"]
}Custom Rules
0.0.42
2 years ago