1.0.24 • Published 6 years ago

eslint-config-whisp v1.0.24

Weekly downloads
24
License
MIT
Repository
-
Last release
6 years ago

##Usage: In order to start auto linting and formatting, run the command whisp-eslint-install (located in /node_modules/.bin/).

Create React app support

If using Create react app, and you want to integrate our linting rules to the dev-server: 1. Install react-app-rewired, customize-cra. 2. Add the following to your config-overrides.js file:

const { override } = require('customize-cra');
const { addEslintBaseConfig, addEslintOverrides } = require('eslint-config-whisp/override');

// To enable the rules
module.exports = override(addEslintBaseConfig('whisp'));

// To also apply local overrides
module.exports = override(addEslintBaseConfig('whisp'), addEslintOverrides({'no-console': 'warn'}));

Stylelint support

If you require style-lint, which is always unless it's a react-native project, run the following command: whisp-stylelint-install.

Make sure to run it only after setting up regular linting first!

##Available commands: Run one of the following in your terminal. yarn should link the executables to <YOUR_PROJECT>/node_modules/.bin/

  • whisp-lint: runs eslint on entire codebase

  • whisp-stylelint: runs style-lint on entire codebase

  • whisp-prettify: prettifies the entire codebase

  • whisp-eslint-install: installs required dependencies and pre-commit hooks

  • whisp-stylelint-install: add required dependencies and pre-commit hooks for linting css/scss files

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago