eslint-config-daren

4.1.1 • Public • Published

eslint-config-daren

These are my settings for ESLint and Prettier

You might like them - or you might not. Don't worry you can always change them.


Build Status version MIT License

Table of Contents

Installation

This module should be installed as one of your project's devDependencies:

npm install --dev eslint-config-daren
yarn add -D eslint-config-daren

Usage

Then add the extends to your .eslintrc.js:

module.exports = {
  extends: "daren",
  rules: {
    // your overrides
  },
};

Other configs

You can use other configs in combination with the main eslint.

module.exports = {
  extends: ['daren', 'daren/<config-name>'],
}

React example

module.exports = {
  extends: [
    'daren',
    'daren/react',
    'daren/jsx-a11y',
    'daren/tailwind',
  ],
  rules: {
    // your overrides
  },
};

VS Code

Using the eslint-plugin you can use these settings for autoformatting:

"editor.formatOnSave": true,
"eslint.format.enable": true,
  "[javascript]": {
"editor.formatOnSave": false,
  "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
  "editor.formatOnSave": false,
  "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
  "editor.formatOnSave": false,
  "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
  "editor.formatOnSave": false,
  "editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"editor.codeActionsOnSave": {
  "source.fixAll": true,
}

Install

npm i eslint-config-daren

DownloadsWeekly Downloads

52

Version

4.1.1

License

MIT

Unpacked Size

46.9 kB

Total Files

33

Last publish

Collaborators

  • daren