@ajv-validator/config
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -0,4 +1,5 @@ | ||
const jsConfig = require("./.eslintrc_js") | ||
module.exports = { | ||
env: { node: true }, | ||
root: true, | ||
env: {node: true}, | ||
parser: "@typescript-eslint/parser", | ||
@@ -15,2 +16,27 @@ parserOptions: { | ||
], | ||
}; | ||
rules: { | ||
...jsConfig.rules, | ||
"@typescript-eslint/adjacent-overload-signatures": "error", | ||
"@typescript-eslint/array-type": "error", | ||
"@typescript-eslint/ban-ts-comment": "error", | ||
"@typescript-eslint/consistent-type-assertions": "error", | ||
"@typescript-eslint/consistent-type-definitions": ["error"], | ||
"@typescript-eslint/default-param-last": "error", | ||
"dot-notation": "off", | ||
"@typescript-eslint/dot-notation": "error", | ||
"@typescript-eslint/explicit-function-return-type": ["error", {allowExpressions: true}], | ||
"@typescript-eslint/explicit-member-accessibility": ["error", {accessibility: "no-public"}], | ||
"@typescript-eslint/no-extraneous-class": "error", | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-parameter-properties": "error", | ||
"@typescript-eslint/no-unused-expressions": "error", | ||
"@typescript-eslint/no-unused-vars": ["error", {argsIgnorePattern: "^_"}], | ||
"@typescript-eslint/prefer-for-of": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
"@typescript-eslint/prefer-readonly": "error", | ||
"@typescript-eslint/triple-slash-reference": "error", | ||
"@typescript-eslint/unified-signatures": "error", | ||
"@typescript-eslint/no-unnecessary-condition": ["error", {allowConstantLoopConditions: true}], | ||
}, | ||
} |
{ | ||
"name": "@ajv-validator/config", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Shared typescript, eslint and prettier configuration", | ||
@@ -40,3 +40,4 @@ "main": "index.js", | ||
"*.{md,json,yaml,js,ts}": "prettier --write" | ||
} | ||
}, | ||
"prettier": "./prettierrc.json" | ||
} |
export default function add(a: number, b: number): number { | ||
return a + b; | ||
return a + b | ||
} |
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
6214
9
114