Socket
Socket
Sign inDemoInstall

@inrupt/eslint-config-lib

Package Overview
Dependencies
Maintainers
10
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inrupt/eslint-config-lib - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0-alpha.1

34

index.js

@@ -25,3 +25,37 @@ /*

"@inrupt/eslint-config-base",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
plugins: [
"@typescript-eslint"
],
parser: "@typescript-eslint/parser",
// Load typescript rules to handle es6 and typescript
parserOptions: {
project: "./tsconfig.json",
ecmaVersion: 2018,
sourceType: "module",
},
rules: {
"@typescript-eslint/return-await": ["error", "in-try-catch"],
// Allow empty arrow functions, useful as defaults or for testing mocks
"@typescript-eslint/no-empty-function": [
"error", { "allow": ["arrowFunctions"] }
],
"@typescript-eslint/no-floating-promises": "error",
// We allow underscores in some situations, such as internal_ or unstable_. Additionally,
// many of the libraries we use commonly use underscores, so disable this rule.
"@typescript-eslint/camelcase": ["off"],
// Use typescript's definition checker
"no-use-before-define": ["off"],
"@typescript-eslint/no-use-before-define": ["warn"],
},
}

3

package.json
{
"name": "@inrupt/eslint-config-lib",
"version": "0.1.2",
"version": "0.2.0-alpha.1",
"description": "Shared eslint config for Javascript at @inrupt",

@@ -25,4 +25,5 @@ "main": "index.js",

"eslint": "^7.1.0",
"prettier": "^2.2.1",
"@inrupt/eslint-config-base": "^0.1.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc