Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ariesclark/eslint-config
An eslint configuration
https://github.com/ariesclark/eslint-config
eslint eslint-config eslint-plugin typescript
Last synced: 3 months ago
JSON representation
An eslint configuration
- Host: GitHub
- URL: https://github.com/ariesclark/eslint-config
- Owner: ariesclark
- License: mit
- Created: 2022-03-31T04:07:24.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T02:41:31.000Z (4 months ago)
- Last Synced: 2024-10-10T21:14:25.022Z (4 months ago)
- Topics: eslint, eslint-config, eslint-plugin, typescript
- Language: TypeScript
- Homepage: https://aries.fyi/eslint-config
- Size: 489 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ariesclark/eslint-config
> This package requires ESLint v9 or later and is incompatible with earlier versions. If you're using an older version of ESLint, please upgrade to the latest version or use version 1.x of this package.
## Usage
Applying the ruleset to your project is quick and easy. You install the package, then create an eslint.config.mjs file and select an appropriate project profile.#### 1. Install the package
To install the package, do this:
```sh
pnpm install -D eslint@9 typescript @ariesclark/eslint-config
```#### 2. Configure the linter
Create an eslint.config.mjs config file, as shown below:##### eslint.config.mjs (ESLint v9+)
```js
import { configs, config } from "@ariesclark/eslint-config";
import tailwindcss from "@ariesclark/eslint-config/tailwindcss";
/* You can import any subset by like below: */
// import react from "@ariesclark/eslint-config/react";
import nextjs from "@ariesclark/eslint-config/nextjs";export default config({
extends: [
/***
The recommended configuration includes the following by default:
Promise, TypeScript, Import, Unicorn and Prettier.
*/
...configs.recommended,
// You can selectively include any subsets.
// ...sortKeys, /* Previously enabled by default, now opt-in. */
// ...node,
// ...browser,
...tailwindcss,
// ...react,
...nextjs /* includes: React subset. */
]
});```