0.3.8 • Published 2 years ago

@wavesenterprise/eslint-config v0.3.8

Weekly downloads
425
License
MIT
Repository
gitlab
Last release
2 years 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

2 years ago

0.3.7

2 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.4-RC3

4 years ago

0.1.4-RC1

4 years ago

0.1.4-RC2

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago