@terminal-nerds/lint-staged-config

0.10.0 • Public • Published

@terminal-nerds/lint-staged-config

package version badge

➡️ Extendable lint-staged icon lint-staged configuration, part of the terminal-nerds/configs project.


Prerequisites

node.js version support badge supported lint-staged version badge

ℹ️ This configuration package require these tools to use locally on your device(s):

  1. node.js icon Latest Node.js LTS (Long-Term Support) version
  2. One of Node.js package managers:
  3. Latest lint-staged icon lint-staged version

Basic usage

👣 Follow the steps below:

  1. Install it with the node.js icon Node.js package manager of your choice (in our case, we use pnpm icon pnpm).

     pnpm install --save-dev lint-staged @terminal-nerds/lint-staged-config
  2. Create a lint-staged configuration file - .lintstagedrc.js.

  3. Import the config from this package and use it.

    import { CONFIG } from "@terminal-nerds/lint-staged-config";
    
    // https://github.com/okonet/lint-staged
    const config = {
    	...CONFIG,
    	// Apply more options from there, if neccessary
    };
    
    export default config;

📖 For the lint-staged CLI usage, please refer to its documentation.


Preconfigured groups

Dependencies badge

Matching group name Loading condition
CODE_FORMAT (all) prettier in dependencies
ESLINT (JavaScript, TypeScript, JSON, YAML) eslint in dependencies
MARKDOWN markdownlint-cli in dependencies
PACKAGE_JSON (all package.json files) depcheck or syncpack in dependencies
STYLESHEETS stylelint in dependencies
TYPESCRIPT typescript in dependencies (it will attempt find the correct tsconfig.json file for the type checking)

Security

workflow security badge

🔐 For more information, please refer to the Security section at the root of the terminal-nerds/configs monorepo.


Contributing

contributors badge

🤝 Contributions of any kind are welcome!

Please refer to the monorepo (terminal-nerds/configs) project's CONTRIBUTING file for more information if you wish to get involved.


License

license badge

⚖️ For more information, please refer to the License section at the root of the terminal-nerds/configs monorepo.

Readme

Keywords

Package Sidebar

Install

npm i @terminal-nerds/lint-staged-config

Weekly Downloads

1

Version

0.10.0

License

MIT

Unpacked Size

23 kB

Total Files

46

Last publish

Collaborators

  • xeho91