https://github.com/allthings/eslint-config-allthings
Shareable eslint config for Allthings' projects
https://github.com/allthings/eslint-config-allthings
eslint
Last synced: 4 months ago
JSON representation
Shareable eslint config for Allthings' projects
- Host: GitHub
- URL: https://github.com/allthings/eslint-config-allthings
- Owner: allthings
- License: mit
- Created: 2022-11-03T19:53:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-11-27T15:36:14.000Z (7 months ago)
- Last Synced: 2025-11-30T06:17:42.394Z (7 months ago)
- Topics: eslint
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@allthings/eslint-config
- Size: 326 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-allthings
ESlint shareable config for Allthings style
## Setup
```shell
yarn add -DE @allthings/eslint-config
```
## Usage
Create an `eslint.config.js` at your project root.
### React projects
```js
import allthingsConfig from '@allthings/eslint-config'
export default [
...allthingsConfig,
{
languageOptions: {
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: import.meta.dirname,
},
},
},
]
```
### Node.js projects
```js
import allthingsNodeConfig from '@allthings/eslint-config/node'
export default [
...allthingsNodeConfig,
{
languageOptions: {
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: import.meta.dirname,
},
},
},
]
```
## Deployment
Publishing to npm
```shell
yarn deploy
```
## Development
Run `yarn link` in the project folder
Run `yarn link @allthings/eslint-config` in the project that you want to test it against
After you finish run in your project `yarn unlink @allthings/eslint-config` and then `yarn install --force`
to restore the initial state of dependencies
Or you could release a dev npm version with `yarn deploy:dev`. Remember to update the version in package.json