Skip to content

fabscale/fabscale-eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fabscale-eslint-config

Installation

yarn add fabscale-eslint-config --dev --tilde

Usage

In your eslintrc.js file:

module.exports = {
  root: true,
  ...require("fabscale-eslint-config/lib/ember"),

  overrides: [
    // .ts files
    {
      parser: "@typescript-eslint/parser",
      files: ["**/*.ts"],
      ...require("fabscale-eslint-config/lib/ember-ts"),
    },

    // node files
    {
      files: [
        "./*.js",
        "./blueprints/*/index.js",
        "./config/**/*.js",
        "./tests/dummy/config/**/*.js",
      ],
      ...require("fabscale-eslint-config/lib/node"),
    },
    {
      // test files:
      files: ["tests/**/*-test.{js,ts}"],
      ...require("fabscale-eslint-config/lib/ember-tests"),
    },
  ],
};

The following config options are available:

  • fabscale-eslint-config/lib/ember
  • fabscale-eslint-config/lib/ember-ts
  • fabscale-eslint-config/lib/ember-tests
  • fabscale-eslint-config/lib/ember-tests-ts
  • fabscale-eslint-config/lib/node

You can also extend them as needed, e.g. like this:

module.exports = {
  root: true,
  ...Object.assign(require("fabscale-eslint-config/lib/ember"), {
    rules: {
      // your custom rules here
    },
  }),
};

About

Shared eslint config for Fabscale projects.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •