8000 GitHub - Anoesj/eslint-config-anoesj
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Anoesj/eslint-config-anoesj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@anoesj/eslint-config-anoesj

Installation

Install using your Node.js package manager of choice:

pnpm i -D github:anoesj/eslint-config-anoesj

You need to have NPM package eslint installed in order to start using ESLint with this configuration. Assuming your IDE of choice is VSCode, it's recommended to install VSCode plugin "ESLint" by Dirk Baeumer and set it up as follows in your VSCode workspace's settings.json:

{
  "editor.codeActionsOnSave": {
    // "source.fixAll": "never", // optional
    "source.fixAll.eslint": "explicit"
  },
  "eslint.packageManager": "pnpm",
  "eslint.validate": [
    "javascript",
  ],
}

When using flat config, use an instance of FlatCompat as long as this module hasn't been ported to flat config yet:

const compat = new FlatCompat(...);
export default [
  {
    ...compat.extends('@anoesj/eslint-config-anoesj'),
  },
];

With old school config, your ESLint config file should at the very least extends this config:

{
  "extends": [
    "@anoesj/eslint-config-anoesj"
  ]
}

See https://eslint.org/docs/developer-guide/shareable-configs for more info on shareable ESLint configs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published
0