Skip to content

Commit

Permalink
Update the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
w3nl committed Jul 25, 2024
1 parent a045903 commit 55aebb9
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 105 deletions.
56 changes: 30 additions & 26 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,43 +1,47 @@
{
"root": true,
"env": {
"es6": true,
"node": true,
"browser": false
"settings": {
"jsdoc": {
"mode": "typescript"
}
},
"root": true,
"extends": [
"@hckrnews/eslint-config",
"plugin:import/recommended",
"plugin:n/recommended",
"plugin:jsdoc/recommended"
],
"plugins": [
"import"
],
"extends": [
"@hckrnews/eslint-config"
],
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "always"
}
],
"consistent-return": "warn",
"eqeqeq": "warn",
"jsdoc/require-param-description": "off",
"jsdoc/require-property-description": "off",
"jsdoc/require-returns-description": "off",
"max-len": [
"warn",
{
"code": 120
}
]
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
"env": {
"es6": true,
"node": true,
"jquery": false,
"browser": true
},
"settings": {
"jsdoc": {
"mode": "typescript"
}
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"overrides": [
{
"files": [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)"
],
"env": {
"jest": true
}
}
]
}
36 changes: 7 additions & 29 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-html": "^8.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^48.8.3",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-n": "^17.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^7.0.0",
"esm": "^3.2.25",
"jscpd": "^4.0.0",
"prettier": "^3.0.0",
Expand Down
Loading

0 comments on commit 55aebb9

Please sign in to comment.