eslint-plugin-kyt

ESLint plugin for Vi-specific rules.

Usage no npm install needed!

<script type="module">
  import eslintPluginKyt from 'https://cdn.skypack.dev/eslint-plugin-kyt';
</script>

README

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',
  },
};