eslint-plugin-deku

3.1.2 • Public • Published

ESLint-plugin-Deku

Deku specific linting rules for ESLint. Forked from yannickcr/eslint-plugin-react with slight modifications to support deku.

Installation

Install ESLint either locally or globally.

npm install eslint

If you installed ESLint globally, you have to install Deku plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-deku

Configuration

Add plugins section and specify ESLint-plugin-Deku as a plugin.

{
  "plugins": [
    "deku"
  ]
}

If it is not already the case you must also configure ESLint to support JSX.

{
  "ecmaFeatures": {
    "jsx": true
  }
}

Finally, enable all of the rules that you would like to use.

{
  "rules": {
    "deku/display-name": 1,
    "deku/jsx-boolean-value": 1,
    "deku/jsx-curly-spacing": 1,
    "deku/jsx-max-props-per-line": 1,
    "deku/jsx-no-duplicate-props": 1,
    "deku/jsx-no-undef": 1,
    "deku/jsx-quotes": 1,
    "deku/jsx-sort-prop-types": 1,
    "deku/jsx-sort-props": 1,
    "deku/jsx-uses-deku": 1,
    "deku/jsx-uses-vars": 1,
    "deku/no-danger": 1,
    "deku/no-did-mount-set-state": 1,
    "deku/no-did-update-set-state": 1,
    "deku/no-multi-comp": 1,
    "deku/no-unknown-property": 1,
    "deku/prop-types": 1,
    "deku/deku-in-jsx-scope": 1,
    "deku/require-extension": 1,
    "deku/self-closing-comp": 1,
    "deku/sort-comp": 1,
    "deku/wrap-multilines": 1
  }
}

List of supported rules

License

ESLint-plugin-Deku is licensed under the MIT License.

Package Sidebar

Install

npm i eslint-plugin-deku

Weekly Downloads

14

Version

3.1.2

License

MIT

Last publish

Collaborators

  • deku-scrubs