auto-complete-element/.eslintrc.json

56 строки
1.2 KiB
JSON

{
"root": true,
"plugins": ["custom-elements"],
"extends": [
"plugin:github/browser",
"plugin:github/recommended",
"plugin:github/typescript",
"plugin:custom-elements/recommended"
],
"rules": {
"github/no-then": "off",
"no-invalid-this": "off",
"custom-elements/tag-name-matches-class": ["error", {"suffix": "Element"}],
"import/extensions": ["error", "always"],
"import/no-unresolved": "off"
},
"globals": {
"AutocompleteElement": "readonly"
},
"ignorePatterns": ["dist/", "examples/dist"],
"overrides": [
{
"files": ["test/*.js", "rollup.config.js"],
"parser": "espree",
"parserOptions": {
"ecmaVersion": 8
},
"rules": {
"github/unescaped-html-literal": "off"
}
},
{
"files": "test/**/*.js",
"excludedFiles": "test/karma.config.js",
"env": {
"mocha": true
},
"globals": {
"assert": true
}
},
{
"files": "validator.js",
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off"
}
},
{
"files": ["*.config.js"],
"rules": {
"filenames/match-regex": "off"
}
}
]
}