@eduzz/eslint-config
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0-beta.7
@@ -21,3 +21,2 @@ const pluginImport = require('eslint-plugin-import'); | ||
}, | ||
ignores: ['node_modules'], | ||
rules: { | ||
@@ -24,0 +23,0 @@ ...pluginPrettier.configs.recommended.rules, |
15
index.js
@@ -1,12 +0,9 @@ | ||
const gitIgnore = require('eslint-config-flat-gitignore'); | ||
const configDefault = require('./configs/default'); | ||
const configTypescript = require('./configs/typescript'); | ||
const ignores = require('./ignores'); | ||
/** @type import('eslint').Linter.FlatConfig[] */ | ||
module.exports = [ | ||
configDefault, | ||
...configTypescript, | ||
gitIgnore(), | ||
{ ignores: ['**/.expo/**', '**/node_modules/**', '**/.git/**'] } | ||
]; | ||
module.exports = { | ||
ignores, | ||
/** @type import('eslint').Linter.FlatConfig[] */ | ||
configs: [configDefault, ...configTypescript] | ||
}; |
{ | ||
"name": "@eduzz/eslint-config", | ||
"private": false, | ||
"version": "2.0.0-beta.6", | ||
"version": "2.0.0-beta.7", | ||
"keywords": [ | ||
@@ -30,3 +30,2 @@ "eduzz", | ||
"eslint": "^8", | ||
"eslint-config-flat-gitignore": "^0.1.5", | ||
"eslint-config-prettier": "^9.1.0", | ||
@@ -40,2 +39,3 @@ "eslint-plugin-eslint-plugin": "^5.5.0", | ||
"eslint-plugin-unused-imports": "^3.1.0", | ||
"parse-gitignore": "^2.0.0", | ||
"prettier": "^3.2.5", | ||
@@ -42,0 +42,0 @@ "prettier-plugin-tailwindcss": "^0.5.13", |
@@ -1,17 +0,22 @@ | ||
const configReact = require('./react'); | ||
const { configs } = require('./react'); | ||
const pluginReactNative = require('eslint-plugin-react-native'); | ||
/** @type import('eslint').Linter.FlatConfig[] */ | ||
module.exports = [ | ||
...configReact, | ||
{ | ||
name: '@eduzz/eslint-config-react-native', | ||
plugins: { | ||
'react-native': pluginReactNative | ||
}, | ||
rules: { | ||
'react-native/no-inline-styles': ['warn'], | ||
'react-native/no-unused-styles': ['error'] | ||
const ignores = require('./ignores'); | ||
module.exports = { | ||
ignores, | ||
/** @type import('eslint').Linter.FlatConfig[] */ | ||
configs: [ | ||
...configs, | ||
{ | ||
name: '@eduzz/eslint-config-react-native', | ||
plugins: { | ||
'react-native': pluginReactNative | ||
}, | ||
rules: { | ||
'react-native/no-inline-styles': ['warn'], | ||
'react-native/no-unused-styles': ['error'] | ||
} | ||
} | ||
} | ||
]; | ||
] | ||
}; |
10
react.js
const configReact = require('./configs/react'); | ||
const configBase = require('./index'); | ||
const ignores = require('./ignores'); | ||
const { configs } = require('./index'); | ||
/** @type import('eslint').Linter.FlatConfig[] */ | ||
module.exports = [...configBase, configReact, { ignores: ['**/node_modules/', '**/.git/'] }]; | ||
module.exports = { | ||
ignores, | ||
/** @type import('eslint').Linter.FlatConfig[] */ | ||
configs: [...configs, configReact] | ||
}; |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
12419
11
250
1
+ Addedparse-gitignore@^2.0.0
+ Added@eslint-community/regexpp@4.11.0(transitive)
+ Addedeslint-plugin-react@7.35.2(transitive)
- Removedeslint-config-flat-gitignore@^0.1.5
- Removed@eslint-community/regexpp@4.11.1(transitive)
- Removedeslint-config-flat-gitignore@0.1.8(transitive)
- Removedeslint-plugin-react@7.36.1(transitive)
- Removedfind-up-simple@1.0.0(transitive)