Exported configs:
-
noamkadosh
- base for javascript and typescript -
noamkadosh/browser
- when working with code that runs on the browser -
noamkadosh/node
- when working with code that runs on node -
noamkadosh/frameworks
- detects frameworks in use-
Note: configs for individual frameworks are exported too, e.g
noamkadosh/frameworks/react
-
Note: configs for individual frameworks are exported too, e.g
-
noamkadosh/jsx
- when working with jsx -
noamkadosh/testing
- detects testing framework in use -
noamkadosh/styling
- detects styling framework in use
Installation
npm
npm install --save-dev eslint-config-noamkadosh
yarn
yarn add -D eslint-config-noamkadosh
pnpm
pnpm add -D eslint-config-noamkadosh
Usage
module.exports = {
extends: ['noamkadosh'],
}
Monorepo
In a monorepo, you should add the following to every project's eslint configuration as the plugin can't detect the tsconfig.json
file in such an environment.
module.exports = {
// ... more configuration
extends: [
'noamkadosh'
],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname
},
settings: {
'import/resolver': {
typescript: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname
}
}
},
// ... more configuration
}