eslint-config-atomic
Version:
Eslint config used in atom-ide-community
48 lines (47 loc) • 1.93 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pluginImportSettings = exports.pluginImportAstroRulesExtra = exports.pluginImportTypeScriptRulesExtra = exports.pluginImportRulesExtra = void 0;
exports.pluginImportRulesExtra = {
"import/no-absolute-path": "error",
"import/no-useless-path-segments": "error",
"import/no-deprecated": "error",
"import/no-extraneous-dependencies": "error",
"import/no-unassigned-import": "warn",
"import/no-mutable-exports": "warn",
"import/no-anonymous-default-export": "error",
"import/no-amd": "error",
//// might be too restrictive:
// "import/no-commonjs": "warn",
// "import/no-dynamic-require": "warn", // prevent abusing dynamic require
//// don't work properly:
// "import/unambiguous": "error",
// "import/no-unused-modules": ["warn", {"missingExports": true}],
};
exports.pluginImportTypeScriptRulesExtra = {
// Buggy on TypeScript:
"import/no-unresolved": "off",
"import/named": "off",
"import/namespace": "off",
};
exports.pluginImportAstroRulesExtra = {
// Buggy on Astro:
"import/default": "off",
"import/no-absolute-path": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
};
exports.pluginImportSettings = {
"import/core-modules": ["atom", "electron"],
// support TypeScript and Coffee importing
"import/extensions": [".ts", ".tsx", ".cts", ".mts", ".d.ts", ".js", ".cjs", ".mjs", ".jsx", ".coffee", ".astro"],
"import/external-module-folders": ["node_modules", "node_modules/@types"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"],
"astro-eslint-parser": [".astro"],
},
"import/resolver": {
node: {
extensions: [".ts", ".tsx", ".cts", ".mts", ".d.ts", ".js", ".cjs", ".mjs", ".jsx", ".coffee", ".astro"],
},
},
};