0.0.5-flat • Published 6 months ago
eslint-config-kubit v0.0.5-flat
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
6 months ago
0.0.21
6 months ago
0.0.22
6 months ago
0.0.23
6 months ago
0.0.24
6 months ago
0.0.25
6 months ago
0.0.4-flat
6 months ago
0.0.3-flat
6 months ago
0.0.2-flat
6 months ago
0.0.5-flat
6 months ago
0.0.20
6 months ago
0.0.18
6 months ago
0.0.19
6 months ago
0.0.16
7 months ago
0.0.17
7 months ago
0.0.15
7 months ago
0.0.14
7 months ago
0.0.13
8 months ago
0.0.12
9 months ago
0.0.11
9 months ago
0.0.10
9 months ago
0.0.9
9 months ago
0.0.8
9 months ago
0.0.7
9 months ago
0.0.6
9 months ago
0.0.5
9 months ago
0.0.4
9 months ago
0.0.3
9 months ago
0.0.2
9 months ago
0.0.1
9 months ago