3.19.28 • Published 1 year ago

@srclaunch/dx v3.19.28

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@srclaunch/dx

Issues Build npms.io (final)

Includes the following configuration and linters:

LinterDescription
eslintESLint is a JavaScript code quality tool that checks your code for errors, helps you write better code, and rewards you for writing it.
prettierPrettier is a tool to format your code according to a preset style.
stylelintStylelint is a mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
commitlintCommitlint is a tool to enforce a consistent commit message format.
ConfigurationDescription
typescriptTypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
jestJest is a delightful JavaScript Testing Framework with a focus on simplicity.
avaAVA is a test runner for Node.js with a concise API, detailed error output, embrace of new language features and process isolation that lets you develop with confidence.
standard-versionStandard Version is utility for versioning using semver and CHANGELOG generation powered by Conventional Commits.

Instructions

Installation

Install each of the following dependencies you choose to use.

Linter/ConfigurationCommand
eslintnpm i -D eslint eslint-config-prettier eslint-config-stylelint eslint-import-resolver-typescript eslint-plugin-functional eslint-plugin-import eslint-plugin-node eslint-plugin-only-warn eslint-plugin-prettier eslint-plugin-simple-import-sort eslint-plugin-sort-keys-fix eslint-plugin-sort-requires eslint-plugin-testing-library eslint-plugin-unicorn @typescript-eslint/parser @typescript-eslint/eslint-plugin or yarn add eslint eslint-config-prettier eslint-config-stylelint eslint-import-resolver-typescript eslint-plugin-functional eslint-plugin-import eslint-plugin-node eslint-plugin-only-warn eslint-plugin-prettier eslint-plugin-simple-import-sort eslint-plugin-sort-keys-fix eslint-plugin-sort-requires eslint-plugin-testing-library eslint-plugin-unicorn @typescript-eslint/parser @typescript-eslint/eslint-plugin -D
prettiernpm i -D prettier or yarn add prettier -D
stylelintnpm i -D stylelint or yarn add stylelint stylelint-config-idiomatic-order stylelint-config-prettier stylelint-config-recommended stylelint-order -D
commitlintnpm i -D @commitlint/config-conventional @commitlint/cli or yarn add @commitlint/config-conventional @commitlint/cli -D
typescriptnpm i -D typescript or yarn add typescript -D
jestnpm i -D jest or yarn add jest -D
avanpm i -D ava or yarn add ava -D
standard-versionnpm i -D standard-version or yarn add standard-version -D

prettier stylelint commitlint typescript jest ava standard-version

With npm:

`npm install --save-dev @srclaunch/dx`

Or with yarn:

yarn add @srclaunch/dx -D

The eslint, prettier, and standard-version tools loads the configuration files using CommonJS/require, so we need to use the .cjs file extension and require syntax to load the configuration if your package is using ESM. Use the filenames below and place in the root directory of your project.

Examples

ESLint

.eslintrc.cjs

const base = require("@srclaunch/dx/.eslintrc");

module.exports = {
  ...base,
  // Any custom config here...
};

Use @srclaunch/dx/.eslintrc.browser for configuration optimized for frontend development.

const base = require("@srclaunch/dx/.eslintrc.browser");

module.exports = {
  ...base,
  // Any custom config here...
};

Prettier

.prettierrc.cjs

const base = require("@srclaunch/dx/.prettierrc");

module.exports = {
  ...base,
  // Any custom config here...
};

Stylelint

.stylelintrc.js

import base from "@srclaunch/dx/.stylelintrc";

export default {
  ...base,
  // Any custom config here...
};

Use @srclaunch/dx/.stylelintrc.ui for configuration optimized for frontend development.

import base from "@srclaunch/dx/.stylelintrc.ui";

export default {
  ...base,
  // Any custom config here...
};

Commitlint - Conventional commits

.commitlintrc.js

import base from "@srclaunch/dx/.commitlintrc";

export default {
  commitlint: {
    ...base,
    // Any custom config here...
  },
};

Typescript

tsconfig.json

{
  "extends": "@srclaunch/dx/tsconfig.json",
  "include": ["src"]
}

For a Typescript configuration optimized for frontend development extend @srclaunch/dx/tsconfig.ui.json.

{
  "extends": "@srclaunch/dx/tsconfig.ui.json",
  "include": ["src"]
}

Jest

jest.config.js

import base from "@srclaunch/dx/jest.config";

export default {
  ...base,
  // Any custom config here...
};

AVA

ava.config.js

import base from "@srclaunch/dx/ava.config";

export default {
  ...base,
  // Any custom config here...
};

Standard Version

.versionrc.cjs

const base = require("@srclaunch/dx/.versionrc");

module.exports = {
  ...base,
  // Any custom config here...
};
3.19.27

1 year ago

3.19.28

1 year ago

3.19.25

1 year ago

3.19.26

1 year ago

3.19.24

1 year ago

3.19.23

1 year ago

0.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.86

2 years ago

0.1.87

2 years ago

0.1.80

2 years ago

0.1.81

2 years ago

0.1.82

2 years ago

0.1.83

2 years ago

0.1.84

2 years ago

0.1.76

2 years ago

0.1.79

2 years ago

0.1.70

2 years ago

0.1.71

2 years ago

0.1.52

2 years ago

0.1.50

2 years ago

0.1.51

2 years ago

0.1.49

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.43

2 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.48

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.35

2 years ago

0.1.36

2 years ago

0.1.37

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.19

2 years ago

0.1.16

2 years ago

0.1.18

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.0.1

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago