0.0.16 • Published 11 months ago

eslint-config-kubit v0.0.16

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

eslint-config-kubit

This package provides Kubit's ESLint configuration as an extensible shared config.

Installation

npm install --save-dev eslint eslint-config-kubit@0.0.3-flat

or

yarn add --dev eslint eslint-config-kubit@0.0.3-flat

Dependencies

This package requires the following peer dependencies:

  • eslint 9.x
npm install --save-dev eslint

or

yarn add --dev eslint

Usage

Create an eslint.config.js file in the root of your project and extend the configuration:

const eslintFlatConfig = require('eslint-config-kubit');
const path = require('path');

module.exports = eslintFlatConfig({
  checkBrowserCompatibility: true,
  browserList: [
    '> 0.5%',
    'last 2 versions',
    'Firefox ESR',
    'not dead',
    'iOS >= 10',
    'Safari >= 10',
    'Edge >= 15',
  ],
  noIndexImportConfig: {
    aliases: {
      '@/types': './src/types/*',
    },
  },
  tsConfigPath: path.resolve(__dirname, './tsconfig.json'),
});

If need override some rules, you can pass an argument to the function:

const eslintFlatConfig = require('eslint-config-kubit');
const path = require('path');

module.exports = eslintFlatConfig({
  overrides: [
    {
      files: ['**/*.{js,jsx,ts,tsx}'],
      rules: {
        '@typescript-eslint/no-magic-numbers': 'off',
        '@typescript-eslint/no-unused-vars': 'off',
        'react/no-multi-comp': 'off',
        complexity: 'off',
        'unused-imports/no-unused-imports': 'off',
        'compat/compat': 'off',
      },
    },
  ],
});

License

APA License 2.0 © Kubit

0.0.1-flat

10 months ago

0.0.21

10 months ago

0.0.22

10 months ago

0.0.23

10 months ago

0.0.24

10 months ago

0.0.25

10 months ago

0.0.4-flat

10 months ago

0.0.3-flat

10 months ago

0.0.2-flat

10 months ago

0.0.5-flat

10 months ago

0.0.20

10 months ago

0.0.18

10 months ago

0.0.19

10 months ago

0.0.16

11 months ago

0.0.17

11 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

12 months ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago