@freaktechnik/eslint-config-extension
Advanced tools
Comparing version 10.0.7 to 10.0.8
18
index.js
import globals from "globals"; | ||
import eslintConfigBrowser from "@freaktechnik/eslint-config-browser"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
import path from "path"; | ||
import { fileURLToPath } from "url"; | ||
import { fixupConfigRules } from "@eslint/compat"; | ||
import nounsanitized from "eslint-plugin-no-unsanitized"; | ||
import { fixupPluginRules } from "@eslint/compat"; | ||
const dirname = path.dirname(fileURLToPath(import.meta.url)), | ||
compat = new FlatCompat({ | ||
baseDirectory: dirname, | ||
resolvePluginsRelativeTo: dirname, | ||
}); | ||
export default [ | ||
...eslintConfigBrowser, | ||
...fixupConfigRules(compat.extends("plugin:no-unsanitized/DOM")), | ||
{ | ||
files: [ "**/*.js" ], | ||
plugins: { | ||
"no-unsanitized": fixupPluginRules(nounsanitized), | ||
}, | ||
languageOptions: { | ||
@@ -28,4 +22,6 @@ globals: { | ||
"tree-shaking/no-side-effects-in-initialization": 0, | ||
"no-unsanitized/method": "error", | ||
"no-unsanitized/property": "error", | ||
}, | ||
}, | ||
]; |
{ | ||
"name": "@freaktechnik/eslint-config-extension", | ||
"version": "10.0.7", | ||
"version": "10.0.8", | ||
"description": "Browser extension linting config freaktechnik likes.", | ||
@@ -26,3 +26,2 @@ "main": "index.js", | ||
"@eslint/compat": "^1.0.1", | ||
"@eslint/eslintrc": "^3.0.2", | ||
"@freaktechnik/eslint-config-browser": "^10.0.6", | ||
@@ -29,0 +28,0 @@ "eslint-plugin-no-unsanitized": "^4.0.2", |
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
5
7622
25
- Removed@eslint/eslintrc@^3.0.2