https://github.com/pepeeja/eslint-config-solid
ESLint and Prettier setup fo Solid JS projects
https://github.com/pepeeja/eslint-config-solid
eslint eslint-config prettier solid-js
Last synced: about 1 month ago
JSON representation
ESLint and Prettier setup fo Solid JS projects
- Host: GitHub
- URL: https://github.com/pepeeja/eslint-config-solid
- Owner: pepeeja
- License: mit
- Created: 2023-04-06T14:26:40.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T14:27:25.000Z (about 3 years ago)
- Last Synced: 2025-08-08T20:55:48.564Z (10 months ago)
- Topics: eslint, eslint-config, prettier, solid-js
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@pepeeja/eslint-config-solid
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @pepeeja/eslint-config-solid
[](https://github.com/pepeeja/eslint-config-solid/blob/main/LICENSE) [](https://www.npmjs.com/package/@pepeeja/eslint-config-solid)
ESLint and Prettier setup for Solid JS project
## Install
```shell
// with npm
npm install @pepeeja/eslint-config-solid
// with yarn
yarn add @pepeeja/eslint-config-solid
```
## Usage
### Prettier
This package contains two configurations one for ESLint and Prettier.
Prettier could be configured by creating `.prettierrc` file in the root directory of your project with the following content:
```json
"@pepeeja/eslint-config-solid/prettier"
```
ESLint configuration has several options based on used environment. You can find list of available configurations below.
### ESLint
To apply Solid JS specific rules create `.eslintrc` file in the root directory of your project with the following content:
```json
{
"extends": "@pepeeja/eslint-config-solid"
}
```
To setup Typescript integration provide additional configuration in `.eslintrc` file:
```json
"parserOptions": {
"ecmaVersion": 2022,
"project": ["tsconfig.json"],
"sourceType": "module"
}
```
To enable Typescript path aliases provide configuration for import resolver in `.eslintrc` file:
```json
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
}
```
## License
This project is licensed under the terms of the [MIT License](LICENSE)