4.0.8 • Published 6 years ago

eslint-config-frontful v4.0.8

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

eslint-config-frontful is packaged provider of ESLint config. It is default linter setup for Frontful infrastructure.

Installation

# Using yarn
yarn add eslint-config-frontful
# or npm
npm install -s eslint-config-frontful

Integration

Instructions for editor and IDE

Add .eslintrc file to root of the project and extend ESLint config with eslint-config-frontful (eslint-config prefix should be omitted). Additional flags can be added to .eslintrc, this will only affect editor and IDE instrumentation

// .eslintrc
{
  "extends": "frontful"
}

Configuration

eslint-config-frontful can be configured with one of two configuration properties

Configuration can be done in several ways as provided by frontful-config, bellow are two examples

  • Add frontful.eslint.options object to package.json. Keep in mind that these options are not ESLint options but ones accepted by eslint-config-frontful/provider
    // package.json
    {
      "frontful": {
        "eslint": {
          "options": {
            ...
          }
        }
      }
    }
  • Create ES5 config.eslint.js file, and reference this file in frontful.eslint in package.json
    // config.eslint.js
    const provider = require('eslint-config-frontful/provider')
    module.exports = {
      config: provider({
        ...
      })
    }
    // package.json
    {
      "frontful": {
        "eslint": "./config.eslint.js"
      }
    }
4.0.8

6 years ago

4.0.7

6 years ago

4.0.6

6 years ago

4.0.5

6 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.0.15

6 years ago

3.0.14

6 years ago

3.0.13

6 years ago

3.0.12

7 years ago

3.0.11

7 years ago

3.0.10

7 years ago

3.0.9

7 years ago

3.0.8

7 years ago

3.0.7

7 years ago

3.0.6

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago