ESLint-Config-Atomic A Constructive ESLint Rule Set for the Atom Community
eslint-config-atomic includes the ESLint configuration used in the Atom community. To install, run npm install --save-dev eslint-config-atomic
. You must have the necessary peer dependencies. If you use npm, it will automatically pull bundled ESLint, TypeScript, Babel, and more. For pnpm users, add the following to your .npmrc
file to hoist the bundled dependencies: public-hoist-pattern[]=*
. Alternatively, you can install them yourself in devDependencies
using pnpm install --save-dev eslint typescript @babel/core
. To use, create an .eslintrc.json
file at the root of your project with the following content:
{
"extends": "eslint-config-atomic",
"ignorePatterns": ["node_modules/"]
}
146.74KB
文件大小:
评论区