43081j / eslint-plugin-lit

lit-html support for ESLint
120 stars 22 forks source link

Definition for rule 'lit/rule-name' was not found. (lit/rule-name) #76

Closed leonheess closed 3 years ago

leonheess commented 3 years ago

Getting the aforementioned error with the following config:

module.exports = {
  parser: '@typescript-eslint/parser',
  plugins: [
    'cypress',
    'prettier',
    '@typescript-eslint',
    'lit',
  ],
  extends: [
    'eslint:recommended',
    'plugin:cypress/recommended',
    'prettier',
    'plugin:@typescript-eslint/recommended',
    'prettier/@typescript-eslint',
    'plugin:lit/recommended',
  ],
  rules: {
    'lit/rule-name': 'error',
    'no-unexpected-multiline': 'off',
    '@typescript-eslint/indent': 'off',
    'prettier/prettier': 'error',
    'linebreak-style': ['error', 'unix'],
    'no-console': 'warn',
    'no-debugger': 'warn',
    'no-unused-vars': [
      'error',
      {
        'ignoreRestSiblings': true
      }
    ]
  },
  ignorePatterns: [
    '.*',
    '*.config.js'
  ],
  env: {
    'es6': true,
    'browser': true,
    'node': true,
  },
}
stramel commented 3 years ago

"rule-name" is meant to be replaced by whatever rule you wish to enable (ie. binding-positions) like so lit/binding-positions

leonheess commented 3 years ago

Welp, that makes a lot of sense 😅