0.10.0 • Published 3 months ago

@terminal-nerds/lint-staged-config v0.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@terminal-nerds/lint-staged-config

package version badge

➡️ Extendable lint-staged icon 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:
    • pnpm icon
    • yarn icon
    • npm icon
  3. Latest lint-staged icon version

Basic usage

👣 Follow the steps below:

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

     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 nameLoading condition
CODE_FORMAT (all)prettier in dependencies
ESLINT (JavaScript, TypeScript, JSON, YAML)eslint in dependencies
MARKDOWNmarkdownlint-cli in dependencies
PACKAGE_JSON (all package.json files)depcheck or syncpack in dependencies
STYLESHEETSstylelint in dependencies
TYPESCRIPTtypescript 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.

0.10.0

3 months ago

0.9.0

4 months ago

0.8.0

6 months ago

0.7.0

6 months ago

0.6.0

8 months ago

0.5.0

1 year ago

0.4.1

1 year ago

0.3.0

1 year ago

0.4.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago