{"library":"spire-plugin-lint-staged","title":"spire-plugin-lint-staged","type":"library","description":"A Spire plugin that integrates lint-staged into the Spire workflow, running lint-staged during the precommit hook. Current stable version is 5.0.9, with sporadic updates. It extends Spire's plugin system for Git precommit linting. Differs from standalone lint-staged usage by automating configuration via Spire's lifecycle hooks. Requires Spire v4 or v5 and Node >=12.20.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install spire-plugin-lint-staged"],"cli":null},"imports":["const plugin = require('spire-plugin-lint-staged')","module.exports = { plugins: [['spire-plugin-lint-staged', { lintStagedConfig: './my-config.js' }]] }","module.exports = { plugins: [['spire-plugin-lint-staged', { allowCustomConfig: false }]] }"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/researchgate/spire","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/spire-plugin-lint-staged","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"// .spirerc.js\nmodule.exports = {\n  plugins: [\n    ['spire-plugin-lint-staged', {\n      lintStagedConfig: 'lint-staged.config.js',\n      allowCustomConfig: false\n    }]\n  ]\n};\n\n// lint-staged.config.js\nmodule.exports = {\n  '*.js': ['eslint --fix', 'prettier --write']\n};","lang":"javascript","description":"Shows basic Spire configuration using the plugin with a custom lint-staged config file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}