
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@tcd-devkit/eslint-config-import
Advanced tools
ESLint Flat Configuration for JavaScript import rules. This package provides rules for `eslint-plugin-import-x` for JavaScript projects, ensuring consistent and best-practice module imports.
ESLint Flat Configuration for JavaScript import rules using eslint-plugin-import-x
. This package provides a comprehensive set of ESLint rules that enforce consistent import statements and best practices for module imports in JavaScript codebases within the @tcd-devkit ecosystem. It is designed for ESLint v9+ and its Flat Config system.
eslint-plugin-import-x
for JavaScript projects.# Using npm
npm install -D @tcd-devkit/eslint-config-import eslint@^9.0.0
# Using yarn
yarn add -D @tcd-devkit/eslint-config-import eslint@^9.0.0
# Using pnpm
pnpm add -D @tcd-devkit/eslint-config-import eslint@^9.0.0
Import and use the configuration in your eslint.config.js
(or .mjs
/.cjs
) file:
import importConfig from '@tcd-devkit/eslint-config-import'; // This is an array of config objects
export default [
...importConfig,
{
// Your custom rules and overrides can be added here
files: ['**/*.js', '**/*.jsx'], // Ensure these rules apply only to JS/JSX files
rules: {
// example: 'import-x/no-unresolved': 'off',
},
},
];
This package exports an array of ESLint configuration objects, so you should spread it (...importConfig
) into your top-level configuration array. Ensure you configure it to apply to the correct JavaScript files (e.g. using a files
glob).
This package configures rules from eslint-plugin-import-x
for JavaScript.
For a detailed view of all active rules in your project, you can run ESLint with the --print-config
flag.
MIT © Nace Logar
FAQs
ESLint Flat Configuration for JavaScript import rules. This package provides rules for `eslint-plugin-import-x` for JavaScript projects, ensuring consistent and best-practice module imports.
The npm package @tcd-devkit/eslint-config-import receives a total of 32 weekly downloads. As such, @tcd-devkit/eslint-config-import popularity was classified as not popular.
We found that @tcd-devkit/eslint-config-import demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.