Skip to content

Commit

Permalink
feat: add support for bad-words linter
Browse files Browse the repository at this point in the history
Changes to be committed:
modified:   .eslintrc.js
modified:   package.json
  • Loading branch information
blackfalcon committed Dec 15, 2021
1 parent 0116f78 commit 482ce47
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 48 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ module.exports = {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["lit", "lit-a11y", "jsdoc"],
"plugins": ["lit", "lit-a11y", "jsdoc", "detect-bad-words"],
"settings": {
"customBadWords": ["wtf", "fck", "fluck", "frick", "sht", "poo", ]
},
"rules": {
"accessor-pairs": "error",
"array-bracket-newline": "error",
Expand Down Expand Up @@ -46,6 +49,8 @@ module.exports = {
"curly": "error",
"default-case": "error",
"default-param-last": "error",
"detect-bad-words/in-code": "error",
"detect-bad-words/in-comment": "error",
"dot-location": "error",
"dot-notation": "error",
"eol-last": ["error", "always"],
Expand Down
79 changes: 32 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"license": "Apache-2.0",
"dependencies": {
"chalk": "^4.1.1",
"eslint-plugin-detect-bad-words": "^1.0.7",
"eslint-plugin-jsdoc": "^35.4.0",
"eslint-plugin-lit": "^1.6.1",
"eslint-plugin-lit-a11y": "^1.0.1"
Expand Down

0 comments on commit 482ce47

Please sign in to comment.