@inrupt/eslint-config-base
Advanced tools
Comparing version
29
index.js
@@ -35,5 +35,3 @@ /* | ||
"plugin:jest/style", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended", | ||
"prettier/@typescript-eslint" | ||
], | ||
@@ -43,5 +41,5 @@ | ||
plugins: [ | ||
"@typescript-eslint", | ||
"jest", | ||
"prettier", | ||
"header", | ||
], | ||
@@ -55,11 +53,2 @@ | ||
parser: "@typescript-eslint/parser", | ||
// Load typescript rules to handle es6 and typescript | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
}, | ||
settings: { | ||
@@ -117,19 +106,5 @@ "import/resolver": { | ||
"no-return-await": ["off"], | ||
"@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"] } | ||
], | ||
"header/header": ["warn", "./resources/license-header.js"], | ||
"@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"], | ||
// set eol to auto to handle all environments | ||
@@ -136,0 +111,0 @@ "prettier/prettier": [ |
{ | ||
"name": "@inrupt/eslint-config-base", | ||
"version": "0.1.2", | ||
"version": "0.2.0-alpha.1", | ||
"description": "Shared eslint config for Javascript at @inrupt", | ||
@@ -31,2 +31,3 @@ "main": "index.js", | ||
"eslint-plugin-jest": "^23.13.2", | ||
"eslint-plugin-header": "^3.1.1", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
@@ -33,0 +34,0 @@ "typescript": "*" |
6760
-11.1%10
11.11%96
-17.24%