eslint-plugin-kyt
Installation
$ yarn add --dev eslint-plugin-kyt
$ npm i --save-dev --save-exact eslint-plugin-kyt
Add to the plugins
and rules
sections of your ESLint configuration:
.eslintrc(.json)
:
{
"plugins": ["kyt"],
"rules": {
"kyt/css-in-js-namespace": "error",
"kyt/default-props": "error",
"kyt/no-direct-moment-import": "error",
"kyt/validate-double-underscore-dirs": "error"
}
}
.eslintrc.js
:
module.exports = {
plugins: ['kyt'],
rules: {
'kyt/css-in-js-namespace': 'error',
'kyt/default-props': 'error',
'kyt/no-direct-moment-import': 'error',
'kyt/validate-double-underscore-dirs': 'error',
},
};