Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ajv-validator/config

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ajv-validator/config - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

.eslintrc_js.js

32

.eslintrc.js

@@ -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}],
},
}

5

package.json
{
"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
}
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