My eslint config
- install package:
npm install eslint-config-m51 --save-dev
- create eslint.config.js file in project root directory with:
import eslintConfigM51 from 'eslint-config-m51';
export default eslintConfigM51;
or
import eslintConfigReactM51 from 'eslint-config-m51/react';
export default eslintConfigReactM51;
for React
- for TypeScript, requires
strictNullChecks
orstrict
to betrue
intsconfig.json
,