Skip to content

Opinionated linting configuration considering modern TypeScript best practices and providing consistency to your import statements. Valid for your JavaScript or TypeScript projects 🀟

License

Notifications You must be signed in to change notification settings

CodelyTV/eslint-config-codely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

28f651c Β· Jan 20, 2025

History

54 Commits
Jan 15, 2025
Jan 15, 2025
Aug 1, 2022
Jan 20, 2025
Jan 20, 2025
Aug 30, 2024
Jul 26, 2022
Jan 15, 2025
Sep 2, 2024
Sep 2, 2024
Jan 20, 2025
Jan 20, 2025
Jan 15, 2025

Repository files navigation

Codely logo

🀏 Codely's ESLint + Prettier configuration

Codely Open Source CodelyTV Courses

Opinionated linting configuration considering modern TypeScript best practices and providing consistency to your import statements. Valid for your JavaScript or TypeScript projects 🀟

Take a look, play and have fun with this. Stars are welcome 😊

πŸ‘€ How to use

  1. Install the dependency.

    npm install --save-dev eslint-config-codely
  2. Add it to your eslint.config.js:

    import eslintConfigCodely from "eslint-config-codely";
    
    export default [
        // If you're using js
        ...eslintConfigCodely.js,
        // Or if you're using ts. The ts config includes the js one, so you don't need to include it manually.
        ...eslintConfigCodely.ts,
        {
            // Your config here
        }
    ]

    Also, you can use the full config, which includes the js, ts and very opinionated Codely configs.

    import eslintConfigCodely from "eslint-config-codely";
    
    export default [
        ...eslintConfigCodely.full,
        {
            // Your config here
        }
    ]

    We have a course setting. This is the same as the full config, but with a narrower width due to the zoom used during video recordings:

    import eslintConfigCodely from "eslint-config-codely";
    
    export default [
        ...eslintConfigCodely.course,
        {
            // Your config here
        }
    ]

Note

Some rules enabled by default require strict: true to be set in your tsconfig.json.

πŸ€” What it does

πŸ‘Œ Codely Code Quality Standards

Publishing this package we are committing ourselves to the following code quality standards:

  • 🀝 Respect Semantic Versioning: No breaking changes in patch or minor versions.
  • 🀏 No surprises in transitive dependencies: Use the bare minimum dependencies needed to meet the purpose.
  • 🎯 One specific purpose to meet without having to carry a bunch of unnecessary other utilities.
  • βœ… Tests as documentation and usage examples.
  • πŸ“– Well documented ReadMe showing how to install and use.
  • βš–οΈ License favoring Open Source and collaboration.

πŸ”€ Related resources

Opinionated skeletons ready for different purposes:

About

Opinionated linting configuration considering modern TypeScript best practices and providing consistency to your import statements. Valid for your JavaScript or TypeScript projects 🀟

Topics

Resources

License

Stars

Watchers

Forks