2.1.1 • Published 11 months ago

@epreston/eslint-config v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

eslint-config

Shared ESLint Configuration for my projects. Version 2.0 and beyond uses the "flat config format".

NPM version License

Install

npm install @epreston/eslint-config --save-dev

Usage

// eslint.config.js
import sharedConfig from "@epreston/eslint-config";

export default [
  ...sharedConfig,

  // anything from here will override sharedConfig
  {
    rules: {
      "no-unused-vars": "warn",
    },
  },
];

Validation

# for validating a project configuration
npx eslint --inspect-config

# for validating this shared configuration
npx eslint --config index.js --inspect-config

Tools

ToolReference
ESLinthttps://eslint.org
Node.jshttps://nodejs.org
EditorConfighttps://editorconfig.org

References

WebsiteReference
Shareable Confighttps://eslint.org/docs/latest/extend/shareable-configs
Configure ESLinthttps://eslint.org/docs/latest/use/configure/
ESlint Ruleshttps://eslint.org/docs/rules/

License

This project is released under the MIT License.

2.1.1

11 months ago

2.1.0

11 months ago

2.0.0

12 months ago

1.1.2

12 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago