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