@eduzz/eslint-config
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -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'] | ||
} | ||
} | ||
] | ||
}; |
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
11976
257
16
+ Added@eslint/compat@^1.0.3
+ Added@eslint/compat@1.1.1(transitive)
+ Added@eslint/js@8.57.0(transitive)
+ Added@humanwhocodes/config-array@0.11.14(transitive)
+ Addedeslint@8.57.0(transitive)
+ Addedeslint-plugin-react-native@4.1.0(transitive)
+ Addedeslint-plugin-react-native-globals@0.1.2(transitive)
- Removed@eslint/js@8.57.1(transitive)
- Removed@humanwhocodes/config-array@0.13.0(transitive)
- Removedeslint@8.57.1(transitive)