New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-kswedberg

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-kswedberg - npm Package Compare versions

Comparing version 5.2.0 to 5.3.0

globals.js

47

nuxt3.js

@@ -6,44 +6,11 @@ // Requires vue eslint plugin:

const config = require('./vue3.js');
const {nuxt3Globals} = require('./globals.js');
module.exports = Object.assign(config, {
globals: {
useAppConfig: 'readonly',
useAsyncData: 'readonly',
useCookie: 'readonly',
useError: 'readonly',
useFetch: 'readonly',
useHead: 'readonly',
useHydration: 'readonly',
useLazyAsyncData: 'readonly',
useLazyFetch: 'readonly',
useNuxtApp: 'readonly',
useNuxtData: 'readonly',
useRequestEvent: 'readonly',
useRequestHeaders: 'readonly',
useRoute: 'readonly',
useRouter: 'readonly',
useRuntimeConfig: 'readonly',
useState: 'readonly',
$fetch: 'readonly',
abortNavigation: 'readonly',
addRouteMiddleware: 'readonly',
clearError: 'readonly',
clearNuxtData: 'readonly',
createError: 'readonly',
defineNuxtComponent: 'readonly',
defineNuxtRouteMiddleware: 'readonly',
definePageMeta: 'readonly',
navigateTo: 'readonly',
onBeforeRouteLeave: 'readonly',
onBeforeRouteUpdate: 'readonly',
onNuxtReady: 'readonly',
prefetchComponents: 'readonly',
preloadComponents: 'readonly',
preloadRouteComponents: 'readonly',
refreshNuxtData: 'readonly',
setPageLayout: 'readonly',
setResponseStatus: 'readonly',
showError: 'readonly',
updateAppConfig: 'readonly',
},
overrides: [
{
files: '**/*.vue',
globals: nuxt3Globals,
},
],
});
{
"name": "eslint-config-kswedberg",
"version": "5.2.0",
"version": "5.3.0",
"description": "A shareable eslint config",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,2 +9,6 @@ # eslint config

or:
`yarn add eslint-config-kswedberg --dev`
Then, add the config to the project's `.eslintrc.js` file.

@@ -16,3 +20,3 @@

module.exports = {
'extends': 'kswedberg'
extends: 'kswedberg'
};

@@ -25,7 +29,16 @@ ```

module.exports = {
'extends': 'kswedberg/react'
extends: 'kswedberg/react'
};
```
Note that you'll need to have `eslint-plugin-react` installed.
For Vue features, you have a few options for the `extends` value:
* Vue 2.x: `kswedberg/vue`
* Vue 3.x: `kswedberg/vue3`
* Nuxst 3.x: `kswedberg/nuxt3`
For all Vue or Nuxt versions, you'll need the `eslint-plugin-vue` plugin.
If you _don't_ want es6 or react features:

@@ -32,0 +45,0 @@

@@ -7,2 +7,3 @@ // Requires vue eslint plugin:

const {vue} = require('./rulesets.js');
const {vue3Globals} = require('./globals.js');

@@ -27,2 +28,8 @@ // Remove deprecated rule and replace with new one

],
overrides: [
{
files: '**/*.vue',
globals: vue3Globals,
},
],
env: {

@@ -29,0 +36,0 @@ node: true,

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