1.0.12 • Published 4 years ago

eslint-config-textkernel v1.0.12

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

eslint-config-textkernel

ESLint shareable config for Textkernel style guide

eslint-config-textkernel is a shareable configuration package for eslint built on top of eslint-airbnb-config and modified to meet Textkernel's own standards.

Installation

  1. Install all peer dependencies
npx install-peerdeps --dev eslint-config-textkernel
  1. Install eslint-config-textkernel as a development dependency of your project:
npm install eslint-config-textkernel --save-dev

Available ESLint configs

eslint-config-textkernel

The default export contains common rules that are not specific to any framework or environment.

// eslintrc.js
module.exports = {
	extends: [eslint-config-textkernel'],
};

eslint-config-textkernel/react

Extends eslint-config-textkernel adding specific rules to React.

// eslintrc.js
module.exports = {
	extends: ['eslint-config-textkernel/react'],
};

VSCode integration

We recommend turning on VSCode settings to automatically run eslint --fix on save.

"editor.codeActionsOnSave": {
   "source.fixAll.eslint": true,
}

This will automatically format your code once you save. You don't need VSCode prettier extension enabled or running on save as eslint will automatically run prettier for you.

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago