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