🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@mapbox/eslint-config-mapbox

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/eslint-config-mapbox - npm Package Compare versions

Comparing version

to
5.0.2-dev.1

.prettierrc.yml

24

base.js

@@ -11,10 +11,11 @@ 'use strict';

},
plugins: ['jsonc', 'eslint-plugin-detect-token'],
rules: {
'no-var': 'error',
'prefer-const': 'error',
'eqeqeq': ['error', 'smart'],
eqeqeq: ['error', 'smart'],
'no-confusing-arrow': ['error', { allowParens: false }],
'no-extend-native': 'error',
'no-use-before-define': ['error', 'nofunc'],
'strict': 'error',
strict: 'error',
'no-console': 'off',

@@ -33,4 +34,4 @@

'prefer-arrow-callback': 'error',
'quotes': ['error', 'single', 'avoid-escape'],
'semi': ['error', 'always'],
quotes: ['error', 'single', 'avoid-escape'],
semi: ['error', 'always'],
'space-infix-ops': 'error',

@@ -41,4 +42,15 @@ 'spaced-comment': ['error', 'always'],

'semi-spacing': 'error',
'indent': ['error', 2, { 'SwitchCase': 1 }]
}
indent: ['error', 2, { SwitchCase: 1 }],
'detect-token/detect-token': 'error'
},
overrides: [
{
files: ['*.json', '*.jsonc'],
parser: 'jsonc-eslint-parser',
rules: {
'detect-token/detect-token': 'error',
strict: 'off'
}
}
]
};
{
"name": "@mapbox/eslint-config-mapbox",
"version": "5.0.1",
"version": "5.0.2-dev.1",
"description": "Generic eslint configuration for Mapbox",

@@ -18,3 +18,4 @@ "main": "node.js",

"lint": "eslint .",
"test": "npm run lint"
"test": "npm run lint & npm run test-token-rule",
"test-token-rule": "node ./plugins/eslint-plugin-detect-token/rules/detect-token.test.js"
},

@@ -26,4 +27,9 @@ "peerDependencies": {

"eslint-plugin-n": "^17.9.0",
"eslint-plugin-unused-imports": "^3.1.0"
"eslint-plugin-unused-imports": "^3.1.0",
"eslint-plugin-jsonc": "^2.19.1",
"jsonc-eslint-parser": "^2.4.0"
},
"dependencies": {
"eslint-plugin-detect-token": "file:plugins/eslint-plugin-detect-token"
}
}