{"id":19588,"library":"eslint-config-simplesense","title":"simplesense ESLint Config","description":"ESLint shareable config for Simplesense coding styles. Current version 6.0.38, compatible with ESLint 9.x. Released regularly with many versions. Provides a flat config setup with recommended rules and plugin configurations. Key differentiator: integrated documentation generation for rules, supporting multiple documentation sources (module, GitHub, static). Includes file type linting support. Requires ESLint 9.x as a peer dependency.","status":"active","version":"6.0.38","language":"javascript","source_language":"en","source_url":"https://github.com/simplesenseio/eslint-config-simplesense","tags":["javascript","eslint","config","eslintconfig","eslint-config"],"install":[{"cmd":"npm install eslint-config-simplesense","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-simplesense","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-simplesense","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for ESLint configuration","package":"eslint","optional":false}],"imports":[{"note":"ESLint flat config uses ESM exports. CommonJS require will fail.","wrong":"const config = require('eslint-config-simplesense')","symbol":"default export","correct":"import config from 'eslint-config-simplesense'"},{"note":"configs is a named export containing the array of config objects.","wrong":"import configs from 'eslint-config-simplesense'","symbol":"configs array","correct":"import { configs } from 'eslint-config-simplesense'"},{"note":"Named export for plugins if needed separately.","wrong":"import plugins from 'eslint-config-simplesense'","symbol":"plugin export","correct":"import { plugins } from 'eslint-config-simplesense'"}],"quickstart":{"code":"import config from 'eslint-config-simplesense';\n\nexport default [\n  ...config,\n  {\n    rules: {\n      'no-console': 'warn',\n    },\n  },\n];\n","lang":"typescript","description":"Shows how to use the flat config array in an eslint.config.js file."},"warnings":[{"fix":"Migrate to eslint.config.js using the flat config array import.","message":"v6.0.0 switched from .eslintrc to flat config format","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Update ESLint to 9.x.","message":"ESLint 8.x is not supported in v6.x","severity":"deprecated","affected_versions":">=6.0.0"},{"fix":"Use import syntax in an ESM module or rename file to .mjs.","message":"CommonJS require() will throw because config uses ESM syntax","severity":"gotcha","affected_versions":">=6.0.0"},{"fix":"Use ...config to flatten the configs into your array.","message":"Default export is an array, not an object; spreading into your config array is required","severity":"gotcha","affected_versions":">=6.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Change to import syntax or use dynamic import() inside a CommonJS file.","cause":"Using CommonJS require to load the config which is ESM-only","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module"},{"fix":"Use export default [...config]; instead of export default config;","cause":"Forgetting to spread the default export array in eslint.config.js","error":"TypeError: config is not iterable"},{"fix":"Run npm install eslint-config-simplesense --save-dev and ensure ESLint 9.x is installed.","cause":"Missing install of the package or mismatched version","error":"ESLint couldn't find the config 'eslint-config-simplesense'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}