eslint-plugin-t1-group
v2.4.55
Published
plugins for syntactically correct code of T1 company
Downloads
130
Readme
plugins for syntactically correct code of T1 company
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-t1-group
:
npm install eslint-plugin-t1-group --save-dev
Usage
Add t1-group-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"extends": ["plugin:t1-group/recommended"],
"plugins": ["t1-group"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"t1-group/import-packages": "error", // or 'no-restricted-imports': ['error', 'lodash'],
"t1-group/unused-operators": "error"
},
// Recommended for use in pages folder
"overrides": [
{
"files": ["src/pages/**/*.js"],
"rules": {
"t1-group/moment-constants-required": "error",
"t1-group/bem-syntax": "error"
}
}
]
}