0.3.8 • Published 10 months ago

@wavesenterprise/eslint-config v0.3.8

Weekly downloads
425
License
MIT
Repository
gitlab
Last release
10 months ago

Waves Enterprise Esling configuration

Install

npm i -D eslint @wavesenterprise/eslint-config

Use

// .eslintrc.js

// react + typescript + javascript
module.exports = {
  parserOptions: {
    project: './tsconfig.json',
    babelOptions: {
      configFile: './babel.config.js'
    }
  },
  extends: [
    '@wavesenterprise/eslint-config/typescript-mixed',
    '@wavesenterprise/eslint-config/react',
  ]
};

// pure typescript
module.exports = {
  parserOptions: {
    project: './tsconfig.json',
  },
  extends: [
    '@wavesenterprise/eslint-config/typescript-pure',
  ]
};

// pure javascript
module.exports = {
  parserOptions: {
    babelOptions: {
      configFile: './babel.config.js'
    }
  },
  extends: [
    '@wavesenterprise/eslint-config/base',
  ]
};

Extend @wavesenterprise/eslint-config/typescript-mixed if your project uses typescript AND javascript

Extend @wavesenterprise/eslint-config/typescript-pure if your project uses ONLY typescript

Extend @wavesenterprise/eslint-config/base if your project uses ONLY javascript

Extend @wavesenterprise/eslint-config/react if your project uses React

If typescript-mixed or base configs are extended you MUST install @babel/core package to support @babel/eslint-parser plugin. Also, path to babel config file should be set at parserOptions.babelOptions.configFile

If typescript-mixed or typescript-pure configs are extended parserOptions.project MUST be set to match tsconfig.json file. All linted files MUST be included or listed in tsconfig.json.

0.3.8

10 months ago

0.3.7

10 months ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.4-RC3

3 years ago

0.1.4-RC1

3 years ago

0.1.4-RC2

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago