eslint-config-salesforce
Advanced tools
Comparing version 1.1.1 to 1.2.0
116
.eslintrc.js
@@ -6,65 +6,81 @@ module.exports = { | ||
}, | ||
extends: ['eslint:recommended', 'prettier'], | ||
plugins: ['eslint-plugin-import', 'eslint-plugin-jsdoc'], | ||
extends: ["eslint:recommended", "prettier"], | ||
plugins: ["eslint-plugin-import", "eslint-plugin-jsdoc"], | ||
rules: { | ||
// ESLint Recommended Overrides | ||
'valid-typeof': 'off', | ||
"valid-typeof": "off", | ||
// EsLint Customizations | ||
'arrow-body-style': 'error', | ||
'prefer-arrow-callback': 'error', | ||
'brace-style': ['error', '1tbs'], | ||
camelcase: 'error', | ||
complexity: 'error', | ||
curly: ['error', 'multi-line'], | ||
'class-methods-use-this': 'error', | ||
'eol-last': 'error', | ||
eqeqeq: ['error', 'smart'], | ||
'guard-for-in': 'error', | ||
'id-blacklist': 'error', | ||
'id-match': 'error', | ||
'max-len': ['error', { code: 120 }], | ||
'new-parens': 'error', | ||
'no-await-in-loop': 'error', | ||
'no-caller': 'error', | ||
'no-console': 'error', | ||
'no-eval': 'error', | ||
'no-lonely-if': 'error', | ||
'no-multiple-empty-lines': 'error', | ||
'no-new-wrappers': 'error', | ||
'no-octal-escape': 'error', | ||
'no-shadow': [ | ||
'error', | ||
"arrow-body-style": "error", | ||
"prefer-arrow-callback": "error", | ||
"brace-style": ["error", "1tbs"], | ||
camelcase: "error", | ||
complexity: "error", | ||
curly: ["error", "multi-line"], | ||
"class-methods-use-this": "error", | ||
"eol-last": "error", | ||
eqeqeq: ["error", "smart"], | ||
"guard-for-in": "error", | ||
"id-blacklist": "error", | ||
"id-match": "error", | ||
"max-len": ["error", { code: 120 }], | ||
"new-parens": "error", | ||
"no-await-in-loop": "error", | ||
"no-caller": "error", | ||
"no-console": "error", | ||
"no-eval": "error", | ||
"no-lonely-if": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-new-wrappers": "error", | ||
"no-octal-escape": "error", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
hoist: 'all', | ||
patterns: [ | ||
{ | ||
group: ["src/**"], | ||
message: | ||
"imports from this repo's src folder should be a relative path", | ||
}, | ||
{ | ||
group: ["**/../lib/**", "lib/**"], | ||
message: "import from /src not from /lib. /lib is a build artifact", | ||
}, | ||
], | ||
}, | ||
], | ||
'no-throw-literal': 'error', | ||
'no-trailing-spaces': 'error', | ||
'no-undef-init': 'error', | ||
'no-underscore-dangle': 'error', | ||
'no-unsafe-finally': 'error', | ||
'no-unused-expressions': 'error', | ||
'no-var': 'error', | ||
'object-shorthand': 'error', | ||
'one-var': ['error', 'never'], | ||
'prefer-const': 'error', | ||
'prefer-spread': 'error', | ||
'quote-props': ['error', 'as-needed'], | ||
radix: 'error', | ||
'spaced-comment': [ | ||
'error', | ||
'always', | ||
"no-shadow": [ | ||
"error", | ||
{ | ||
markers: ['/'], | ||
hoist: "all", | ||
}, | ||
], | ||
'use-isnan': 'error', | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef-init": "error", | ||
"no-underscore-dangle": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unused-expressions": "error", | ||
"no-var": "error", | ||
"object-shorthand": "error", | ||
"one-var": ["error", "never"], | ||
"prefer-const": "error", | ||
"prefer-spread": "error", | ||
"quote-props": ["error", "as-needed"], | ||
radix: "error", | ||
"spaced-comment": [ | ||
"error", | ||
"always", | ||
{ | ||
markers: ["/"], | ||
}, | ||
], | ||
"use-isnan": "error", | ||
// Special Plugin Rules | ||
'import/order': 'error', | ||
'jsdoc/check-alignment': 'error', | ||
'jsdoc/check-indentation': 'error', | ||
'jsdoc/newline-after-description': 'error', | ||
"import/order": "error", | ||
"jsdoc/check-alignment": "error", | ||
"jsdoc/check-indentation": "error", | ||
"jsdoc/newline-after-description": "error", | ||
}, | ||
}; |
{ | ||
"name": "eslint-config-salesforce", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "The eslint config for Salesforce projects", | ||
@@ -21,6 +21,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.6.9" | ||
"eslint": "^8.38.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jsdoc": "^39.9.1" | ||
}, | ||
@@ -27,0 +27,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3833
83