Futured's approach to styling Nest projects.
$ npm install @futuredapp/eslint-config-nest --save-devor
$ yarn add @futuredapp/eslint-config-nest -DAdd the ESLint configuration to either your eslint.config.mjs or eslint.config.js:
import eslintConfig from '@futuredapp/eslint-config-nest'
export default [
{
// Files to ignore must be listed first
ignores: [],
},
...eslintConfig,
{
rules: {
// your custom rules
},
},
]To update WebStorm to use the ESLint configuration on save, follow these steps:
-
Press ⌘ Сmd 0, to open settings and then select Languages & Frameworks | JavaScript | Code Quality Tools | ESLint.
-
Select Manual ESLint Configuration.
-
In the Extra eslint options field, type
--flag unstable_ts_config. -
Click Apply to save the changes and close the dialog.