@inrupt/eslint-config-lib
Advanced tools
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"], | ||
}, | ||
} |
{ | ||
"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" | ||
} | ||
} |
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
4564
48
3