fabscale-eslint-config
v1.6.0
Published
A package to manage eslint configs for Fabscale applications.
Downloads
109
Readme
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
},
}),
};