@beemo/config-eslint
v2.0.3
Published
ESLint config for Beemo projects.
Downloads
110,288
Readme
Beemo - ESLint config
An official Beemo ESLint config based on eslint-config-beemo.
yarn install --dev eslint @beemo/core @beemo/driver-eslint @beemo/config-eslint
Setup
Create a configs/eslint.ts
file in your Beemo configuration module that re-exports this config.
export { default } from '@beemo/config-eslint';
Settings
The following Beemo settings
can be defined and will be passed to the config.
node
(boolean
) - Denote as a Node.js project. Defaults tofalse
.react
(boolean | classic | automatic
) - Enable React rules. Defaults tofalse
.
export default {
module: '<config-module>',
drivers: ['eslint'],
settings: {
react: 'automatic',
},
};