@radek-altof/lint-config
Custom ESlint & Stylelint configuration
Last updated 4 days ago by radek-altof .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @radek-altof/lint-config 
SYNC missed versions from official npm registry.

Linting configuration

Custom ESlint & Stylelint configuration.

ESLint

The rules are defined in eslint.json. Complete list of ESLint rules can be found here: https://eslint.org/docs/rules/

Stylelint

The rules are defined in stylelint.json. Complete list of Stylelint rules can be found here: https://stylelint.io/user-guide/rules/

Installation

$ npm i @radek-altof/lint-config --save-dev

Configuration

Extend your ESLint and Stylelint config files. Ex.:

{
  "extends": ["./node_modules/@radek-altof/lint-config/eslint.json"]
} 

Grunt

Install grunt dependencies.

$ npm i grunt-eslint --save-dev
$ npm i grunt-stylelint --save-dev

Update gruntfile.js in your project.

grunt.initConfig({
  eslint: {
    options: {
      configFile: 'eslint.json',
      fix: grunt.option('fix')
    },
    target: ['js/*.js']
  },
  stylelint: {
    options: {
      configFile: 'stylelint.json',
      syntax: 'scss',
      fix: grunt.option('fix')
    },
    src: [ 'css/*.scss' ]
  }
});

Lint your code.

$ grunt eslint 
$ grunt stylelint

Current Tags

  • 1.0.4                                ...           latest (4 days ago)

5 Versions

  • 1.0.4                                ...           4 days ago
  • 1.0.3                                ...           9 days ago
  • 1.0.2                                ...           9 days ago
  • 1.0.1                                ...           9 days ago
  • 1.0.0                                ...           9 days ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 49
Last Day 0
Last Week 49
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |