新增: - backend/venv/ - Python 虚拟环境 - backend/start.sh - 启动脚本(使用虚拟环境) - backend/requirements.txt - 依赖列表 - .gitignore - 忽略虚拟环境和缓存文件 说明: - 每个项目使用独立虚拟环境 - 避免依赖冲突 - 启动脚本自动创建和激活虚拟环境
993 B
993 B
import/no-namespace
🔧 This rule is automatically fixable by the --fix CLI option.
Enforce a convention of not using namespace (a.k.a. "wildcard" *) imports.
The rule is auto-fixable when the namespace object is only used for direct member access, e.g. namespace.a.
Options
This rule supports the following options:
ignore: array of glob strings for modules that should be ignored by the rule.
Rule Details
Valid:
import defaultExport from './foo'
import { a, b } from './bar'
import defaultExport, { a, b } from './foobar'
/* eslint import/no-namespace: ["error", {ignore: ['*.ext']}] */
import * as bar from './ignored-module.ext';
Invalid:
import * as foo from 'foo';
import defaultExport, * as foo from 'foo';
When Not To Use It
If you want to use namespaces, you don't want to use this rule.