Skip to content

CodelyTV/eslint-config-codely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค 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 .eslintrc.js file:
    {
      extends: [ "eslint-config-codely" ]
    }
  3. If you are using TypeScript, extend the TypeScript configuration instead, and point to your tsconfig.json in parserOptions:
    {
      extends: [ "eslint-config-codely/typescript" ],
      overrides: [
        {
          files: ["*.ts", "*.tsx"],
          parserOptions: {
            project: ["./tsconfig.json"],
          },
        },
      ]
    }

โ„น๏ธ Please note that some of the rules enabled by default require that you have strict: true 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