@defisaver/eslint-config

1.0.1 • Public • Published

DeFi Saver eslint-config

Global eslint configs for DeFi Saver projects. Includes base & react config, as well as typescript variants.

Example .eslintrc

module.exports = {
  extends: ["@defisaver/eslint-config/react-config"], // import js config
  parser: '@babel/eslint-parser',
  env: {
    es6: true,
    browser: true,
  },
  overrides: [{
    files: ['*.ts', '*.tsx'],
    extends: ["@defisaver/eslint-config/react-config-typescript"], // import ts config
    parser: '@typescript-eslint/parser',
    parserOptions: { project: ['./tsconfig.json'] },
  }],
  parserOptions: {
    ecmaFeatures: {
      jsx: true,
    },
    ecmaVersion: 2018,
    sourceType: 'module',
    babelOptions: {
      presets: [
        ...
      ],
    },
  },
  globals: {
   ...
  },
  settings: {
    ...
  }
};

Readme

Keywords

Package Sidebar

Install

npm i @defisaver/eslint-config

Weekly Downloads

186

Version

1.0.1

License

ISC

Unpacked Size

6.8 kB

Total Files

11

Last publish

Collaborators

  • maleksandar
  • matija_decenter
  • sterlu
  • mirkela