Skip to content

Commit

Permalink
warn only on outdated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshsusai committed Oct 15, 2024
1 parent 82fd234 commit 32dd81f
Show file tree
Hide file tree
Showing 4 changed files with 452 additions and 308 deletions.
113 changes: 113 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
// http://eslint.org/docs/rules/
"env": {
"jasmine": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},

"extends": "eslint:recommended",
"rules": {
"valid-jsdoc": "error",
"default-case": "error",
"id-length": [
"error",
{
"min": 2,
"exceptions": ["id"]
}
],
"no-alert": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-magic-numbers": [
"error",
{
"ignore": [0, 1, 2]
}
],
"no-param-reassign": "error",
"no-prototype-builtins": "off",
"no-return-assign": ["error", "always"],
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-void": "error",
"no-with": "error",

/**
* Stylistic rules
*/

"camelcase": "error",
"complexity": "error",
"curly": [
"error",
"all"
],
"max-depth": [
"error",
3 // http://eslint.org/docs/rules/max-depth
],
"new-cap": "error",
"new-parens": "error",
"no-continue": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-nested-ternary": "error",
"no-tabs": "error",
"no-trailing-spaces": [
"error",
{
"ignoreComments": true,
"skipBlankLines": true
}
],
"no-unneeded-ternary": "error",
"nonblock-statement-body-position": [
"error",
"beside" // http://eslint.org/docs/rules/nonblock-statement-body-position
],
"one-var-declaration-per-line": [
"error",
"always"
],
"semi": [
"error",
"always"
],
"vars-on-top": "error",

/**
* ES6 Specific
*/

"arrow-body-style": [
"error",
"as-needed"
],
"no-confusing-arrow": "error",
"no-useless-constructor": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error"
}
}
166 changes: 0 additions & 166 deletions eslint.config.mjs

This file was deleted.

Loading

0 comments on commit 32dd81f

Please sign in to comment.