spire-plugin-eslint
v5.0.8
Published
ESLint plugin for Spire
Downloads
262
Keywords
Readme
spire-plugin-eslint
Hooks
setupAddslintand prepares eslint arguments.precommitAdds eslint linter.runRuns eslint.
Options
Plugin
['spire-plugin-eslint', options]command<string> Command name to run eslint on. Defaults tolint.eslintConfig<string> Default [eslint] configuration. Defaults to./config.js.autosetEslintConfig<boolean> Decides if the plugin should automatically create an.eslintrc.jsfile. It will only create the file if there isn't already a config present. Defaults totrue.allowCustomConfig<boolean> Whether to allow user-provided config. If this option isfalseand there's custom eslint config found it will throw an error. Defaults totrue.eslintIgnore<string> Path to default.eslintignore. Defaults to.gitignore.allowCustomIgnore<boolean> Whether to allow user-provided.eslintignore. If this option isfalseand there's custom ignore file found it will throw an error. Defaults totrue.fileExtensions<string[]> Extension of files eslint should scan. Defaults to['.js', '.jsx', '.mjs', '.ts', '.tsx'].
CLI
npx spire lint [args]- Passes all arguments as-is to eslint.
