0.1.5 • Published 9 months ago

@labforward/eslint-config-drivers v0.1.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

@labforward/eslint-config-drivers

Provide configuration files for Laboperator driver-related repositories.

Usage yarn add -D @labforward/eslint-config-drivers

For JavaScript Projects

Needed dependencies: yarn add -D eslint

Create a .eslintrc.js file with the following contents to extend this config:

module.exports = {
  extends: '@labforward/eslint-config-drivers',
};

Create a .prettierrc.js file with the following contents to extend this config:

module.exports = require('@labforward/config/prettier');

For TypeScript Projects

Needed dependencies: yarn add -D eslint typescript

Create a tsconfig.json file with the following contents to extend this config:

{
  "extends": "@labforward/eslint-config-drivers",
  "compilerOptions": {
    "outDir": "dist",
    "rootDirs": ["src", "spec"]
  },
  "include": ["src/**/*", "spec/**/*"]
}

You should update the paths according to your project needs.

If you do not want your tests to build, you should also create a tsconfig.build.json file with the following contents:

{
  "extends": "./tsconfig.json",
  "exclude": ["spec/**/*"]
}

Create a .eslintrc.js file with the following contents to extend this config:

module.exports = {
  extends: '@labforward/eslint-config-drivers',
  parserOptions: {
    tsconfigRootDir: __dirname,
  },
};

Create a .prettierrc.js file with the following contents to extend this config:

module.exports = require('@labforward/config/prettier');
0.1.4

9 months ago

0.1.5

9 months ago

0.1.2

11 months ago

0.1.3

11 months ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.5

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

3 years ago

1.2.0

3 years ago