@mapbox/eslint-config-mapbox
Advanced tools
Comparing version
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" | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
23218
26.91%23
27.78%524
46.37%3
200%8
60%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added