@tsukuruba/eslint-config-cowcamo
v1.0.3
Published
cowcamo's ESLint rules and configurations, extending eslint-config-airbnb and eslint-config-airbnb-typescript respectively.
Downloads
86
Readme
@tsukuruba/eslint-config-cowcamo
cowcamo's ESLint rules and configurations, extending eslint-config-airbnb
and eslint-config-airbnb-typescript
respectively.
Installation
$ npm install --save-dev @tsukuruba/eslint-config-cowcamo
Usage
After installation, you can use @tsukuruba/eslint-config-cowcamo
in the extends section of your ESLint configuration.
.eslintrc.js
:
module.exports = {
extends: [
'@tsukuruba/eslint-config-cowcamo',
],
overrides: [
{
files: [
'*.ts',
'*.tsx',
],
extends: [
'@tsukuruba/eslint-config-cowcamo/ts',
],
parserOptions: {
project: 'path/to/your/project/tsconfig.json',
tsconfigRootDir: __dirname,
},
},
],
};
.eslintrc.yml
:
extends:
- '@tsukuruba/eslint-config-cowcamo'
overrides:
- files:
- '*.ts'
- '*.tsx'
extends:
- '@tsukuruba/eslint-config-cowcamo/ts'
parserOptions:
project: 'path/to/your/project/tsconfig.json'
tsconfigRootDir: __dirname
Happy coding!