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

@tensor-corp/eslint-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

@tensor-corp/eslint-config - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

base.js

121

index.js
'use strict';
// конфигурация, которая применима к любому JS коду в компании: код es5, es6+, node.js
module.exports = {
parserOptions: {
ecmaVersion: 9
},
env: {
browser: true,
node: true,
es6: true,
amd: true,
mocha: true,
jquery: true
},
globals: {
rk: true
},
rules: {
'keyword-spacing': 1,
'no-cond-assign': 2,
'no-constant-condition': 2,
'no-console': 1,
'no-debugger': 2,
'no-dupe-args': 2,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-empty-character-class': 2,
'no-irregular-whitespace': 2,
'no-empty': 2,
'no-extra-semi': 2,
'no-unsafe-negation': 2,
'use-isnan': 2,
'valid-typeof': 2,
'no-caller': 2,
'guard-for-in': 2,
'no-eval': 2,
'no-lone-blocks': 2,
'no-redeclare': 2,
'no-useless-call': 2,
'no-with': 2,
'no-delete-var': 2,
'no-catch-shadow': 2,
'no-undef': 2,
'no-unused-vars': 2,
'no-use-before-define': [2, 'nofunc'],
'no-shadow-restricted-names': 2,
'no-extra-bind': 2,
semi: 2,
'new-cap': 2,
'wrap-iife': [2, 'any'],
'comma-style': [1, 'last'],
'no-mixed-spaces-and-tabs': 1,
radix: 1,
'vars-on-top': 0,
'no-new-wrappers': 1,
'max-nested-callbacks': [1, 3],
curly: 1,
'operator-linebreak': 1,
'no-obj-calls': 1,
'no-sparse-arrays': 1,
'no-unexpected-multiline': 1,
'no-unreachable': 1,
quotes: [1, 'single', 'avoid-escape'],
'lines-around-comment': [
1,
{
beforeBlockComment: true,
beforeLineComment: true,
allowBlockStart: true
}
],
'new-parens': 1,
'eol-last': 1,
indent: [
1,
3,
{
SwitchCase: 1
}
],
'semi-spacing': [
1,
{
before: false,
after: true
}
],
'space-unary-ops': [
1,
{
words: true,
nonwords: false
}
],
'comma-spacing': [
1,
{
before: false,
after: true
}
],
'key-spacing': [
1,
{
beforeColon: false,
afterColon: true
}
],
'space-infix-ops': 1,
'space-in-parens': [1, 'never'],
'space-before-blocks': 1,
'func-call-spacing': [1, 'never'],
'space-before-function-paren': [1, 'never'],
'brace-style': 1,
'id-match': [
1,
'^(_?\\$?[A-Za-z][a-zA-Z0-9]{0,31}|[A-Z][A-Z0-9_]{2,31}|\\$)$',
{
properties: true
}
]
}
extends: './base.js',
};
{
"name": "@tensor-corp/eslint-config",
"version": "1.0.0",
"main": "index.js",
"version": "2.0.0",
"files": [
"index.js",
"base.js",
"es6.js",
"node.js"
],
"scripts": {
"lint": "./node_modules/.bin/eslint -c .eslintrc .",
"fix": "./node_modules/.bin/eslint --fix -c .eslintrc ."
},
"dependencies": {
"eslint-restricted-globals": "0.1.1"
},
"peerDependencies": {

@@ -6,0 +18,0 @@ "eslint": ">= 4.19.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