Socket
Socket
Sign inDemoInstall

@eduzz/eslint-config

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eduzz/eslint-config - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

3

configs/react.js

@@ -0,1 +1,2 @@

const { fixupPluginRules } = require('@eslint/compat');
const pluginReact = require('eslint-plugin-react');

@@ -12,3 +13,3 @@ const pluginReactHooks = require('eslint-plugin-react-hooks');

'react': pluginReact,
'react-hooks': pluginReactHooks
'react-hooks': fixupPluginRules(pluginReactHooks)
},

@@ -15,0 +16,0 @@ rules: {

@@ -47,3 +47,2 @@ const pluginImport = require('eslint-plugin-import');

'@typescript-eslint/no-namespace': ['error'],
'@typescript-eslint/no-require-imports': ['error'],
'@typescript-eslint/no-object-literal-type-assertion': 'off',

@@ -50,0 +49,0 @@ '@typescript-eslint/no-useless-constructor': 'error',

@@ -33,3 +33,3 @@ const childProcess = require('child_process');

return [...ignores, ...extra];
return Array.from(new Set([...ignores.sort((a, b) => (a > b ? -1 : a == b ? 0 : 1)), ...extra]));
};
{
"name": "@eduzz/eslint-config",
"private": false,
"version": "2.0.1",
"version": "2.1.0",
"keywords": [

@@ -28,2 +28,3 @@ "eduzz",

"@eduzz/eslint-config": "^2.0.0-beta.0",
"@eslint/compat": "^1.0.3",
"@types/eslint": "^8.56.10",

@@ -37,2 +38,3 @@ "eslint": "^9",

"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-native": "^4.1.0",
"eslint-plugin-unused-imports": "^4.0.0",

@@ -39,0 +41,0 @@ "parse-gitignore": "^2.0.0",

const { configs } = require('./react');
const { fixupPluginRules } = require('@eslint/compat');
const pluginReactNative = require('eslint-plugin-react-native');

@@ -7,3 +9,16 @@ const ignores = require('./ignores');

ignores,
configs
/** @type import('eslint').Linter.FlatConfig[] */
configs: [
...configs,
{
name: '@eduzz/eslint-config-react-native',
plugins: {
'react-native': fixupPluginRules(pluginReactNative)
},
rules: {
'react-native/no-inline-styles': ['warn'],
'react-native/no-unused-styles': ['error']
}
}
]
};
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