Package detail

eslint-config-cssnano

ben-eb326MIT3.1.3

Shared eslint config for cssnano.

eslint, eslint-config, cssnano

readme

eslint-config-cssnano Build Status

Shared eslint config for cssnano.

Install

With npm do:

npm install eslint-config-cssnano --save-dev

Note that for Node versions below 5, you must install the following plugins along with eslint-config-cssnano;

npm install eslint-plugin-babel eslint-plugin-import --save-dev

Example

In package.json:

{
    "eslintConfig": {
        "extends": "cssnano"
    }
}

Flow

To use the Flow configuration, you must install the following plugins on top of the default dependencies;

npm install eslint-plugin-flow-vars eslint-plugin-flowtype --save-dev

Then in package.json;

{
    "eslintConfig": {
        "extends": "cssnano/flow"
    }
}

License

MIT © Ben Briggs

changelog

3.1.3

  • Resolves an issue where computed import references were being flagged.

3.1.2

  • Resolves an issue where ESLint would produce false positives for undefined variables when using the Flow config.

3.1.1

  • Fixed build.
  • Fixed an issue where the default configuration was not being referenced correctly in the Flow configuration.

3.1.0

  • Added a basic Flow configuration.

3.0.2

  • Fixes an issue where JSON was being parsed for export statements.

3.0.1

  • Codifies lack of 0.12 support.

3.0.0

  • Added new rules to validate module imports/exports.
  • Tweaks for code style.
  • Breaking: ESLint 3 no longer supports Node versions less than 4.

2.1.0

  • Now uses babel-eslint to parse.
  • Replaced object-curly-spacing with the fix from eslint-plugin-babel; now export foo from './foo' is recognised correctly.

2.0.0

  • Updated to eslint 2.0.0 (thanks to @ntwb).
  • Removed consistent-return rule as it now always expects functions to return a value (which isn't always necessary).

1.0.0

  • Initial release.