1.0.9 • Published 2 years ago

eslint-plugin-ticknovate v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eslint-plugin-ticknovate

Shared eslint configurations, useful plugins & custom rules.

Inside of lib/config you'll find a set of configs for different environments + base.js.

Base.js effectively documents our code style. Please make sure any rules you add come with an explanation!

Testing

Run yarn link inside of me, and then run yarn link eslint-plugin-ticknovate inside of the project you want to lint.

Usage

  • Inside of package.json, add this rule: "lint": "eslint . --ext .js --cache"
  • Then, in your project root, create an .eslintrc.js file, and add the following code:
module.exports = {
    plugins: ['ticknovate'],
    extends: [
        'plugin:ticknovate/[config]',
    ]
};
  • Change [config] to be E.g. node, browser, test etc depending on what environment you are linting
  • If you have a test folder, browser JS, etc, you can add multiple .eslintrc.js files, nesting them inside the folder they belong to.

Copyright & License

Copyright (c) 2022 Ticknovate - Released under the MIT license.